#[non_exhaustive]pub enum MorphologyMode {
Exact,
Fast {
budget: f64,
},
}Expand description
How the disc morphology (Region::erode_inner_with and its
siblings) is computed (#330).
Both modes keep the stated side: an inner result lies within the
exact disc morphology, an outer one holds it, and MorphologyBound
says by how much they may differ.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Exact
The exact route of Region::erode_inner and its siblings, bit
for bit. Its cost grows with the square of the corners along walls
of teeth closer together than about a tenth of the radius. The
choice of a CAD kernel.
Fast
The set is summed with its notches filled by chords across its
outermost corners, where that makes the sum at most budget
larger (in metres, for a disc of the radius): each wall of teeth
costs about its corners. The excess actually taken, at most
budget and often far less, is added to the
MorphologyBound::deviation and reported by
Region::excess. The choice of a rule engine.
Implementations§
Source§impl MorphologyMode
impl MorphologyMode
Sourcepub const fn fast(budget: f64) -> MorphologyMode
pub const fn fast(budget: f64) -> MorphologyMode
The fast mode with the given budget.
Trait Implementations§
Source§impl Clone for MorphologyMode
impl Clone for MorphologyMode
Source§fn clone(&self) -> MorphologyMode
fn clone(&self) -> MorphologyMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MorphologyMode
Source§impl Debug for MorphologyMode
impl Debug for MorphologyMode
Source§impl Default for MorphologyMode
impl Default for MorphologyMode
Source§fn default() -> MorphologyMode
fn default() -> MorphologyMode
Source§impl PartialEq for MorphologyMode
impl PartialEq for MorphologyMode
impl StructuralPartialEq for MorphologyMode
Auto Trait Implementations§
impl Freeze for MorphologyMode
impl RefUnwindSafe for MorphologyMode
impl Send for MorphologyMode
impl Sync for MorphologyMode
impl Unpin for MorphologyMode
impl UnsafeUnpin for MorphologyMode
impl UnwindSafe for MorphologyMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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