pub struct PolygonBooleanResult {
pub outer: Vec<Vec<Point2>>,
pub holes: Vec<Vec<Point2>>,
}Expand description
The result of a polygon boolean operation.
Winding convention: every outer loop is counter-clockwise (positive
signed area) and every hole loop is clockwise (negative signed area).
A point is “in” the result when it is inside an odd nesting of these loops
per the even-odd rule; equivalently, inside some outer and not inside any
hole contained by that outer.
A disjoint union yields multiple outer loops and no holes; a union that
encloses a void yields one outer and one hole; a fully-degenerate or
empty result yields both vectors empty.
Fields§
§outer: Vec<Vec<Point2>>Counter-clockwise outer boundary loops.
holes: Vec<Vec<Point2>>Clockwise hole loops (voids).
Implementations§
Trait Implementations§
Source§impl Clone for PolygonBooleanResult
impl Clone for PolygonBooleanResult
Source§fn clone(&self) -> PolygonBooleanResult
fn clone(&self) -> PolygonBooleanResult
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 moreSource§impl Debug for PolygonBooleanResult
impl Debug for PolygonBooleanResult
Source§impl Default for PolygonBooleanResult
impl Default for PolygonBooleanResult
Source§fn default() -> PolygonBooleanResult
fn default() -> PolygonBooleanResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for PolygonBooleanResult
impl PartialEq for PolygonBooleanResult
impl StructuralPartialEq for PolygonBooleanResult
Auto Trait Implementations§
impl Freeze for PolygonBooleanResult
impl RefUnwindSafe for PolygonBooleanResult
impl Send for PolygonBooleanResult
impl Sync for PolygonBooleanResult
impl Unpin for PolygonBooleanResult
impl UnsafeUnpin for PolygonBooleanResult
impl UnwindSafe for PolygonBooleanResult
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