Vertex class

Represents a vertex in 3D space.

A vertex consists out of space coordinates, UV/texture coordinates and a color.

Annotations

Constructors

Vertex({required Vector3 position, required Vector2 texCoord, Color color = const Color(0xFFFFFFFF), Vector3? normal, Vector4? joints, Vector4? weights})
Represents a vertex in 3D space.

Properties

color → Color
The color on the vertex.
final
hashCode → int
The hash code for this object.
no setteroverride
joints → ImmutableVector4?
The joints of the vertex.
final
normal → ImmutableVector3?
The normal vector of the vertex.
final
position → ImmutableVector3
The position of the vertex in 3D space.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storage → Float32List
no setter
texCoord → ImmutableVector2
The UV coordinates of the texture to map.
final
weights → ImmutableVector4?
The weights of the vertex.
final

Methods

copyWith({Vector3? position, Vector2? texCoord, Vector3? normal, Color? color, Vector4? joints, Vector4? weights}) → Vertex
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

calculateVertexNormals(List<Vector3> vertices, List<int> indices) → List<Vector3>