pub struct Sphere {
pub radius: Scalar,
}
Expand description
The builtin sphere primitive, defined by its radius.
Fields§
§radius: Scalar
Radius of the sphere in millimeters.
Trait Implementations§
Source§impl FetchBounds3D for Sphere
impl FetchBounds3D for Sphere
Source§fn fetch_bounds_3d(&self) -> Bounds3D
fn fetch_bounds_3d(&self) -> Bounds3D
Fetch bounds.
Source§impl RenderToMesh for Sphere
impl RenderToMesh for Sphere
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 Sphere
impl RefUnwindSafe for Sphere
impl Send for Sphere
impl Sync for Sphere
impl Unpin for Sphere
impl UnwindSafe for Sphere
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