[][src]Trait rust_3d::IsFaceEditableMesh

pub trait IsFaceEditableMesh<V, TU>: IsMesh<V, TU> where
    TU: IsTopologyUnit
{ 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); }

IsFaceEditableMesh trait used for meshes with editable face data

Required methods

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

fn reserve_faces(&mut self, n: usize)

Should reserve space for n additional faces

Loading content...

Implementors

impl<P, ID, IC> IsFaceEditableMesh<P, Face3> for Mesh3D<P, ID, IC> where
    P: IsEditable3D + IsBuildable3D + Clone,
    ID: IsDataContainer<P>,
    IC: IsIndexContainer
[src]

Loading content...