collate_and_encode

Function collate_and_encode 

Source
pub fn collate_and_encode(
    meshes: &[InstanceMeshRef<'_>],
    min_group: usize,
    rtc: [f64; 3],
) -> Vec<u8> ⓘ
Expand description

One-shot producer: collate the mesh views into templates + instances and encode them as an instanced shard. The caller (e.g. the native helper) builds InstanceMeshRefs borrowing its own mesh storage — no geometry is cloned.