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

pub fn simplify(
    indices: &[u32],
    vertices: &VertexDataAdapter<'_>,
    target_count: usize,
    target_error: f32
) -> Vec<u32>

Reduces the number of triangles in the mesh, attempting to preserve mesh appearance as much as possible.

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.