Skip to main content

Module bbox

Module bbox 

Source
Expand description

IfcBoundingBox lowering.

§The box is not world-aligned

IfcBoundingBox is axis-aligned in ITS OWN representation’s coordinate system, which is usually the element’s local placement and is routinely rotated relative to the world. GeometryNode::BoundingBox is an Aabb: world-axis-aligned by definition. Passing the corner and extents straight through would therefore claim a box the file never described – correct only when the placement happens to be axis-parallel.

So the eight local corners are transformed and the world AABB is recomputed from them. For a rotated element that yields a LARGER box than the local extents, which is the honest answer: it is the tightest world-aligned box that still contains the element.

Functions§

lower_bounding_box_node
Lower one IfcBoundingBox into a world-axis-aligned Aabb.