pub struct EdgeMultiplicityDefects {
pub over_used: usize,
pub same_direction: usize,
}Expand description
Per-undirected-edge MULTIPLICITY defects, the class the signed predicates above are structurally blind to.
Those predicates tally +1 forward and -1 reverse and pass when
everything nets to zero. Cancellation is what makes a hairline T-junction
chain forgivable, but it also erases multiplicity: an edge used by FOUR
triangles, two each way, nets to zero and reads as closed. That is a
doubled coincident surface, not a solid boundary.
over_used: an undirected edge with MORE than two triangle uses (non-manifold: a fin, a doubled skin, or self-intersecting output).same_direction: an undirected edge with exactly two uses running the SAME way round (inconsistent winding: one neighbour is flipped).
An edge used ONCE is deliberately NOT a defect here: that is an open boundary, which the closure predicates already measure and which T-junction tessellation trips constantly. Keeping it out is what lets a caller gate on this without inheriting that class’s false-positive rate.
Fields§
§over_used: usizeUndirected edges used by more than two triangles.
same_direction: usizeUndirected edges used exactly twice, both uses running the same way.
Implementations§
Trait Implementations§
Source§impl Debug for EdgeMultiplicityDefects
impl Debug for EdgeMultiplicityDefects
Source§impl Default for EdgeMultiplicityDefects
impl Default for EdgeMultiplicityDefects
Source§fn default() -> EdgeMultiplicityDefects
fn default() -> EdgeMultiplicityDefects
Source§impl PartialEq for EdgeMultiplicityDefects
impl PartialEq for EdgeMultiplicityDefects
impl Eq for EdgeMultiplicityDefects
impl StructuralPartialEq for EdgeMultiplicityDefects
Auto Trait Implementations§
impl Freeze for EdgeMultiplicityDefects
impl RefUnwindSafe for EdgeMultiplicityDefects
impl Send for EdgeMultiplicityDefects
impl Sync for EdgeMultiplicityDefects
impl Unpin for EdgeMultiplicityDefects
impl UnwindSafe for EdgeMultiplicityDefects
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable 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>
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.