pub fn to_bezier_segments<P: Blend>(
knots: &KnotVector,
control: &[P],
tol: Tolerances,
) -> OgeomResult<Vec<BezierSegment<P>>>Expand description
Decompose a B-spline into its Bézier segments.
Returns one control-point array per segment, each of degree + 1 points,
together with the parameter interval it covers. Many algorithms (plotting,
intersection, conversion to exchange formats) are far simpler on Bézier
pieces than on the whole spline.
§Errors
As insert_knot.