pub fn fit_points_joint_from(
points: &[Point],
on_a: &[Point2],
on_b: &[Point2],
stations: &[usize],
closed: bool,
degree: usize,
tolerance: f64,
tol: Tolerances,
) -> OgeomResult<(Fitted<BSplineCurve>, BSpline2d, BSpline2d)>Expand description
As fit_points_joint, at chord-length parameters held fixed, its
knots starting at the parameters of the samples stations names.
A trace sampled far more finely than a cubic needs (a marched section,
stepped by its chord’s sag) fits in one round where the caller knows
where the spans go: the knots start there and are refined only where a
sample misses. Every sample is fitted and measured. The error is the
widest seven-coordinate distance of a sample from the fit at its own
parameter, which bounds its distance from the fit anywhere. Where
closed, the ends are pinned and the join is C1 in every coordinate,
as fit_points_joint_winding makes it.
§Errors
As fit_points_joint; also where two consecutive samples coincide in
all seven coordinates, which leaves no parameter between them.