Module material_layer_index

Module material_layer_index 

Source
Expand description

Material Layer Index

Maps building elements to the material buildup that lets us slice their single swept-solid mesh into per-layer sub-meshes (e.g. a wall’s core, insulation, and finish showing up as separately coloured slabs).

The index scans IfcRelAssociatesMaterial once per file and resolves each element to a LayerBuildup when the associated material is a [IfcMaterialLayerSetUsage] pointing at a plain [IfcMaterialLayerSet]. Other material representations (single IfcMaterial, IfcMaterialConstituentSet, IfcMaterialProfileSet, legacy IfcMaterialList, or layer sets with per-layer offsets used for tapered walls) do not map to a set of planar cutting planes and are recorded as LayerBuildup::NotSliceable so the caller can fall back to its existing path.

Structs§

LayerInfo
One layer in a LayerBuildup.
MaterialLayerFlat
Flat, wire-friendly encoding of a MaterialLayerIndex, produced by MaterialLayerIndex::to_flat and reconstructed by MaterialLayerIndex::from_flat.
MaterialLayerIndex
Map from element entity ID to its resolved LayerBuildup.

Enums§

LayerAxis
Which local axis the material layers stack along.
LayerBuildup
Layer buildup resolved for one element.