#[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§
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 more