[][src]Function meshopt::stripify::stripify

pub fn stripify(
    indices: &[u32],
    vertex_count: usize,
    restart_index: u32
) -> Result<Vec<u32>>

Converts a previously vertex cache optimized triangle list to triangle strip, stitching strips using restart index.

For maximum efficiency the index buffer being converted has to be optimized for vertex cache first.

The restart_index should be 0xffff or 0xffffffff depending on index size, or 0 to use degenerate triangles.