Trait genmesh::generators::SharedVertex [] [src]

pub trait SharedVertex<V>: Sized {
    fn shared_vertex(&self, i: usize) -> V;
    fn shared_vertex_count(&self) -> usize;

    fn shared_vertex_iter<'a>(&'a self) -> SharedVertexIterator<'a, Self, V> { ... }
}

The SharedVertex trait is meant to be used with the IndexedPolygon trait. This trait is meant as a way to calculate the shared vertices that are required to build the implementors mesh.

Required Methods

return the shared vertex at offset i

return the number of shared vertices required to represent the mesh

Provided Methods

create an iterator that returns each shared vertex that is required to build the mesh.

Implementors