pub struct ClipperD { /* private fields */ }Expand description
Double-precision Clipper2 engine (ClipperD); precision controls decimal places.
双精度布尔裁剪引擎;precision 为小数精度位数。
Implementations§
Source§impl ClipperD
impl ClipperD
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: &PathsD)
pub fn add_open_subject(&mut self, open_subject: &PathsD)
Adds open subjects. / 添加开放 subject。
Sourcepub fn add_subject(&mut self, subject: &PathsD)
pub fn add_subject(&mut self, subject: &PathsD)
Adds closed subjects. / 添加闭合 subject。
Sourcepub fn execute(
&mut self,
clip_type: ClipType,
fill_rule: FillRule,
) -> ClipSolutionD
pub fn execute( &mut self, clip_type: ClipType, fill_rule: FillRule, ) -> ClipSolutionD
Planar clip; same idea as crate::Clipper64::execute. / 平面裁剪,语义同 crate::Clipper64::execute。
Sourcepub fn execute_tree(
&mut self,
clip_type: ClipType,
fill_rule: FillRule,
) -> ClipTreeSolutionD
pub fn execute_tree( &mut self, clip_type: ClipType, fill_rule: FillRule, ) -> ClipTreeSolutionD
Hierarchical clip. / 带层次结构的裁剪。
Auto Trait Implementations§
impl Freeze for ClipperD
impl RefUnwindSafe for ClipperD
impl !Send for ClipperD
impl !Sync for ClipperD
impl Unpin for ClipperD
impl UnsafeUnpin for ClipperD
impl UnwindSafe for ClipperD
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