pub struct ActiveRegion {
pub e_up: EdgeIdx,
pub node_up: NodeIdx,
pub winding_number: i32,
pub inside: bool,
pub sentinel: bool,
pub dirty: bool,
pub fix_upper_edge: bool,
}Expand description
An active region: the area between two adjacent edges crossing the sweep line.
Fields§
§e_up: EdgeIdxUpper edge (directed right to left).
node_up: NodeIdxNode in the edge dictionary for this region.
winding_number: i32Running winding number for the region.
inside: boolIs this region inside the polygon?
sentinel: boolSentinel: marks fake edges at t = ±infinity.
dirty: boolDirty: upper or lower edge changed, need to check for intersection.
fix_upper_edge: boolTemporary edge introduced for a right vertex (will be fixed later).
Trait Implementations§
Source§impl Clone for ActiveRegion
impl Clone for ActiveRegion
Source§fn clone(&self) -> ActiveRegion
fn clone(&self) -> ActiveRegion
Returns a duplicate 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 ActiveRegion
impl Debug for ActiveRegion
Source§impl Default for ActiveRegion
impl Default for ActiveRegion
Source§fn default() -> ActiveRegion
fn default() -> ActiveRegion
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActiveRegion
impl RefUnwindSafe for ActiveRegion
impl Send for ActiveRegion
impl Sync for ActiveRegion
impl Unpin for ActiveRegion
impl UnsafeUnpin for ActiveRegion
impl UnwindSafe for ActiveRegion
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