[][src]Function meshopt::ffi::meshopt_generateVertexRemap

pub unsafe extern "C" fn meshopt_generateVertexRemap(
    destination: *mut c_uint,
    indices: *const c_uint,
    index_count: usize,
    vertices: *const c_void,
    vertex_count: usize,
    vertex_size: usize
) -> usize

Generates a vertex remap table from the vertex buffer and an optional index buffer and returns number of unique vertices As a result, all vertices that are binary equivalent map to the same (new) location, with no gaps in the resulting sequence. Resulting remap table maps old vertices to new vertices and can be used in meshopt_remapVertexBuffer/meshopt_remapIndexBuffer.

destination must contain enough space for the resulting remap table (vertex_count elements) indices can be NULL if the input is unindexed