pub struct Cube {
pub size: Vec3,
}
Expand description
The builtin cube primitive, defined by its size in the x, y, and z dimensions.
Fields§
§size: Vec3
Size of the cube in millimeters.
Trait Implementations§
Source§impl FetchBounds3D for Cube
impl FetchBounds3D for Cube
Source§fn fetch_bounds_3d(&self) -> Bounds3D
fn fetch_bounds_3d(&self) -> Bounds3D
Fetch bounds.
Source§impl RenderToMesh for Cube
impl RenderToMesh for Cube
Source§fn render_to_manifold(&self, _: &RenderResolution) -> Rc<Manifold>
fn render_to_manifold(&self, _: &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
Auto Trait Implementations§
impl Freeze for Cube
impl RefUnwindSafe for Cube
impl Send for Cube
impl Sync for Cube
impl Unpin for Cube
impl UnwindSafe for Cube
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