ModelLod class final

One level of detail a node offers in place of its own full surface list — pro-eng-06's own row.

Surfaces, not sibling nodes. glTF's own MSFT_lod extension names alternate nodes of decreasing detail rather than alternate surface lists on one node, which is a real, different shape from this one — a .f3d file round-trips ModelNode.lods directly; a glTF file does not yet, because doing so correctly means deciding how this node's own surface-level LODs become MSFT_lod's sibling-node ones, and that mapping is not built.

Constructors

ModelLod({required List<int> surfaceIndices, required double maxScreenFraction, ModelImpostor? impostor, double? error})
const
ModelLod.impostor({required ModelImpostor impostor, required double maxScreenFraction})
The last level a node can fall to — C4: a card showing impostor's baked views in place of any geometry at all.
const

Properties

error → double?
How far this level's surfaces stray from the node's full ones, in the node's own units — the largest distance between the two surfaces, as surfaceDeviation in flutter3d_mesh measures it. Null where nobody measured: an impostor, a level made by hand, and every level of a file written before the field existed.
final
hashCode → int
The hash code for this object.
no setterinherited
impostor → ModelImpostor?
The baked views this level draws instead of surfaces, or null for an ordinary level.
final
maxScreenFraction → double
The largest fraction of the screen this level is meant for — a viewer switches to a coarser level once the node would cover less of the screen than the next level's own threshold.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
surfaceIndices → List<int>
Indices into ModelDocument.surfaces, replacing the node's own ModelNode.surfaces when this level is the one in use. Empty for an impostor level.
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