pub fn resample_polyline(pts: &[Vec3], n_out: usize) -> Vec<Vec3>
Reparameterize a polyline by arc length to produce evenly spaced points