Skip to main content

polynomial_curve

Function polynomial_curve 

Source
pub fn polynomial_curve(
    tx: &mut Transaction,
    position: EntityId,
    coefficients: PolynomialCoefficients<'_>,
    position_is_3d: bool,
) -> Result<EntityId, GeometryError>
Expand description

Stage an IfcPolynomialCurve.

Each coefficient list is LIST [2:?] OF IfcReal, lowest degree first, and at least two of the three axes must be given (ValidCoefficients): a curve defined along one axis alone is a line segment expressed as a curve, which the schema declines to call a polynomial curve.

ยงErrors

Refuses fewer than two coefficient lists, a list shorter than two entries, a non-finite coefficient, and CoefficientsZ against a 2D placement (CorrectPositionDim) when position_is_3d is false.