pub fn simplify_polyline_indices(points: &[Vec3], tolerance: f64) -> Vec<usize>Expand description
Douglas–Peucker against tolerance, as INDICES into points.
The indices are what a FIT needs: they carry the correspondence between an
interpolation station and the input station it came from, and that
correspondence is what lets fit_polyline measure its own result against
the input points BETWEEN its stations without a global projection per point.
simplify_polyline is a thin wrapper over this; the arithmetic is
unchanged.