[][src]Function meshopt::simplify::simplify_sloppy

pub fn simplify_sloppy(
    indices: &[u32],
    vertices: &VertexDataAdapter,
    target_count: usize
) -> Vec<u32>

Reduces the number of triangles in the mesh, sacrificing mesh appearance for simplification performance. The algorithm doesn't preserve mesh topology but is always able to reach target triangle count.

The resulting index buffer references vertices from the original vertex buffer.

If the original vertex data isn't required, creating a compact vertex buffer using optimize_vertex_fetch is recommended.