pub fn fit_points_joint_closed(
points: &[Point],
on_a: &[Point2],
on_b: &[Point2],
degree: usize,
tolerance: f64,
tol: Tolerances,
) -> OgeomResult<(Fitted<BSplineCurve>, BSpline2d, BSpline2d)>Expand description
As fit_points_joint, with a closed loop’s join made C1.
The seven-dimensional twin of fit_points_closed: when the trace is a
loop (the first sample repeated at the end in every space), the join’s
tangent constraint is eliminated inside the shared solve, so the curve
and both pcurves cross their seam smoothly, still same-parameter by
construction. An input that is not closed in all seven coordinates fits
as fit_points_joint would; the constraint simply never engages.
§Errors
As fit_points_joint.