Function ncollide3d::procedural::utils::split_index_buffer[][src]

pub fn split_index_buffer(indices: &[Point<u32>]) -> Vec<Point<Point<u32>>>

Duplicates the indices of each triangle on the given index buffer.

For example: [ (0.0, 1.0, 2.0) ] becomes: [ (0.0, 0.0, 0.0), (1.0, 1.0, 1.0), (2.0, 2.0, 2.0)].