pub fn open_cross_profile(
tx: &mut Transaction,
name: Option<&str>,
horizontal_widths: bool,
widths: &[f64],
slopes: &[f64],
tags: Option<&[&str]>,
offset_point: Option<EntityId>,
) -> Result<EntityId, GeometryError>Expand description
Stage an IfcOpenCrossProfileDef.
A road or rail cross-section given as a chain of segments: each
width is paired with the slope of that segment, so the two lists
run in parallel and must be the same length
(CorrespondingSlopeWidths). Tags names the points between
segments, so it carries exactly one more entry than there are
segments (CorrespondingTags).
ProfileType is fixed to CURVE by CorrectProfileType: an open
chain bounds no area, so it is not a parameter.
ยงErrors
Refuses empty or mismatched width and slope lists, a tags list
that is not widths.len() + 1, a negative width
(IfcNonNegativeLengthMeasure), and non-finite values.