Function meshopt::remap::generate_vertex_remap_multi[][src]

pub fn generate_vertex_remap_multi<T>(
    vertex_count: usize,
    streams: &[VertexStream<'_>],
    indices: Option<&[u32]>
) -> (usize, Vec<u32>)

Generates a vertex remap table from multiple vertex streams 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 remap_vertex_buffer/remap_index_buffer.

To remap vertex buffers, you will need to call remap_vertex_buffer for each vertex stream.

The indices can be None if the input is unindexed.