Function meshopt::simplify::simplify_sloppy_decoder [−][src]
pub fn simplify_sloppy_decoder<T: DecodePosition>(
indices: &[u32],
vertices: &[T],
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.