Skip to main content

read_horizontal_segment

Function read_horizontal_segment 

Source
pub fn read_horizontal_segment(
    model: &Model,
    id: EntityId,
    units: AlignmentUnits,
) -> AlignmentResult<HorizontalSegment>
Expand description

Read one IfcAlignmentHorizontalSegment referenced by id.

Fails if units is non-finite or non-positive, id is missing or not an IfcAlignmentHorizontalSegment, StartPoint does not resolve to an IfcCartesianPoint with at least two coordinates, an attribute is missing or the wrong kind, any value is non-finite, or SegmentLength is negative.

A zero SegmentLength is read: IFC4.3 (concept template Alignment Layout - Horizontal, Vertical and Cant) requires a zero-length segment at the end of every layout. Where it may stand is a layout question, so the layout paths decide it, not this reader.