pub struct Paths64(/* private fields */);Expand description
Owned collection of closed/open paths in integer space.
整数空间下的多条路径集合。
Implementations§
Source§impl Paths64
impl Paths64
Sourcepub fn new(paths: impl Into<Vec<Path64>>) -> Self
pub fn new(paths: impl Into<Vec<Path64>>) -> Self
New collection from any Into<Vec>. / 由 Into<Vec> 构造。
Sourcepub fn add_paths(&mut self, paths: impl IntoIterator<Item = Path64>)
pub fn add_paths(&mut self, paths: impl IntoIterator<Item = Path64>)
Extend with many paths. / 追加多条。
Source§impl Paths64
impl Paths64
Sourcepub fn simplify(&self, epsilon: f64, is_open_path: bool) -> LazyPaths64
pub fn simplify(&self, epsilon: f64, is_open_path: bool) -> LazyPaths64
Simplifies every path. / 对每条路径做简化。
Sourcepub fn inflate(
&self,
delta: f64,
join_type: JoinType,
end_type: EndType,
miter_limit: f64,
) -> LazyPaths64
pub fn inflate( &self, delta: f64, join_type: JoinType, end_type: EndType, miter_limit: f64, ) -> LazyPaths64
Offsets (inflates/deflates) all paths by delta using join/end rules.
按连接/端点规则对全部路径做 delta 偏移(膨胀或收缩)。
Sourcepub fn to_pathsd(&self) -> LazyPathsD
pub fn to_pathsd(&self) -> LazyPathsD
Converts all paths to PathD blobs. / 将全部路径转为双精度。
Source§impl Paths64
impl Paths64
Sourcepub fn minkowski_sum(
&self,
pattern: &Path64,
is_closed: bool,
fillrule: ClipperFillRule,
) -> LazyPaths64
pub fn minkowski_sum( &self, pattern: &Path64, is_closed: bool, fillrule: ClipperFillRule, ) -> LazyPaths64
Minkowski sum against each path with fill rule. / 对多条路径做闵可夫斯基和(含填充规则)。
Sourcepub fn minkowski_diff(
&self,
pattern: &Path64,
is_closed: bool,
fillrule: ClipperFillRule,
) -> LazyPaths64
pub fn minkowski_diff( &self, pattern: &Path64, is_closed: bool, fillrule: ClipperFillRule, ) -> LazyPaths64
Minkowski difference with fill rule. / 闵可夫斯基差(含填充规则)。
Trait Implementations§
Source§impl FromIterator<Path64> for Paths64
impl FromIterator<Path64> for Paths64
Source§fn from_iter<T: IntoIterator<Item = Path64>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = Path64>>(iter: T) -> Self
Collect iterator of paths. / 从迭代器收集。
Auto Trait Implementations§
impl Freeze for Paths64
impl RefUnwindSafe for Paths64
impl Send for Paths64
impl Sync for Paths64
impl Unpin for Paths64
impl UnsafeUnpin for Paths64
impl UnwindSafe for Paths64
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