Skip to main content

decimate_to_ratio

Function decimate_to_ratio 

Source
pub fn decimate_to_ratio(mesh: &mut Mesh, ratio: f32) -> (usize, usize)
Expand description

Cluster with a cell size chosen so the result is close to ratio of the original triangle count (bisection search). Returns (before, after).