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
fn add_vertex(&mut self, vertex: V) -> VId
Should add a vertex to the end and return its id
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
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
Implementors
impl<P> IsEditableMesh<P, Face3> for Mesh3D<P> where
P: IsEditable3D + IsBuildable3D + Clone,