pub fn derive_linear_placement_transform(
model: &Model,
units: &UnitScale,
placement: EntityId,
evaluator: &dyn CurveEvaluator,
) -> GeometryResult<Transform>Expand description
Resolve an IfcLinearPlacement from its linear expression alone, in
metres, ignoring any cached CartesianPosition.
Reads RelativePlacement: its IfcPointByDistanceExpression through
derive_placement_transform, and its optional Axis/RefDirection,
composed in the (tangent, left, up) frame (module documentation).
The result is in the coordinate system the basis curve is stated in –
the object coordinate system of the alignment that carries it – not
in the world: PlacementRelTo and the alignment’s own ObjectPlacement
are not composed here (#357). super::product_world_transform_with_evaluator
and the evaluator-taking lowering compose that chain.
§Errors
As derive_placement_transform; a malformed placement (wrong types,
Axis without RefDirection) is GeometryError::Unsupported naming
it, a missing direction GeometryError::MissingEntity, and parallel
axes GeometryError::Degenerate.