[][src]Struct rust_3d::Face3

pub struct Face3 {
    pub a: VId,
    pub b: VId,
    pub c: VId,
}

Face3, a face defined by 3 indices (e.g. used for Mesh)

Fields

a: VIdb: VIdc: VId

Methods

impl Face3[src]

pub fn new(a: VId, b: VId, c: VId) -> Self[src]

Creates a new Face3 from 3 indices

Trait Implementations

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

impl<P> IsVertexEditableMesh<P, Face3> for Mesh3D<P> where
    P: IsEditable3D + IsBuildable3D + Clone
[src]

impl<M, T> IsVertexEditableMesh<T, Face3> for SearchableMesh<M, T> where
    M: IsMesh<T, Face3> + IsVertexEditableMesh<T, Face3>,
    T: IsEditable3D + IsBuildable3D + Clone
[src]

impl<P> IsMesh<P, Face3> for Mesh3D<P> where
    P: Is3D + Clone
[src]

impl<M, T> IsMesh<T, Face3> for SearchableMesh<M, T> where
    M: IsMesh<T, Face3>, 
[src]

impl IsTopologyUnit for Face3[src]

impl<M, T> IsSearchableMesh<T, Face3> for SearchableMesh<M, T> where
    M: IsMesh<T, Face3>, 
[src]

fn faces_of_vertex(
    &self,
    vertexid: VId,
    cache: &mut Vec<EId>,
    result: &mut Vec<FId>
) -> Result<()>
[src]

Appends faces a vertex is part of. Error if id invalid cache can be any Vec Read more

fn face_edge_neighbours(&self, faceid: FId, result: &mut Vec<FId>) -> Result<()>[src]

Appends the neighbouring faces of the given face which share the same edges. Error if id invalid

fn face_vertex_neighbours(
    &self,
    faceid: FId,
    cache: &mut Vec<EId>,
    result: &mut Vec<FId>
) -> Result<()>
[src]

Appends the neighbouring faces of the given face which share the same vertices. Sorts and dedups the result. Error if id invalid cache can be any Vec Read more

impl PartialOrd<Face3> for Face3[src]

impl PartialEq<Face3> for Face3[src]

impl Ord for Face3[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Eq for Face3[src]

impl Clone for Face3[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Hash for Face3[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Face3[src]

impl Display for Face3[src]

Auto Trait Implementations

impl Send for Face3

impl Unpin for Face3

impl Sync for Face3

impl UnwindSafe for Face3

impl RefUnwindSafe for Face3

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]