ModelSplat class final

A cloud of Gaussian splats a node of a decoded model carries — C1.

Beside the surfaces, not one of them. A splat primitive is a glTF mesh primitive, but nothing about it is a mesh: no triangles, no material (the extension says the primitive's material is ignored), and a draw of its own through SplatContributor. So it is listed here with the node that instantiates it rather than bent into a ModelSurface every surface consumer would then have to know to skip.

Constructors

ModelSplat({required int node, required SplatCloud cloud, required SplatColourSpace colourSpace, Matrix4? transform, int? meshIndex})

Properties

cloud → SplatCloud
The splats, in the node's own space, with linear colours whatever colourSpace the file declared — see gltf_loader_splats.dart.
final
colourSpace → SplatColourSpace
What the file declared, kept for a writer and for anyone who wants to know why the colours were decoded.
final
hashCode → int
The hash code for this object.
no setterinherited
meshIndex → int?
The source mesh's index, when the format has meshes. Two nodes drawing one mesh share one cloud.
final
node → int
Index into ModelDocument.nodes of the node that instantiates it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transform → Matrix4
The node's placement relative to the model's origin, the same thing ModelSurface.transform is for a surface.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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