pub struct Mesh3D<P, ID, IC>{ /* private fields */ }
Expand description
Mesh3D, a mesh with tri-faces within 3D space
Trait Implementations§
Source§impl<P, ID, IC> HasBoundingBox3DMaybe for Mesh3D<P, ID, IC>
impl<P, ID, IC> HasBoundingBox3DMaybe for Mesh3D<P, ID, IC>
Source§fn bounding_box_maybe(&self) -> Result<BoundingBox3D>
fn bounding_box_maybe(&self) -> Result<BoundingBox3D>
Should return the bounding box if it can be calculated
Source§impl<P, ID, IC> HasCenterOfGravity3D for Mesh3D<P, ID, IC>
impl<P, ID, IC> HasCenterOfGravity3D for Mesh3D<P, ID, IC>
Source§fn center_of_gravity(&self) -> Result<Point3D>
fn center_of_gravity(&self) -> Result<Point3D>
Should return the center of gravity
Source§impl<P, ID, IC> IsFaceEditableMesh<P, Face3> for Mesh3D<P, ID, IC>
impl<P, ID, IC> IsFaceEditableMesh<P, Face3> for Mesh3D<P, ID, IC>
Source§fn add_face(&mut self, v1: P, v2: P, v3: P) -> FId
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
Source§fn try_add_connection(&mut self, vid1: VId, vid2: VId, vid3: VId) -> Result<FId>
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
Source§fn reserve_faces(&mut self, n: usize)
fn reserve_faces(&mut self, n: usize)
Should reserve space for n additional faces
Source§impl<P, ID, IC> IsMatrix4Transformable for Mesh3D<P, ID, IC>where
P: Is3D + IsMatrix4Transformable + Clone,
ID: IsDataContainer<P> + IsMatrix4Transformable + Clone,
IC: IsIndexContainer,
impl<P, ID, IC> IsMatrix4Transformable for Mesh3D<P, ID, IC>where
P: Is3D + IsMatrix4Transformable + Clone,
ID: IsDataContainer<P> + IsMatrix4Transformable + Clone,
IC: IsIndexContainer,
Source§impl<P, ID, IC> IsMesh<P, Face3> for Mesh3D<P, ID, IC>
impl<P, ID, IC> IsMesh<P, Face3> for Mesh3D<P, ID, IC>
Source§fn num_vertices(&self) -> usize
fn num_vertices(&self) -> usize
Should return the number of vertices within the mesh
Source§fn face_vertex_ids(&self, faceid: FId) -> Result<Face3>
fn face_vertex_ids(&self, faceid: FId) -> Result<Face3>
Should return the ids of vertices of the given face
Source§impl<P, ID, IC> IsMovable3D for Mesh3D<P, ID, IC>
impl<P, ID, IC> IsMovable3D for Mesh3D<P, ID, IC>
Source§impl<P, ID, IC> IsScalable for Mesh3D<P, ID, IC>
impl<P, ID, IC> IsScalable for Mesh3D<P, ID, IC>
Source§impl<P, ID, IC> IsVertexEditableMesh<P, Face3> for Mesh3D<P, ID, IC>
impl<P, ID, IC> IsVertexEditableMesh<P, Face3> for Mesh3D<P, ID, IC>
Source§fn add_vertex(&mut self, vertex: P) -> VId
fn add_vertex(&mut self, vertex: P) -> VId
Should add a vertex to the end and return its id
Source§fn change_vertex(&mut self, vid: VId, vertex: P) -> Result<()>
fn change_vertex(&mut self, vid: VId, vertex: P) -> Result<()>
Should change vertex at vId to the given vertex returning an error on failure
Source§fn reserve_vertices(&mut self, n: usize)
fn reserve_vertices(&mut self, n: usize)
Should reserve space for n additional vertices
Source§impl<P, ID, IC> Ord for Mesh3D<P, ID, IC>
impl<P, ID, IC> Ord for Mesh3D<P, ID, IC>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<P, ID, IC> PartialOrd for Mesh3D<P, ID, IC>
impl<P, ID, IC> PartialOrd for Mesh3D<P, ID, IC>
impl<P, ID, IC> Eq for Mesh3D<P, ID, IC>
impl<P, ID, IC> StructuralPartialEq for Mesh3D<P, ID, IC>
Auto Trait Implementations§
impl<P, ID, IC> Freeze for Mesh3D<P, ID, IC>
impl<P, ID, IC> RefUnwindSafe for Mesh3D<P, ID, IC>
impl<P, ID, IC> Send for Mesh3D<P, ID, IC>
impl<P, ID, IC> Sync for Mesh3D<P, ID, IC>
impl<P, ID, IC> Unpin for Mesh3D<P, ID, IC>
impl<P, ID, IC> UnwindSafe for Mesh3D<P, ID, IC>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more