pub struct Deviation {
pub within_share: f64,
pub distance_at_share: f64,
pub furthest: (Point, f64),
pub rms: f64,
pub pinned: usize,
pub rounds: usize,
}Expand description
The distance between a decimated mesh and its source, measured both ways.
The points measured are the source’s vertices, against the result, and the result’s vertices and triangle centres, against the source; each distance is to the nearest point on the other mesh’s triangles.
Fields§
The smaller of the two sides’ fractions of points within the tolerance.
The distance within which the asked share of points lies, on the worse of the two sides.
furthest: (Point, f64)The point farthest from the other mesh, on either side, and its distance.
rms: f64The root mean square distance over every point measured, both sides.
pinned: usizeHow many source vertices the measurement pinned, counted before a
max_triangles released them.
rounds: usizeHow many decimations were run, each from the source.
Trait Implementations§
impl Copy for Deviation
impl StructuralPartialEq for Deviation
Auto Trait Implementations§
impl Freeze for Deviation
impl RefUnwindSafe for Deviation
impl Send for Deviation
impl Sync for Deviation
impl Unpin for Deviation
impl UnsafeUnpin for Deviation
impl UnwindSafe for Deviation
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<T> Scalar for T
§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.