Skip to main content

assemble_into

Function assemble_into 

Source
pub fn assemble_into(
    primitives: &[Primitive],
    positions: &mut [[f32; 3]],
    triangles: &mut [[u32; 3]],
    workspace: &mut GeometryWorkspace<'_>,
) -> Result<AssemblyReceipt, ScenePrimitiveError>
Expand description

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.