Trait rust_3d::traits::IsTopologyUnit [] [src]

pub trait IsTopologyUnit {
    fn n_vids() -> usize;
fn get_vid(&self, index: usize) -> Result<VId>; }

IsTopologyUnit trait used for single units of a topology. E.g. size 1 for paths, size 3 for tri meshes, size 4 for quad meshes

Required Methods

Should return the number of indices a unit is defined with. (e.g. 3 for a tri mesh)

Should return the vertex id of the nth element of this unit. Failure if index out of bounds

Implementors