compute_parts_to_skip_with_index

Function compute_parts_to_skip_with_index 

Source
pub fn compute_parts_to_skip_with_index<T>(
    content: &T,
    decoder: &mut EntityDecoder<'_>,
    material_layer_index: &MaterialLayerIndex,
) -> FxHashSet<u32>
where T: AsRef<[u8]> + ?Sized,
Expand description

Compute the set of aggregated IfcBuildingElementPart ids to skip when the “merge multilayer wall as a single solid” toggle is on (issue #540): a part is skipped when its parent’s layered build-up is sliceable in the caller’s material_layer_index (the browser’s per-content or prepass-injected one), so the parent’s merged-layer geometry is drawn instead of the parts. An index with no sliceable buildup returns the empty set before any scan.

This layer/void driver composes the shared kernels (propagate_voids_to_parts, crate::MaterialLayerIndex::is_sliceable) next to them (#913 Phase 4 / §2.6) for the browser’s merge_layers path. Its scratch void_index stays EMPTY (only the part → parent map is wanted); callers needing propagated voids call propagate_voids_to_parts themselves.