Skip to main content

curve_segment

Function curve_segment 

Source
pub fn curve_segment(
    tx: &mut Transaction,
    transition: TransitionCode,
    placement: EntityId,
    segment_start: CurveMeasure,
    segment_length: CurveMeasure,
    parent_curve: EntityId,
) -> Result<EntityId, GeometryError>
Expand description

Stage an IfcCurveSegment.

The alignment-era segment: it carries its own placement and states where along the parent curve it starts and how far it runs, rather than relying on the parent’s parameterisation alone.

Each measure is written with the IfcCurveMeasureSelect member that names its kind (see CurveMeasure). IfcLengthMeasure is a signed REAL and the schema bounds neither slot, so a negative length is written as given rather than refused.

§Errors

Refuses a non-finite measure.