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})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
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.
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