ncollide3d::procedural::utils

Function split_index_buffer_and_recover_topology

Source
pub fn split_index_buffer_and_recover_topology<N: RealField + Copy>(
    indices: &[Point<u32>],
    coords: &[Point<N>],
) -> (Vec<Point<Point<u32>>>, Vec<Point<N>>)
Expand description

Duplicates the indices of each triangle on the given index buffer, giving the same id to each identical vertex.