Trait IsMesh

Source
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§

Source

fn num_faces(&self) -> usize

Should return the number of faces within the mesh

Source

fn num_vertices(&self) -> usize

Should return the number of vertices within the mesh

Source

fn face_vertex_ids(&self, faceid: FId) -> Result<TU>

Should return the ids of vertices of the given face

Source

fn face_vertices(&self, faceid: FId) -> Result<[V; 3]>

Should return the vertices of the given face

Source

fn vertex(&self, vertexid: VId) -> Result<V>

Should return the vertex with the given id

Implementors§

Source§

impl<M, T, IC> IsMesh<T, Face3> for SearchableMesh<M, T, IC>
where M: IsMesh<T, Face3>, IC: IsIndexContainer,

Source§

impl<P, ID, IC> IsMesh<P, Face3> for Mesh3D<P, ID, IC>
where P: Is3D + Clone, ID: IsDataContainer<P>, IC: IsIndexContainer,