pub fn fit_traced(
trace: impl FnMut(f64) -> OgeomResult<Point>,
stations: &[f64],
degree: usize,
tolerance: f64,
tol: Tolerances,
) -> OgeomResult<Fitted<BSplineCurve>>Expand description
A space curve fitted to trace at its own parameters, starting from the
samples at stations (strictly increasing): the open case of
ogeom_geom::fit::fit_curve_sampled. Each interval is measured at its
eighths as well as at the samples, and the intervals that miss
tolerance are split until it holds everywhere measured or the samples
reach ogeom_geom::fit::SAMPLED_SPANS intervals. The best fit either
way, its error the worst distance measured and met whether that is
within tolerance.
ยงErrors
As trace, and as ogeom_geom::fit::fit_curve_sampled.