[][src]Trait rust_3d::IsMesh

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; 3]>;
fn vertex(&self, vertexid: VId) -> Result<V>; }

IsMesh is trait used for meshes

Required methods

fn num_faces(&self) -> usize

Should return the number of faces within the mesh

fn num_vertices(&self) -> usize

Should return the number of vertices within the mesh

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

Should return the ids of vertices of the given face

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

Should return the vertices of the given face

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

Should return the vertex with the given id

Loading content...

Implementors

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

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

Loading content...