Skip to main content

process_geometry_with_index

Function process_geometry_with_index 

Source
pub fn process_geometry_with_index<T>(
    content: &T,
    index: Arc<EntityIndex>,
) -> ProcessingResult
where T: AsRef<[u8]> + ?Sized,
Expand description

Like process_geometry but reuses a pre-built entity index instead of scanning content for one. For a caller that also runs a second pass over the same bytes (e.g. pairing GLB export with attribute extraction): build the index once with ifc_lite_core::build_entity_index and share it across both, skipping the duplicate scan. index MUST be built from the same content. Output is identical to process_geometry(content).