ModelSurface class final

One drawable piece of a decoded model.

Constructors

ModelSurface({required MeshData mesh, Matrix4? transform, int? materialIndex, int? skinIndex, bool flipWinding = false, String? name, String? meshName, List<double>? morphWeights, Set<String>? authoredAttributes})

Properties

authoredAttributes → Set<String>
Which of mesh.layout's attribute names the source file actually declared, as opposed to a value a decoder filled in to satisfy a requested VertexLayout.
final
flipWinding → bool
True when transform mirrors, i.e. has a negative determinant.
final
hashCode → int
The hash code for this object.
no setterinherited
materialIndex → int?
final
mesh → MeshData
final
meshName → String?
The name of the mesh asset mesh was built from, distinct from name.
final
morphWeights → List<double>
The rest weights of mesh's morph targets: the expression the model wears before anything animates it.
final
name → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skinIndex → int?
Index into ModelDocument.skins, when this surface is skinned.
final
transform → Matrix4
Placement relative to the model's own origin.
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