Trait IsFaceEditableMesh

Source
pub trait IsFaceEditableMesh<V, TU>: IsMesh<V, TU>
where TU: IsTopologyUnit,
{ // Required methods 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>; fn reserve_faces(&mut self, n: usize); }
Expand description

IsFaceEditableMesh trait used for meshes with editable face data

Required Methods§

Source

fn add_face(&mut self, v1: V, v2: V, v3: V) -> FId

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

Source

fn try_add_connection(&mut self, vid1: VId, vid2: VId, vid3: VId) -> Result<FId>

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

Source

fn reserve_faces(&mut self, n: usize)

Should reserve space for n additional faces

Implementors§

Source§

impl<P, ID, IC> IsFaceEditableMesh<P, Face3> for Mesh3D<P, ID, IC>