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§
Sourcefn add_face(&mut self, v1: V, v2: V, v3: V) -> FId
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
Sourcefn try_add_connection(&mut self, vid1: VId, vid2: VId, vid3: VId) -> Result<FId>
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
Sourcefn reserve_faces(&mut self, n: usize)
fn reserve_faces(&mut self, n: usize)
Should reserve space for n additional faces