Skip to main content

Module build

Module build 

Source
Expand description

Scene construction helpers.

Re-exports the sim-value builders and adds a few common scene node shapes plus a reserved-key guard. The guard turns the kind footgun into an immediate, clear failure: kind is the scene-node tag, so a plain data map must not carry a kind key (use a different field name). data_map debug-asserts that.

Structs§

Anchor
A named pose-free anchor for spatial scene nodes.
Transform3
A static transform attached to spatial content before device pose is known.

Enums§

AnchorSpace
The stable anchor spaces used by pose-free spatial scene nodes.

Constants§

RESERVED_DATA_KEYS
Keys reserved for scene-node structure; plain data maps must not use them.

Functions§

anchor
Builds a scene/anchor node.
badge
A scene/badge node. Status carries a text token, never color alone.
badge_cluster
A scene/badge-cluster node containing visible status badges.
box_
A scene/box node with a role and children.
data_map
Build a plain data map, asserting (in debug) that it carries no reserved scene-node key.
float
An f64-domain number value with a canonical literal.
gaze_cursor
Builds a pose-free scene/gaze-cursor node.
hand_ray
Builds a pose-free scene/hand-ray node.
int
An i64-domain number value.
list
A list value.
map
A map value from string-keyed entries (keys become unqualified symbols).
panel
Builds a pose-free scene/panel node.
spatial
Builds a scene/spatial root with pose-free spatial children.
stack
A scene/stack node with a direction and children.
stereo
Builds a scene/stereo root with left and right eye payloads.
sym
An unqualified symbol value: Expr::Symbol(Symbol::new(name)).
text
A string value.
text_node
A scene/text node.
uint
An i64-domain number value from an unsigned integer.
vector
A vector value.
world_plane
Builds a pose-free scene/world-plane node.