pub fn group_occurrences_by_rep(
raw: Vec<RawInstanceOccurrence>,
) -> Vec<(u128, Vec<RawInstanceOccurrence>)>Expand description
The don’t-bake occurrence grouping, template selection and occurrence → flat
MeshData recovery, shared with the browser batch
(rust/wasm-bindings/src/api/gpu_meshes/instancing.rs) so each has one home
rather than two clones. See their doc comments.
Group don’t-bake occurrences by shared-template key (rep_identity, the
IfcRepresentationMap id). Groups come back in ascending rep order so the
output is deterministic; each group keeps its occurrences in arrival order.