Skip to main content

ClipperD

Struct ClipperD 

Source
pub struct ClipperD { /* private fields */ }
Expand description

Double-precision Clipper2 engine (ClipperD); precision controls decimal places.

双精度布尔裁剪引擎;precision 为小数精度位数。

Implementations§

Source§

impl ClipperD

Source

pub fn new(precision: i32) -> Self

New clipper with decimal precision (e.g. 4). / 指定小数精度构造。

Source

pub fn set_preserve_collinear(&mut self, value: bool)

Sets PreserveCollinear. / 设置保留共线点。

Source

pub fn get_preserve_collinear(&self) -> bool

Gets PreserveCollinear. / 读取保留共线点。

Source

pub fn set_reverse_solution(&mut self, value: bool)

Sets ReverseSolution. / 设置反转解。

Source

pub fn get_reverse_solution(&self) -> bool

Gets ReverseSolution. / 读取反转解。

Source

pub fn clear(&mut self)

Clears all paths. / 清空路径。

Source

pub fn add_open_subject(&mut self, open_subject: &PathsD)

Adds open subjects. / 添加开放 subject。

Source

pub fn add_subject(&mut self, subject: &PathsD)

Adds closed subjects. / 添加闭合 subject。

Source

pub fn add_clip(&mut self, clip: &PathsD)

Adds clip paths. / 添加 clip。

Source

pub fn execute( &mut self, clip_type: ClipType, fill_rule: FillRule, ) -> ClipSolutionD

Planar clip; same idea as crate::Clipper64::execute. / 平面裁剪,语义同 crate::Clipper64::execute

Source

pub fn execute_tree( &mut self, clip_type: ClipType, fill_rule: FillRule, ) -> ClipTreeSolutionD

Hierarchical clip. / 带层次结构的裁剪。

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.