PrimitiveData class final

Triangles with one material.

Constructors

PrimitiveData({required Float32List vertices, required Uint32List indices, required int? material, required Aabb3 bounds, required bool hasTangents, Float32List? skin})
A triangle list.

Properties

bounds → Aabb3
Local bounds of the positions.
final
hashCode → int
The hash code for this object.
no setterinherited
hasTangents → bool
Whether tangents came from the file (otherwise the shader derives them).
final
indices → Uint32List
Three per triangle.
final
material → int?
Material index, or null for the default material.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skin → Float32List?
kSkinFloats floats per vertex (joints, weights) when the primitive is skinned, else null.
final
vertexCount → int
How many vertices there are.
no setter
vertices → Float32List
kVertexFloats floats per vertex.
final

Methods

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.
inherited