Function nannou::geom::tri::from_index_tri

source ·
pub fn from_index_tri<V>(vertices: &[V], indices: &[usize; 3]) -> Tri<V>
where V: Clone,
Expand description

Create a Tri by indexing into the given buffer.

Panics if any of the given indices are out of range of the given vertices slice.