pub fn fit_polyline( points: &[Vec3], tolerance: f64, maximum_points: usize, local_interpolation: bool, ) -> Result<PolylineFit, String>