Skip to main content

Module placement

Module placement 

Source
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 an IfcLinearPlacement through 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.