Struct rust_3d::prelude::Face3 [] [src]

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

Methods

impl Face3
[src]

[src]

Creates a new Face3 from 3 indices

Trait Implementations

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

[src]

Should return the number of faces within the mesh

[src]

Should return the number of vertices within the mesh

[src]

Should return the ids of vertices of the given face

[src]

Should return the vertices of the given face

[src]

Should return the vertex with the given id

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

[src]

Should add a vertex to the end and return its id

[src]

Should change vertex at vId to the given vertex returning an error on failure

[src]

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

[src]

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

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

[src]

Should return the number of faces within the mesh

[src]

Should return the number of vertices within the mesh

[src]

Should return the ids of vertices of the given face

[src]

Should return the vertices of the given face

[src]

Should return the vertex with the given id

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

[src]

Returns the number of edges within the mesh

[src]

Should return the edge ids of the given face. Error if id invalid

[src]

Should return the edges originating at the given vertex (pointing away / having the vertex as tail). Error if id invalid

[src]

Should return the edges ending at the given vertex (pointing to / having the vertex as head). Error if id invalid

[src]

Should return the edges connecting with the vertex. Error if id invalid

[src]

Should return the vertex id of the edge's tail. Error if id invalid

[src]

Should return the vertex id of the edge's head. Error if id invalid

[src]

Should return the edge id of the next edge. Error if id invalid

[src]

Should return the edge id of the previous edge. Error if id invalid

[src]

Should return the edge id of the twin edge. Error if id invalid, None if there is none

[src]

Should return the face id of the edges face. Error if id invalid

[src]

Returns faces a vertex is part of. Error if id invalid

[src]

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

[src]

Returns the neighbouring faces of the given face which share the same vertices. Error if id invalid

impl Debug for Face3
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Face3
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl PartialOrd for Face3
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Clone for Face3
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Face3
[src]

impl Ord for Face3
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for Face3
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

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

impl IsTopologyUnit for Face3
[src]

[src]

Should return the number of indices a unit is defined with. (e.g. 3 for a tri mesh)

[src]

Should return the vertex id of the nth element of this unit. Failure if index out of bounds

impl Display for Face3
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Face3

impl Sync for Face3