pub struct Simplified {
pub mesh: Triangulation,
pub error: f64,
pub collapsed: usize,
pub target_met: bool,
pub deviation: Option<Deviation>,
pub result_vertex: Vec<Option<u32>>,
}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.
deviation: Option<Deviation>With Target::Verified, what was measured; None otherwise.
Simplified::error is then Deviation::furthest’s distance.
result_vertex: Vec<Option<u32>>For each vertex of the source, the vertex of Simplified::mesh
it was merged into or kept as; None for one no triangle of the
result uses, as a vertex no triangle of the source used. The source
vertices of one result vertex are those its collapses merged.
Trait Implementations§
Source§impl Clone for Simplified
impl Clone for Simplified
Auto 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
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>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.