pub enum WindingRule {
Positive,
Nonzero,
}Expand description
Which winding numbers count as solid material.
The robust engine labels every cell of the arrangement with a winding number per operand; this rule turns that integer into “inside” or “outside”. It is a robust-engine semantic only — the exact engine has no winding labels to reinterpret and ignores the rule entirely.
Variants§
Positive
w >= 1 (default). Inside-out geometry (negative winding) is not
material, so an inverted region of a self-intersecting scan is
discarded — the mathematically standard interpretation of orientation.
Nonzero
w != 0. Inside-out geometry is kept as solid, matching the intent of
scans and CAD exports whose shells are wound inconsistently. Chosen
per call for models where dropping the inverted chunk is not what the
user wants.
Trait Implementations§
Source§impl Clone for WindingRule
impl Clone for WindingRule
Source§fn clone(&self) -> WindingRule
fn clone(&self) -> WindingRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WindingRule
Source§impl Debug for WindingRule
impl Debug for WindingRule
Source§impl Default for WindingRule
impl Default for WindingRule
Source§fn default() -> WindingRule
fn default() -> WindingRule
Returns the “default value” for a type. Read more
impl Eq for WindingRule
Source§impl Hash for WindingRule
impl Hash for WindingRule
Source§impl PartialEq for WindingRule
impl PartialEq for WindingRule
impl StructuralPartialEq for WindingRule
Auto Trait Implementations§
impl Freeze for WindingRule
impl RefUnwindSafe for WindingRule
impl Send for WindingRule
impl Sync for WindingRule
impl Unpin for WindingRule
impl UnsafeUnpin for WindingRule
impl UnwindSafe for WindingRule
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