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]
P: Is3D,
impl<P: Debug> Debug for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
impl<P: PartialEq> PartialEq for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
fn eq(&self, __arg_0: &Mesh3D<P>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Mesh3D<P>) -> bool
This method tests for !=
.
impl<P: PartialOrd> PartialOrd for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
fn partial_cmp(&self, __arg_0: &Mesh3D<P>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Mesh3D<P>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Mesh3D<P>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Mesh3D<P>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Mesh3D<P>) -> bool
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]
P: Is3D,
fn cmp(&self, __arg_0: &Mesh3D<P>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
ord_max_min
)Compares and returns the minimum of two values. Read more
impl<P: Eq> Eq for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
impl<P: Clone> Clone for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
fn clone(&self) -> Mesh3D<P>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<P: Hash> Hash for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
fn hash<__HP: Hasher>(&self, __arg_0: &mut __HP)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
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]
P: IsBuildable3D + Clone,
fn num_faces(&self) -> usize
Should return the number of faces within the mesh
fn num_vertices(&self) -> usize
Should return the number of vertices within the mesh
fn face_vertex_ids(&self, faceid: FId) -> Result<Face3>
Should return the ids of vertices of the given face
fn face_vertices(&self, faceid: FId) -> Result<(P, P, P)>
Should return the vertices of the given face
fn vertex(&self, vertexid: VId) -> Result<P>
Should return the vertex with the given id
impl<P> IsEditableMesh<P, Face3> for Mesh3D<P> where
P: IsEditable3D + IsBuildable3D + Clone,
[src]
P: IsEditable3D + IsBuildable3D + Clone,
fn add_vertex(&mut self, vertex: P) -> VId
Should add a vertex to the end and return its id
fn add_face(&mut self, v1: P, v2: P, v3: P) -> 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
impl<P> HasBoundingBox3D for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
fn bounding_box(&self) -> Result<BoundingBox3D>
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]
P: Is3D,
fn center_of_gravity(&self) -> Result<Point3D>
Should return the center of gravity