Trait nannou::mesh::PushVertex

source ·
pub trait PushVertex<V> {
    // Required method
    fn push_vertex(&mut self, vertex: V);
}
Expand description

Meshes that can push vertices of type V while keeping all non-index channels the same length before and after the push.

Required Methods§

source

fn push_vertex(&mut self, vertex: V)

Push the given vertex onto the mesh.

Implementation requires that all non-index channels maintain the same length before and after a call to this method.

Implementations on Foreign Types§

source§

impl<'a, M, V> PushVertex<V> for &'a mut M
where M: PushVertex<V>,

source§

fn push_vertex(&mut self, v: V)

source§

impl<'a, M, V> PushVertex<V> for RefMut<'a, M>
where M: PushVertex<V>,

source§

fn push_vertex(&mut self, v: V)

Implementors§

source§

impl PushVertex<WithTexCoords<WithColor<Vec3>>> for Mesh

source§

impl<M, I, V> PushVertex<V> for WithIndices<M, Vec<I>>
where M: PushVertex<V>,

source§

impl<M, V, C> PushVertex<WithColor<V, C>> for WithColors<M, Vec<C>>
where M: PushVertex<V>,

source§

impl<M, V, N> PushVertex<WithNormal<V, N>> for WithNormals<M, Vec<N>>
where M: PushVertex<V>,

source§

impl<M, V, T> PushVertex<WithTexCoords<V, T>> for WithTexCoords<M, Vec<T>>
where M: PushVertex<V>,

source§

impl<V> PushVertex<V> for MeshPoints<Vec<V>>