Expand description
Product placement resolution: the answer to “where is this in the world”.
This is the single most-reused operation in any IFC consumer, and the one
most often reimplemented incorrectly. It lives here rather than in lower
because a 2D drawing needs world coordinates just as much as a 3D
tessellation does, and must not have to compile a solid kernel to get them.
§Composition order
An IfcLocalPlacement points at its parent through PlacementRelTo, so
the walk is upward and composition is outermost-last. Reversing that
silently mirrors the model about its ancestors.
§Units are converted once, at the end
Placement coordinates are raw file units. The chain composes unconverted and the composed result is converted once. Converting per link would raise the scale factor to the power of the chain depth – a millimetre file three levels deep would land a thousand times too far out.
Re-exports§
pub use derive::CachedPositionPolicy;
Modules§
- derive
- Deriving a placement frame from the basis curve.
Functions§
- product_
world_ transform - The world transform for one product, in metres.
- product_
world_ transform_ with_ evaluator product_world_transform, deriving anIfcLinearPlacementthrough a caller-supplied evaluator (#353), and intersecting curved grid axes through it (#362).- products_
world_ transforms - World transforms for many products, sharing one placement cache.