Skip to main content

lower_horizontal_layout

Function lower_horizontal_layout 

Source
pub fn lower_horizontal_layout(
    model: &Model,
    entity: EntityId,
    units: AlignmentUnits,
    cant: Option<&CantLayout>,
) -> AlignmentResult<LoweredAlignmentCurve>
Expand description

Lower an IfcAlignmentHorizontal’s nested segment chain to one exact neutral curve, refusing (rather than approximating) any segment that lower_horizontal_segment cannot lower exactly.

Each segment keeps its own authored start frame inside the composite. Seams are checked by the rule in SeamCheck: a position gap after a LINE or CIRCULARARC is refused, and a seam after a transition spiral, whose end point has no closed form, is accepted as authored and reported in LoweredAlignmentCurve::seams.

The zero-length segment IFC4.3 requires at the end of a layout adds no composite segment; its seam is checked and reported last. A zero-length segment anywhere else is refused (AlignmentError::SemanticViolation).