Trait rust_3d::traits::IsMesh [] [src]

pub trait IsMesh<V, TU> where
    TU: IsTopologyUnit
{ fn num_faces(&self) -> usize;
fn num_vertices(&self) -> usize;
fn face_vertex_ids(&self, faceid: FId) -> Result<TU>;
fn face_vertices(&self, faceid: FId) -> Result<(V, V, V)>;
fn vertex(&self, vertexid: VId) -> Result<V>; }

IsMesh is trait used for meshes

Required Methods

Should return the number of faces within the mesh

Should return the number of vertices within the mesh

Should return the ids of vertices of the given face

Should return the vertices of the given face

Should return the vertex with the given id

Implementors