pub struct Clipper64 { /* private fields */ }Expand description
Integer-coordinate Clipper2 boolean engine (Clipper64).
Clipper2 整数布尔裁剪引擎。
Implementations§
Source§impl Clipper64
impl Clipper64
Sourcepub fn set_preserve_collinear(&mut self, value: bool)
pub fn set_preserve_collinear(&mut self, value: bool)
Sets PreserveCollinear. / 设置保留共线点。
Sourcepub fn get_preserve_collinear(&self) -> bool
pub fn get_preserve_collinear(&self) -> bool
Gets PreserveCollinear. / 读取保留共线点。
Sourcepub fn set_reverse_solution(&mut self, value: bool)
pub fn set_reverse_solution(&mut self, value: bool)
Sets ReverseSolution. / 设置反转解方向。
Sourcepub fn get_reverse_solution(&self) -> bool
pub fn get_reverse_solution(&self) -> bool
Gets ReverseSolution. / 读取反转解。
Sourcepub fn add_open_subject(&mut self, open_subject: &Paths64)
pub fn add_open_subject(&mut self, open_subject: &Paths64)
Adds open subject paths. / 添加开放 subject。
Sourcepub fn add_subject(&mut self, subject: &Paths64)
pub fn add_subject(&mut self, subject: &Paths64)
Adds closed subject paths. / 添加闭合 subject。
Sourcepub fn execute(
&mut self,
clip_type: ClipType,
fill_rule: FillRule,
) -> ClipSolution64
pub fn execute( &mut self, clip_type: ClipType, fill_rule: FillRule, ) -> ClipSolution64
Runs planar clipping, returning closed/open paths.
执行平面裁剪,返回闭合/开放路径解。
Sourcepub fn execute_tree(
&mut self,
clip_type: ClipType,
fill_rule: FillRule,
) -> ClipTreeSolution64
pub fn execute_tree( &mut self, clip_type: ClipType, fill_rule: FillRule, ) -> ClipTreeSolution64
Runs clipping with hierarchy (PolyTree) on the closed side.
执行裁剪并在闭合侧保留层次(PolyTree),开放侧仍为扁平淡点。
Auto Trait Implementations§
impl Freeze for Clipper64
impl RefUnwindSafe for Clipper64
impl !Send for Clipper64
impl !Sync for Clipper64
impl Unpin for Clipper64
impl UnsafeUnpin 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