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- anIfcCartesianPoint.- 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, followingIfcLocalPlacement -> RelativePlacement (IfcAxis2Placement3D) -> Location (IfcCartesianPoint).Coordinates[2].