Expand description
IfcBoundingBox: an axis-aligned box, and the trap in what it is aligned
to.
§It is NOT a world-axis-aligned box
The box is axis-aligned in the coordinate system of the representation that contains it – typically the element’s own local placement, which is routinely rotated relative to the world. Using the corner and the three extents directly as world AABB min/max gives a wrong box for every element that is not axis-parallel, which in a real building is most of them. The corner must be transformed and the extents rotated, then a world AABB recomputed from the eight corners.
§Corner is the minimum, extents are positive
Corner is the low corner and the box extends along +X, +Y, +Z by the
three dims. All three are IfcPositiveLengthMeasure, so a zero or negative
extent is a malformed file, not a degenerate-but-usable box.
§Two roles
It appears both as a standalone Box representation (a cheap proxy for an
element’s extent) and as IfcBoxedHalfSpace.Enclosure, where it bounds an
otherwise infinite half space. Same entity, different meaning; see
crate::solid::halfspace::BoxedHalfSpace.
Structs§
- Bounding
Box IfcBoundingBox: a box given by a corner and three extents.