Skip to main content

gpu_mesh_decimate

Function gpu_mesh_decimate 

Source
pub fn gpu_mesh_decimate(mesh: &GpuMesh, target_triangles: usize) -> GpuMesh
Expand description

Simplify a mesh to approximately target_triangles.

Repeatedly collapses the shortest edge until the triangle count is at or below target_triangles or no further collapses are possible.