pub struct TriangleMesh {
pub vertices: Vec<Vertex>,
pub triangle_indices: Vec<Triangle<u32>>,
}
Expand description
Triangle mesh
Fields§
§vertices: Vec<Vertex>
Mesh Vertices
triangle_indices: Vec<Triangle<u32>>
Triangle indices
Implementations§
Source§impl TriangleMesh
impl TriangleMesh
Sourcepub fn fetch_triangles(&self) -> Vec<Triangle<Vertex>>
pub fn fetch_triangles(&self) -> Vec<Triangle<Vertex>>
Fetch triangles.
Sourcepub fn append(&mut self, other: &TriangleMesh)
pub fn append(&mut self, other: &TriangleMesh)
Append a triangle mesh.
Sourcepub fn to_manifold(&self) -> Manifold
pub fn to_manifold(&self) -> Manifold
Convert mesh to manifold.
Trait Implementations§
Source§impl Clone for TriangleMesh
impl Clone for TriangleMesh
Source§fn clone(&self) -> TriangleMesh
fn clone(&self) -> TriangleMesh
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for TriangleMesh
impl Default for TriangleMesh
Source§fn default() -> TriangleMesh
fn default() -> TriangleMesh
Returns the “default value” for a type. Read more
Source§impl FetchBounds3D for TriangleMesh
impl FetchBounds3D for TriangleMesh
Source§fn fetch_bounds_3d(&self) -> Bounds3D
fn fetch_bounds_3d(&self) -> Bounds3D
Fetch bounds.
Source§impl From<Manifold> for TriangleMesh
impl From<Manifold> for TriangleMesh
Source§impl From<Mesh> for TriangleMesh
impl From<Mesh> for TriangleMesh
Source§impl From<TriangleMesh> for Geometry3D
impl From<TriangleMesh> for Geometry3D
Source§fn from(mesh: TriangleMesh) -> Self
fn from(mesh: TriangleMesh) -> Self
Converts to this type from the input type.
Source§impl From<TriangleMesh> for Mesh
impl From<TriangleMesh> for Mesh
Source§fn from(mesh: TriangleMesh) -> Self
fn from(mesh: TriangleMesh) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TriangleMesh
impl RefUnwindSafe for TriangleMesh
impl Send for TriangleMesh
impl Sync for TriangleMesh
impl Unpin for TriangleMesh
impl UnwindSafe for TriangleMesh
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