pub fn lower_horizontal_segment(
model: &Model,
id: EntityId,
units: AlignmentUnits,
) -> AlignmentResult<LoweredAlignmentCurve>Expand description
Lower one IfcAlignmentHorizontalSegment to an exact neutral curve.
A CUBIC lowers as its exact cubic parabola trimmed at
TrimSelector::ArcLength(SegmentLength) (see cubic.rs).
Fails if id is missing or malformed, or the segment is a family with
no exact law here (USERDEFINED, NOTDEFINED, an unknown token, a
VIENNESEBEND without its cant layout, a CUBIC that does not leave a
straight), or CIRCULARARC with unequal/zero/non-finite start and end
radii, or LINE with a non-zero radius. A zero-length segment, which IFC4.3 allows
only as a layout’s closing segment, has no geometry to lower and is
refused as AlignmentError::InvalidSegment.