pub enum Geometry3D {
Mesh(TriangleMesh),
Manifold(Rc<Manifold>),
Collection(Geometries3D),
}Expand description
3D Geometry
Variants§
Mesh(TriangleMesh)
Triangle mesh.
Manifold(Rc<Manifold>)
Manifold.
Collection(Geometries3D)
Collection.
Implementations§
Source§impl Geometry3D
impl Geometry3D
Sourcepub fn boolean_op(&self, other: &Geometry3D, op: &BooleanOp) -> Option<Self>
pub fn boolean_op(&self, other: &Geometry3D, op: &BooleanOp) -> Option<Self>
Execute boolean operation.
Sourcepub fn with_bounds(self) -> WithBounds3D<Geometry3D>
pub fn with_bounds(self) -> WithBounds3D<Geometry3D>
Return this geometry with calculated bounds.
Trait Implementations§
Source§impl CalcBounds3D for Geometry3D
impl CalcBounds3D for Geometry3D
Source§fn calc_bounds_3d(&self) -> Bounds3D
fn calc_bounds_3d(&self) -> Bounds3D
Fetch bounds.
Source§impl Clone for Geometry3D
impl Clone for Geometry3D
Source§fn clone(&self) -> Geometry3D
fn clone(&self) -> Geometry3D
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 Debug for Geometry3D
impl Debug for Geometry3D
Source§impl<'_derivative_strum> From<&'_derivative_strum Geometry3D> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum Geometry3D> for &'static str
Source§fn from(x: &'_derivative_strum Geometry3D) -> &'static str
fn from(x: &'_derivative_strum Geometry3D) -> &'static str
Converts to this type from the input type.
Source§impl From<&Geometry3D> for TriangleMesh
impl From<&Geometry3D> for TriangleMesh
Source§fn from(geo: &Geometry3D) -> Self
fn from(geo: &Geometry3D) -> Self
Converts to this type from the input type.
Source§impl From<Geometries3D> for Geometry3D
impl From<Geometries3D> for Geometry3D
Source§fn from(value: Geometries3D) -> Self
fn from(value: Geometries3D) -> Self
Converts to this type from the input type.
Source§impl From<Geometry3D> for &'static str
impl From<Geometry3D> for &'static str
Source§fn from(x: Geometry3D) -> &'static str
fn from(x: Geometry3D) -> &'static str
Converts to this type from the input type.
Source§impl From<Geometry3D> for Rc<Manifold>
impl From<Geometry3D> for Rc<Manifold>
Source§fn from(geo: Geometry3D) -> Self
fn from(geo: Geometry3D) -> Self
Converts to this type from the input type.
Source§impl From<Geometry3D> for TriangleMesh
impl From<Geometry3D> for TriangleMesh
Source§fn from(geo: Geometry3D) -> Self
fn from(geo: Geometry3D) -> Self
Converts to this type from the input type.
Source§impl From<Geometry3D> for WithBounds3D<Geometry3D>
impl From<Geometry3D> for WithBounds3D<Geometry3D>
Source§fn from(geo: Geometry3D) -> Self
fn from(geo: Geometry3D) -> Self
Converts to this type from the input type.
Source§impl From<Manifold> for Geometry3D
impl From<Manifold> for Geometry3D
Source§impl From<TriangleMesh> for Geometry3D
impl From<TriangleMesh> for Geometry3D
Source§fn from(value: TriangleMesh) -> Self
fn from(value: TriangleMesh) -> Self
Converts to this type from the input type.
Source§impl Mirror3D for Geometry3D
impl Mirror3D for Geometry3D
Source§fn mirror_3d(self, plane: &Plane) -> Geometries3D
fn mirror_3d(self, plane: &Plane) -> Geometries3D
Mirror operation.
Source§impl Reflect3D for Geometry3D
impl Reflect3D for Geometry3D
Source§fn reflect_3d(&self, plane: &Plane) -> Self
fn reflect_3d(&self, plane: &Plane) -> Self
Mirror a 2D geometry.
Source§impl TotalMemory for Geometry3D
impl TotalMemory for Geometry3D
Source§fn heap_memory(&self) -> usize
fn heap_memory(&self) -> usize
Get amount of heap memory in bytes.
Source§fn total_memory(&self) -> usize
fn total_memory(&self) -> usize
Total amount of memory in bytes.
Source§fn stack_memory(&self) -> usize
fn stack_memory(&self) -> usize
Get amount of stack memory in bytes.
Source§impl Transformed3D for Geometry3D
impl Transformed3D for Geometry3D
Source§fn transformed_3d(&self, mat: &Mat4) -> Self
fn transformed_3d(&self, mat: &Mat4) -> Self
Transform from matrix.
Source§impl VertexCount for Geometry3D
impl VertexCount for Geometry3D
Source§fn vertex_count(&self) -> usize
fn vertex_count(&self) -> usize
Return vertex count.
Auto Trait Implementations§
impl Freeze for Geometry3D
impl RefUnwindSafe for Geometry3D
impl !Send for Geometry3D
impl !Sync for Geometry3D
impl Unpin for Geometry3D
impl UnwindSafe for Geometry3D
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