pub fn fit_points(
points: &[Point],
degree: usize,
tolerance: f64,
tol: Tolerances,
) -> OgeomResult<Fitted<BSplineCurve>>Expand description
Fit a spline through 3D points, refining until tolerance is met.
The first and last points are honoured exactly: they are where the curve joins whatever comes next, and a fit that drifts at its ends produces gaps at every junction built on it. A closed polyline (first point repeated at the end) therefore comes back closed.
ยงErrors
OgeomError::Construction if there are
fewer than two distinct points or the tolerance is not a positive distance.