pub struct Clipper64 {
pub base: ClipperBase,
}Expand description
Main integer-coordinate polygon clipper Direct port from clipper.engine.h line 459
Fields§
§base: ClipperBaseImplementations§
Source§impl Clipper64
impl Clipper64
pub fn new() -> Self
Sourcepub fn add_subject(&mut self, subjects: &Paths64)
pub fn add_subject(&mut self, subjects: &Paths64)
Add subject paths
Sourcepub fn add_open_subject(&mut self, open_subjects: &Paths64)
pub fn add_open_subject(&mut self, open_subjects: &Paths64)
Add open subject paths
Sourcepub fn error_code(&self) -> i32
pub fn error_code(&self) -> i32
Get error code
Sourcepub fn set_preserve_collinear(&mut self, val: bool)
pub fn set_preserve_collinear(&mut self, val: bool)
Set/get preserve collinear
pub fn preserve_collinear(&self) -> bool
Sourcepub fn set_reverse_solution(&mut self, val: bool)
pub fn set_reverse_solution(&mut self, val: bool)
Set/get reverse solution
pub fn reverse_solution(&self) -> bool
Sourcepub fn execute(
&mut self,
clip_type: ClipType,
fill_rule: FillRule,
solution_closed: &mut Paths64,
solution_open: Option<&mut Paths64>,
) -> bool
pub fn execute( &mut self, clip_type: ClipType, fill_rule: FillRule, solution_closed: &mut Paths64, solution_open: Option<&mut Paths64>, ) -> bool
Execute a clipping operation, returning closed and open paths Direct port from clipper.engine.h Clipper64::Execute
Sourcepub fn execute_tree(
&mut self,
clip_type: ClipType,
fill_rule: FillRule,
polytree: &mut PolyTree64,
open_paths: &mut Paths64,
) -> bool
pub fn execute_tree( &mut self, clip_type: ClipType, fill_rule: FillRule, polytree: &mut PolyTree64, open_paths: &mut Paths64, ) -> bool
Execute a clipping operation, returning a polytree and open paths Direct port from clipper.engine.h Clipper64::Execute (polytree version)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clipper64
impl RefUnwindSafe for Clipper64
impl Send for Clipper64
impl Sync for Clipper64
impl Unpin for Clipper64
impl UnwindSafe for Clipper64
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