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]

[src]

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

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

[src]

Formats the value using the given formatter. Read more

impl<P: PartialEq> PartialEq for Mesh3D<P> where
    P: Is3D
[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<P: PartialOrd> PartialOrd for Mesh3D<P> where
    P: Is3D
[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<P: Ord> Ord for Mesh3D<P> where
    P: Is3D
[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<P: Eq> Eq for Mesh3D<P> where
    P: Is3D
[src]

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<P: Hash> Hash for Mesh3D<P> where
    P: Is3D
[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<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<P> HasBoundingBox3D for Mesh3D<P> where
    P: Is3D
[src]

[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]

[src]

Should return the center of gravity

Auto Trait Implementations

impl<P> Send for Mesh3D<P> where
    P: Send

impl<P> Sync for Mesh3D<P> where
    P: Sync