pub struct ArrangementHealth {
pub broken_twins: usize,
pub broken_links: usize,
pub face_mismatches: usize,
pub unclosed_faces: usize,
pub inverted_faces: usize,
}Expand description
What an audit found.
Counts rather than a bare bool: “the structure is broken” is not actionable, “three half-edges have a twin that does not point back” is.
Fields§
§broken_twins: usizeHalf-edges whose twin does not name them back.
broken_links: usizeHalf-edges where next’s prev is not the half-edge itself.
face_mismatches: usizeHalf-edges whose next lies on a different face.
unclosed_faces: usizeBoundary walks that did not close within the arena bound.
inverted_faces: usizeBounded faces whose signed area is not strictly positive.
Implementations§
Trait Implementations§
Source§impl Clone for ArrangementHealth
impl Clone for ArrangementHealth
Source§fn clone(&self) -> ArrangementHealth
fn clone(&self) -> ArrangementHealth
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 ArrangementHealth
impl Debug for ArrangementHealth
Source§impl Default for ArrangementHealth
impl Default for ArrangementHealth
Source§fn default() -> ArrangementHealth
fn default() -> ArrangementHealth
Returns the “default value” for a type. Read more
Source§impl PartialEq for ArrangementHealth
impl PartialEq for ArrangementHealth
impl Copy for ArrangementHealth
impl Eq for ArrangementHealth
impl StructuralPartialEq for ArrangementHealth
Auto Trait Implementations§
impl Freeze for ArrangementHealth
impl RefUnwindSafe for ArrangementHealth
impl Send for ArrangementHealth
impl Sync for ArrangementHealth
impl Unpin for ArrangementHealth
impl UnwindSafe for ArrangementHealth
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