pub trait IsMesh<V, TU>where
TU: IsTopologyUnit,{
// Required methods
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; 3]>;
fn vertex(&self, vertexid: VId) -> Result<V>;
}
Expand description
IsMesh is trait used for meshes
Required Methods§
Sourcefn num_vertices(&self) -> usize
fn num_vertices(&self) -> usize
Should return the number of vertices within the mesh
Sourcefn face_vertex_ids(&self, faceid: FId) -> Result<TU>
fn face_vertex_ids(&self, faceid: FId) -> Result<TU>
Should return the ids of vertices of the given face
Sourcefn face_vertices(&self, faceid: FId) -> Result<[V; 3]>
fn face_vertices(&self, faceid: FId) -> Result<[V; 3]>
Should return the vertices of the given face