Skip to main content

offset_curve_by_distances

Function offset_curve_by_distances 

Source
pub fn offset_curve_by_distances(
    tx: &mut Transaction,
    basis: EntityId,
    offset_values: &[EntityId],
    tag: Option<&str>,
) -> Result<EntityId, GeometryError>
Expand description

Stage an IfcOffsetCurveByDistances.

Unlike offset_curve_2d and offset_curve_3d, which offset by one constant, this varies the offset along the basis curve: each IfcPointByDistanceExpression fixes a distance at a station, and the offset interpolates between them. That is what alignment widenings need – a lay-by is not a constant offset.

§Errors

Refuses an empty offset_values list, which is LIST [1:?].