pub enum Geometry3D {
Mesh(TriangleMesh),
Manifold(Rc<Manifold>),
Cube(Cube),
Sphere(Sphere),
Cylinder(Cylinder),
Collection(Geometries3D),
}
Expand description
3D Geometry
Variants§
Mesh(TriangleMesh)
Triangle mesh.
Manifold(Rc<Manifold>)
Manifold.
Cube(Cube)
Cube.
Sphere(Sphere)
Sphere.
Cylinder(Cylinder)
Cylinder.
Collection(Geometries3D)
Collection,
Implementations§
Source§impl Geometry3D
impl Geometry3D
Sourcepub fn boolean_op(
&self,
resolution: &RenderResolution,
other: &Geometry3D,
op: &BooleanOp,
) -> Option<Self>
pub fn boolean_op( &self, resolution: &RenderResolution, other: &Geometry3D, op: &BooleanOp, ) -> Option<Self>
Execute boolean operation.
Sourcepub fn hull(&self, resolution: &RenderResolution) -> Manifold
pub fn hull(&self, resolution: &RenderResolution) -> Manifold
Convex hull for geometry.
Trait Implementations§
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 FetchBounds3D for Geometry3D
impl FetchBounds3D for Geometry3D
Source§fn fetch_bounds_3d(&self) -> Bounds3D
fn fetch_bounds_3d(&self) -> Bounds3D
Fetch bounds.
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 &'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<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 RenderToMesh for Geometry3D
impl RenderToMesh for Geometry3D
Source§fn render_to_manifold(&self, resolution: &RenderResolution) -> Rc<Manifold>
fn render_to_manifold(&self, resolution: &RenderResolution) -> Rc<Manifold>
Render to manifold. Read more
Source§fn render_to_mesh(&self, resolution: &RenderResolution) -> TriangleMesh
fn render_to_mesh(&self, resolution: &RenderResolution) -> TriangleMesh
Render to mesh. Read more
Source§impl Transformed3D for Geometry3D
impl Transformed3D for Geometry3D
Source§fn transformed_3d(
&self,
render_resolution: &RenderResolution,
mat: &Mat4,
) -> Self
fn transformed_3d( &self, render_resolution: &RenderResolution, mat: &Mat4, ) -> Self
Transform from matrix.
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