[][src]Function nannou::mesh::vertices

pub fn vertices<M, I>(mesh: M) -> Vertices<M>

Notable traits for Vertices<M>

impl<M, I> Iterator for Vertices<M> where
    M: Indices<Index = I> + GetVertex<I>,
    I: Copy
type Item = M::Vertex;
where
    M: Indices<Index = I> + GetVertex<I>,
    I: TryFrom<usize>, 

Produce an iterator yielding vertices in the order specified via the mesh's Indices channel.

Requires that the mesh implements Indices and GetVertex.

Returns None when a vertex has been yielded for every index in the Indices channel.

Panics if the Indices channel produces an index that is out of bounds of the mesh's vertices.