#[non_exhaustive]pub enum Strategy {
Exact,
Approximate {
max_concavity: Scalar,
},
}Expand description
How hard to work at making each part convex.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exact
Split until every part is convex to within tolerance.
The union of the parts reproduces the input. Part count is whatever the geometry demands, which for a deeply non-convex solid is large.
Approximate
Stop once every part is convex to within max_concavity.
Trades fidelity for part count. The union approximates the input: concave pockets shallower than the bound are filled in.
Trait Implementations§
impl Copy for Strategy
impl StructuralPartialEq for Strategy
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnwindSafe for Strategy
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