pub struct Simplified {
pub mesh: Triangulation,
pub error: f64,
pub collapsed: usize,
pub target_met: bool,
}Expand description
What decimation produced.
Fields§
§mesh: TriangulationThe decimated mesh.
error: f64The worst error accepted, as a distance.
Zero when nothing was collapsed. Every vertex of the result is within this of the surface the original described.
collapsed: usizeHow many edge collapses were made.
target_met: boolWhether the target was reached.
A mesh can run out of valid collapses before it runs out of triangles (every remaining edge is on a boundary or would fold something), and then the result is as small as it can safely be rather than as small as was asked for. Reported rather than passed off as success.
Trait Implementations§
Source§impl Clone for Simplified
impl Clone for Simplified
Source§fn clone(&self) -> Simplified
fn clone(&self) -> Simplified
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Simplified
impl RefUnwindSafe for Simplified
impl Send for Simplified
impl Sync for Simplified
impl Unpin for Simplified
impl UnsafeUnpin for Simplified
impl UnwindSafe for Simplified
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,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.