#[non_exhaustive]pub struct Decomposition {
pub parts: Vec<TriMesh>,
pub fidelity: Fidelity,
pub splits: usize,
}Expand description
A solid expressed as convex parts, with the evidence to judge it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parts: Vec<TriMesh>The convex parts, in deterministic order.
fidelity: FidelityWhether the parts reproduce the input exactly.
splits: usizeSplits performed to reach this result.
Implementations§
Source§impl Decomposition
impl Decomposition
Sourcepub fn is_single_part(&self) -> bool
pub fn is_single_part(&self) -> bool
Whether the input was already convex.
Trait Implementations§
Source§impl Clone for Decomposition
impl Clone for Decomposition
Source§fn clone(&self) -> Decomposition
fn clone(&self) -> Decomposition
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Decomposition
impl Debug for Decomposition
Source§impl PartialEq for Decomposition
impl PartialEq for Decomposition
impl StructuralPartialEq for Decomposition
Auto Trait Implementations§
impl Freeze for Decomposition
impl RefUnwindSafe for Decomposition
impl Send for Decomposition
impl Sync for Decomposition
impl Unpin for Decomposition
impl UnwindSafe for Decomposition
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