Skip to main content

lower_gradient_curve

Function lower_gradient_curve 

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

Lower an IfcAlignment to an exact 3D centreline.

Pairs the alignment horizontal layout with its vertical profile as a Curve3::Elevated. Both halves stay exact and either can be recovered unchanged.

ยงErrors

Refuses an alignment without both layouts, a vertical segment family with no determined elevation law (CLOTHOID), a non-contiguous profile, and any plan lower_horizontal_plan refuses (a segment without an exact law, a heading kink, or a closed-form position gap). Seams after a transition spiral are reported in LoweredAlignmentCurve::seams, not refused.