Trait rust_3d::traits::IsEditableMesh [] [src]

pub trait IsEditableMesh<V, TU>: IsMesh<V, TU> where
    TU: IsTopologyUnit
{ fn add_vertex(&mut self, vertex: V) -> VId;
fn add_face(&mut self, v1: V, v2: V, v3: V) -> FId;
fn try_add_connection(
        &mut self,
        vid1: VId,
        vid2: VId,
        vid3: VId
    ) -> Result<FId>; }

IsEditableMesh is a trait used for meshes which can be edited

Required Methods

Should add a vertex to the end and return its id

Should add a face with the 3 positions. Also should return the id of the new face

Should add a face to the mesh by connecting the vertices via their ids. Should return the id of the newly added face

Implementors