Expand description
The one home for placement frames and the ObjectPlacement chain (F3b).
Axis2Placement/Axis1Placement: the attributes of anIfcAxis2Placement3D/IfcAxis1Placement, read once.- [
build_axis2_matrix]: the only orthonormalisation of a frame. resolve_chain/resolve_object_placement: the world transform of a placement, walked iteratively upPlacementRelTowith a visited set and no depth cap (D27), memoised on the decoder.chain/validate_chain: the same walk without transforms, for consumers that check a chain against their own rules.
Results are unscaled (file units, the memo’s unit); the caller scales.
Structs§
- Axis1
Placement - The attributes of an
IfcAxis1Placement: Location (0), Axis (1). - Axis2
Placement - The attributes of an
IfcAxis2Placement3DorIfcAxis2Placement2D: rawAxisandRefDirectionratios (Nonewhen$), orthonormalised only bySelf::matrix. - Chain
Policy - What a consumer accepts in a chain. All
falseis the strictestIfcLocalPlacement-only, 3D-only chain. - Chain
Validator - A validation session tied to ONE immutable decoder source and ONE policy. A transform-cache entry alone never proves that a consumer’s policy holds. Only whole successful chains enter this session’s private verified suffixes; failures remain uncached and cycles still use the canonical visited walk. Drop the session before changing policy or moving to another decoder.
- Link
- One placement of a chain.
Enums§
- Link
Kind - What a placement in a chain is.
- Placement
Error - Why a placement could not be resolved.
Functions§
- chain
- The placements from
placementup to the root, leaf first, cycle-checked. No transforms are composed and the memo is not consulted. - resolve_
chain - The unscaled world transform of
placement, composed((T_root·L_1)·L_2)…·L_leafupPlacementRelTo. - resolve_
chain_ relative placementexpressed in the frame of the placementbase:base_world⁻¹ · placement_world, unscaled.- resolve_
object_ placement - The unscaled world transform of
product’sObjectPlacement(attribute 5).Ok(None)iff it is$,*or absent: “genuinely missing” stays the identity at the caller (#2256). - rotation_
angle_ about_ z - The building/site rotation about the world vertical (Z) axis, derived from a
resolved column-major 4×4 placement matrix (as returned by
crate::GeometryRouter::resolve_scaled_placement). The local X-axis (the placement’s RefDirection, composed through the full parent chain and normalized) is column 0 — elements[0],[1],[2]— so its angle in the world XY plane isatan2(m[1], m[0]). - validate_
chain - Walk
placementup to the root and check every link againstpolicy. A broken rule isPlacementError::Policy, a consumer’s limit rather than bad input, so it is not counted as a refused record. - validate_
spatial_ frame - Validate an
IfcAxis2Placement3Dunder the strict spatial policy.
Type Aliases§
- Placement
Result Resultof the placement readers.