Trait nannou::mesh::GetVertex
[−]
[src]
pub trait GetVertex { type Vertex; fn get_vertex(&self, index: usize) -> Option<Self::Vertex>; }
Mesh types that can be indexed to produce a vertex.
Associated Types
type Vertex
The vertex type representing all channels of data within the mesh at a single index.
Required Methods
fn get_vertex(&self, index: usize) -> Option<Self::Vertex>
Create a vertex containing all channel properties for the given index.
Implementations on Foreign Types
impl<'a, M> GetVertex for &'a M where
M: GetVertex,
[src]
M: GetVertex,
impl<'a, M> GetVertex for &'a mut M where
M: GetVertex,
[src]
M: GetVertex,
impl<'a, M> GetVertex for Ref<'a, M> where
M: GetVertex,
[src]
M: GetVertex,
impl<'a, M> GetVertex for RefMut<'a, M> where
M: GetVertex,
[src]
M: GetVertex,
Implementors
impl<S> GetVertex for Mesh<S> where
MeshType<S>: GetVertex<Vertex = Vertex<S>>, type Vertex = Vertex<S>;impl<P> GetVertex for MeshPoints<P> where
P: Channel,
P::Element: Vertex, type Vertex = P::Element;impl<M, I> GetVertex for WithIndices<M, I> where
M: GetVertex, type Vertex = M::Vertex;impl<M, C> GetVertex for WithColors<M, C> where
M: GetVertex,
C: Channel,
C::Element: Clone, type Vertex = WithColor<M::Vertex, C::Element>;impl<M, T, S> GetVertex for WithTexCoords<M, T, S> where
M: GetVertex,
T: Channel,
T::Element: Clone, type Vertex = WithTexCoords<M::Vertex, T::Element>;impl<M, N> GetVertex for WithNormals<M, N> where
M: GetVertex,
N: Channel,
N::Element: Clone, type Vertex = WithNormal<M::Vertex, N::Element>;