extract_elevation_if_storey

Function extract_elevation_if_storey 

Source
pub fn extract_elevation_if_storey(
    type_name: &str,
    entity_id: u32,
    decoder: &mut EntityDecoder<'_>,
    length_unit_scale: f64,
) -> Option<f64>
Expand description

Extract elevation from an IFCBUILDINGSTOREY entity, in metres.

Mirrors SpatialHierarchyBuilder.extractElevation in @ifc-lite/parser: read Elevation, and when it is null (common in Revit / ArchiCAD exports, #1289) fall back to the Z of the storey’s own ObjectPlacement. Both results are raw IFC lengths, so the unit scale applies either way.