pub fn mesh_fraction( distance: f32, switch_distance: f32, transition_width: f32, ) -> Result<f32, String>