pub fn fit_curve3(
points: &[Point3],
options: &CurveFitOptions,
) -> Result<CurveFit3, GeomError>Expand description
Fit a B-spline curve of options.degree through points by least
squares, with options.control_point_count unknowns.
ยงErrors
Refuses non-finite points, fewer than two points, an invalid degree,
a control-point count outside degree + 1 ..= points.len(),
coincident consecutive points under chord-length or centripetal
parameterisation, a non-finite or negative smoothing weight, and a
rank-deficient least-squares system (reported with the numeric rank
and the rank required).