pub struct MeshRepairReport {
pub welded_vertices: usize,
pub triangles: usize,
pub dropped_triangles: usize,
pub pruned_triangles: usize,
pub reoriented_triangles: usize,
pub capped_loops: usize,
pub cap_triangles: usize,
}Expand description
What repair_triangle_soup had to change to close the input.
Every count is of WELDED triangles, so a mesh whose only defect is duplicated vertices reports zeroes: welding alone made it a closed two-manifold.
Fields§
§welded_vertices: usizeVertices after the weld.
triangles: usizeTriangles after the repair.
dropped_triangles: usizeWelded triangles dropped as degenerate (two corners welded together) or as a duplicate of a triangle already kept.
pruned_triangles: usizeSurplus coincident sheets pruned at edges used by three or more triangles.
reoriented_triangles: usizeTriangles flipped so every edge-connected patch is wound one way (an inverted end cap, say), and the patch encloses positive volume.
capped_loops: usizeBoundary cycles closed with a fan.
cap_triangles: usizeTriangles the caps added.
Implementations§
Trait Implementations§
Source§impl Clone for MeshRepairReport
impl Clone for MeshRepairReport
impl Copy for MeshRepairReport
Source§impl Debug for MeshRepairReport
impl Debug for MeshRepairReport
Source§impl Default for MeshRepairReport
impl Default for MeshRepairReport
impl Eq for MeshRepairReport
Source§impl PartialEq for MeshRepairReport
impl PartialEq for MeshRepairReport
impl StructuralPartialEq for MeshRepairReport
Auto Trait Implementations§
impl Forget for MeshRepairReport
impl Freeze for MeshRepairReport
impl Move for MeshRepairReport
impl RefUnwindSafe for MeshRepairReport
impl Send for MeshRepairReport
impl Sync for MeshRepairReport
impl Unpin for MeshRepairReport
impl UnsafeUnpin for MeshRepairReport
impl UnwindSafe for MeshRepairReport
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.