Function meshopt::ffi::meshopt_simplifySloppy[][src]

pub unsafe extern "C" fn meshopt_simplifySloppy(
    destination: *mut c_uint,
    indices: *const c_uint,
    index_count: usize,
    vertex_positions: *const f32,
    vertex_count: usize,
    vertex_positions_stride: usize,
    target_index_count: usize
) -> usize

Experimental: Mesh simplifier (sloppy) Reduces the number of triangles in the mesh, sacrificing mesh apperance for simplification performance The algorithm doesn’t preserve mesh topology but is always able to reach target triangle count. Returns the number of indices after simplification, with destination containing new index data 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 meshopt_optimizeVertexFetch is recommended.

destination must contain enough space for the target index buffer vertex_positions should have float3 position in the first 12 bytes of each vertex - similar to glVertexPointer