pub fn fit_polyline_at(
points: &[Vec3],
tolerance: f64,
maximum_points: usize,
local_interpolation: bool,
) -> Result<PolylineFit, String>Expand description
Fit ONE rung at the given station budget and measure it — no refinement.
This is fit_polyline before the ladder: the bench that pins the fit’s
convergence orders drives it directly, because the ladder by design does
NOT return a 96-station curve when 96 stations miss the tolerance. Its
report always exits PolylineFitExit::Unrefined when the tolerance is
unmet.