GeometryResource class

Mesh geometry, sourced either from a binary payload chunk (imported content) or a procedural descriptor (a runtime primitive). Exactly one source is set. Carries optional local bounds.

Inheritance

Constructors

GeometryResource(LocalId id, {LocalId? vertices, LocalId? indices, ProceduralGeometry? procedural, BoundsSpec? bounds, String topology = 'triangle'})
Creates a geometry resource from payload chunks (a vertices buffer and optional indices buffer) or a procedural descriptor.

Properties

bounds BoundsSpec?
The geometry's local-space bounds, when known.
final
hashCode int
The hash code for this object.
no setterinherited
id LocalId
This resource's stable, document-scoped id.
finalinherited
indices LocalId?
The binary chunk holding this geometry's index buffer, or null for a non-indexed payload geometry (always null when procedural is set). The element width (uint16 / uint32) lives on the referenced payload's format.
final
procedural ProceduralGeometry?
The procedural descriptor, or null when vertices is set.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topology String
How the vertex/index data assembles into primitives (mapped to the runtime enum at realization): triangle, triangleStrip, line, lineStrip, or point.
final
vertices LocalId?
The binary chunk holding this geometry's interleaved vertex buffer, or null when procedural is set. The vertex layout (unskinned / skinned) lives on the referenced payload.
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