pub struct Cylinder {
pub radius_bottom: Scalar,
pub radius_top: Scalar,
pub height: Scalar,
}
Expand description
The built-in cylinder primitive, defined by an bottom radius, top radius and height. The cylinder is oriented along the z-axis.
Fields§
§radius_bottom: Scalar
Bottom radius of the cylinder in millimeters.
radius_top: Scalar
Top radius of the cylinder in millimeters.
height: Scalar
Height of the cylinder in millimeters.
Trait Implementations§
Source§impl FetchBounds3D for Cylinder
impl FetchBounds3D for Cylinder
Source§fn fetch_bounds_3d(&self) -> Bounds3D
fn fetch_bounds_3d(&self) -> Bounds3D
Fetch bounds.
Source§impl RenderToMesh for Cylinder
impl RenderToMesh for Cylinder
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
Auto Trait Implementations§
impl Freeze for Cylinder
impl RefUnwindSafe for Cylinder
impl Send for Cylinder
impl Sync for Cylinder
impl Unpin for Cylinder
impl UnwindSafe for Cylinder
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