pub fn axis_placement_transform(
model: &Model,
id: EntityId,
entity: &Entity,
) -> GeometryResult<Transform>Expand description
Resolve any IfcAxis2Placement reference to a transform.
IfcAxis2Placement is a SELECT over the 2D and 3D forms, so a slot typed
that way may hold either and every consumer has to dispatch. Doing it once
here keeps that dispatch from being re-invented – and the 2D case quietly
mishandled – at each call site.
IfcAxis1Placement is rejected rather than coerced: it carries one axis and
no local X, so any frame built from it would invent a rotation.