Primitive class
Constructors
-
Primitive.new({required GltfRoot root, required PrimitiveMode mode, required Map<
String, int> attributes, required GltfRef<IntAccessor> ? indices, required GltfRef<Material> ? material, required List<MorphTarget> targets}) -
Primitive.parse(GltfRoot root, Map<
String, Object?> map)
Properties
-
attributes
→ Map<
String, int> -
A plain JSON object, where each key corresponds to a mesh attribute
semantic and each value is the index of the accessor containing
attribute's data.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
indices
→ GltfRef<
IntAccessor> ? -
The reference to the accessor that contains the vertex indices.
When this is undefined, the primitive defines non-indexed geometry.
When defined, the accessor MUST have
SCALAR
type and an unsigned integer component type.final -
joints
→ GltfRef<
Vector4Accessor> ? -
no setter
-
material
→ GltfRef<
Material> ? -
The reference to the material to apply to this primitive when rendering.
final
- mode → PrimitiveMode
-
The topology type of primitives to render.
final
-
normals
→ GltfRef<
Vector3Accessor> ? -
no setter
-
positions
→ GltfRef<
Vector3Accessor> ? -
no setter
- root → GltfRoot
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
targets
→ List<
MorphTarget> -
An array of morph targets.
final
-
texCoords
→ GltfRef<
Vector2Accessor> ? -
no setter
-
weights
→ GltfRef<
Vector4Accessor> ? -
no setter
Methods
-
computeJointData(
) → JointData -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFlameSurface(
[Matrix4? transform]) → Surface -
toFlameVertices(
JointData jointData, Matrix4 transform) → (List< Vertex> , List<int> ) -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited