pub fn bspline_curve_with_knots(
tx: &mut Transaction,
degree: i64,
control_points: &[EntityId],
curve_form: &str,
knots: KnotVector<'_>,
) -> Result<EntityId, GeometryError>Expand description
Stage an IfcBSplineCurveWithKnots.
§The invariant this checks
A B-spline is only well formed when
sum(KnotMultiplicities) = Degree + |ControlPointsList| + 1That is arithmetic, not geometry: it needs no evaluator, and a file violating it describes no curve at all. Checking it here turns a silent downstream failure into a refusal at the point of authoring.
§Errors
Refuses a degree below one, fewer than two control points, a multiplicity/knot length mismatch, non-increasing knots, a non-positive multiplicity, or a knot sum that breaks the identity above.