Expand description
IfcLocalPlacement: the nesting placement chain.
§Semantics
An IfcLocalPlacement has two attributes: PlacementRelTo (the parent
placement, optional) and RelativePlacement (an IfcAxis2Placement3D or
2D giving the offset from that parent).
If PlacementRelTo is absent, the placement is absolute in the project
coordinate system. That is the recursion’s base case.
§Two traps, both from the spec
-
Cycles happen. The IFC specification says outright that “rules to prevent cyclic relative placements have to be introduced on the application level” – meaning the schema does not forbid them and real exporters have produced them. Naive recursion overflows the stack on a file that merely looks valid.
-
Chains are walked per element. A model with 100k elements walks 100k chains that share their upper links. Resolving without a cache is quadratic in the depth; hence
PlacementResolver.
Structs§
- Local
Placement - A borrowed view of an
IfcLocalPlacement. - Placement
Resolver - Resolves placement chains to world transforms, with memoization.