[][src]Trait nannou::mesh::GetVertex

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.

Loading content...

Required methods

fn get_vertex(&self, index: usize) -> Option<Self::Vertex>

Create a vertex containing all channel properties for the given index.

Loading content...

Implementations on Foreign Types

impl<'a, M> GetVertex for &'a M where
    M: GetVertex
[src]

type Vertex = M::Vertex

impl<'a, M> GetVertex for &'a mut M where
    M: GetVertex
[src]

type Vertex = M::Vertex

impl<'a, M> GetVertex for Ref<'a, M> where
    M: GetVertex
[src]

type Vertex = M::Vertex

impl<'a, M> GetVertex for RefMut<'a, M> where
    M: GetVertex
[src]

type Vertex = M::Vertex

Loading content...

Implementors

impl<M, C> GetVertex for WithColors<M, C> where
    M: GetVertex,
    C: Channel,
    C::Element: Clone
[src]

type Vertex = WithColor<M::Vertex, C::Element>

impl<M, I> GetVertex for WithIndices<M, I> where
    M: GetVertex
[src]

type Vertex = M::Vertex

impl<M, N> GetVertex for WithNormals<M, N> where
    M: GetVertex,
    N: Channel,
    N::Element: Clone
[src]

type Vertex = WithNormal<M::Vertex, N::Element>

impl<M, T, S> GetVertex for WithTexCoords<M, T, S> where
    M: GetVertex,
    T: Channel,
    T::Element: Clone
[src]

type Vertex = WithTexCoords<M::Vertex, T::Element>

impl<P> GetVertex for MeshPoints<P> where
    P: Channel,
    P::Element: Vertex
[src]

type Vertex = P::Element

impl<S> GetVertex for Mesh<S> where
    MeshType<S>: GetVertex<Vertex = Vertex<S>>, 
[src]

type Vertex = Vertex<S>

Loading content...