Module spatial_elevation

Module spatial_elevation 

Source
Expand description

Storey-elevation extraction, split out of spatial.rs (#3965 follow-up): reading IfcBuildingStorey.Elevation, with the ObjectPlacement Z fallback, is a self-contained concern the tree-building code merely calls into. spatial_tests.rs (attached to the parent spatial module, not this one) exercises these functions directly via use super::*.

Constantsยง

AXIS_PLACEMENT_LOCATION_INDEX ๐Ÿ”’
IfcAxis2Placement3D.Location - an IfcCartesianPoint.
LOCAL_PLACEMENT_RELATIVE_INDEX ๐Ÿ”’
IfcLocalPlacement.RelativePlacement - the storeyโ€™s own offset from its parent spatial container.
STOREY_ELEVATION_INDEX ๐Ÿ”’
Attribute index of IfcBuildingStorey.Elevation, the same in IFC2X3 and IFC4:
STOREY_PLACEMENT_INDEX ๐Ÿ”’
Attribute index of IfcBuildingStorey.ObjectPlacement.

Functionsยง

extract_elevation_if_storey ๐Ÿ”’
Extract elevation from an IFCBUILDINGSTOREY entity, in metres.
extract_placement_elevation ๐Ÿ”’
Resolve a storeyโ€™s Z from its ObjectPlacement, following IfcLocalPlacement -> RelativePlacement (IfcAxis2Placement3D) -> Location (IfcCartesianPoint).Coordinates[2].