Skip to main content

point_by_distance

Function point_by_distance 

Source
pub fn point_by_distance(
    tx: &mut Transaction,
    distance_along: f64,
    offsets: (Option<f64>, Option<f64>, Option<f64>),
    basis_curve: EntityId,
) -> Result<EntityId, AlignmentError>
Expand description

Stage an IfcPointByDistanceExpression.

A position stated as a distance along a curve rather than as coordinates, which is what keeps a referent attached to the alignment when the geometry is re-fitted.

distance_along is a length along basis_curve. DistanceAlong is declared IfcCurveMeasureSelect = SELECT (IfcLengthMeasure, IfcParameterValue), so it is written IFCLENGTHMEASURE(..): the wrapper is what tells a length from a curve parameter (#201). The offsets are plain IfcLengthMeasure and stay bare.

ยงErrors

Refuses a non-finite distance or offset.