pub fn basis_curve_path(
model: &Model,
units: &UnitScale,
placement: EntityId,
basis: EntityId,
evaluator: &dyn CurveEvaluator,
) -> GeometryResult<CurvePath>Expand description
The basis curve of placement read as the neutral [CurvePath] its
derivation evaluates (#418): a plain IfcCompositeCurve, an
IfcTrimmedCurve or a composite of segments placed at stations, as the
station lowering flattens it, each segment’s placement framed through
evaluator (module documentation).
This is the path derive_placement_transform hands to
[CurveEvaluator::path_frame_at_on]. It is public so a caller can check
it, or read the same basis through the contract’s other path_*
queries.
§Errors
A basis that is not a curve relation this module reads, a relation the
station lowering refuses (an offset of an offset, say), a relation
holding a span whose ends its data states in no form a path piece takes
(GeometryError::PathPieceLengthUnstated), and a placement
evaluator refuses to frame,
by name; GeometryError::CurvePathUnsupported when a segment is placed
along a curve relation and evaluator reads single curves only.