Struct rust_3d::Mesh3D [] [src]

pub struct Mesh3D<P> where
    P: Is3D
{ /* fields omitted */ }

Mesh3D, a mesh with tri-faces within 3D space

Trait Implementations

impl<P: Default> Default for Mesh3D<P> where
    P: Is3D
[src]

Returns the "default value" for a type. Read more

impl<P: Debug> Debug for Mesh3D<P> where
    P: Is3D
[src]

Formats the value using the given formatter.

impl<P: PartialEq> PartialEq for Mesh3D<P> where
    P: Is3D
[src]

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

This method tests for !=.

impl<P: PartialOrd> PartialOrd for Mesh3D<P> where
    P: Is3D
[src]

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

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

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

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

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

impl<P: Ord> Ord for Mesh3D<P> where
    P: Is3D
[src]

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

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

Compares and returns the maximum of two values. Read more

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

Compares and returns the minimum of two values. Read more

impl<P: Eq> Eq for Mesh3D<P> where
    P: Is3D
[src]

impl<P: Clone> Clone for Mesh3D<P> where
    P: Is3D
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P: Hash> Hash for Mesh3D<P> where
    P: Is3D
[src]

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

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

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

Should return the number of faces within the mesh

Should return the number of vertices within the mesh

Should return the ids of vertices of the given face

Should return the vertices of the given face

Should return the vertex with the given id

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

Should add a vertex to the end and return its id

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

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

impl<P> HasBoundingBox3D for Mesh3D<P> where
    P: Is3D
[src]

Should return the bounding box as a pair of two points. The first point should be the minimum for all coordinates, the second the maximum for all coordinates

impl<P> HasCenterOfGravity3D for Mesh3D<P> where
    P: Is3D
[src]

Should return the center of gravity