Skip to main content

Module scene_primitives

Module scene_primitives 

Source
Expand description

Bounded cold-path primitive assembly for authored interactive scenes. Deterministic primitive assembly for small authored scenes. Geometry is built once when scene state changes; rendering remains in the portal.

Structs§

AssemblyReceipt

Enums§

Primitive
ScenePrimitiveError

Functions§

assemble_into
Assemble at most 256 primitives in caller-owned buffers. The caller owns the geometry arena and output storage; no scene-sized allocation is hidden inside this API. Existing primitive builders may use bounded cold scratch.
portal_point
Match the portal’s shared mesh orbit normalisation for semantic pick nodes.
recipe_write
Write a canonical primitive source receipt into caller storage. The recipe is carried inside a .10d provenance sidecar; the mesh is derived data. QSP1 = four-byte magic, u16 little-endian primitive count, then one u8 kind (1 box, 2 roof) and six little-endian f32 values per primitive (center xyz followed by size xyz), preserving declared primitive order.