Function nannou::mesh::vertices
[−]
[src]
ⓘImportant traits for Vertices<M>
pub fn vertices<M>(mesh: M) -> Vertices<M> where
M: Indices + GetVertex,
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.