pub struct FillOptionsBuilder { /* private fields */ }Expand description
A builder for FillOptions, see FillOptions::builder.
Implementations§
Source§impl FillOptionsBuilder
impl FillOptionsBuilder
Sourcepub fn max_perimeter(self, max_perimeter: f64) -> Self
pub fn max_perimeter(self, max_perimeter: f64) -> Self
Fill only loops whose perimeter is at most this, in local units.
Sourcepub fn max_area(self, max_area: f64) -> Self
pub fn max_area(self, max_area: f64) -> Self
Fill only loops whose vector area is at most this, in local units squared.
Sourcepub fn allow_unclean(self, allow_unclean: bool) -> Self
pub fn allow_unclean(self, allow_unclean: bool) -> Self
Also fill loops that are not clean.
Sourcepub fn fair(self, fair: bool) -> Self
pub fn fair(self, fair: bool) -> Self
Fair the patch so that it continues the surrounding curvature.
Sourcepub fn dp_limit(self, dp_limit: usize) -> Self
pub fn dp_limit(self, dp_limit: usize) -> Self
Loops with more edges than this are triangulated by projection.
Sourcepub fn max_dihedral(self, max_dihedral: f64) -> Self
pub fn max_dihedral(self, max_dihedral: f64) -> Self
Reject a minimum-weight triangulation past this dihedral, in radians.
Sourcepub fn max_refine_vertices(self, max_refine_vertices: usize) -> Self
pub fn max_refine_vertices(self, max_refine_vertices: usize) -> Self
Stop refining a patch once it has this many new vertices.
Sourcepub fn build(self) -> FillOptions
pub fn build(self) -> FillOptions
The options as set.
Trait Implementations§
Source§impl Clone for FillOptionsBuilder
impl Clone for FillOptionsBuilder
Source§fn clone(&self) -> FillOptionsBuilder
fn clone(&self) -> FillOptionsBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FillOptionsBuilder
impl Debug for FillOptionsBuilder
Source§impl Default for FillOptionsBuilder
impl Default for FillOptionsBuilder
Source§fn default() -> FillOptionsBuilder
fn default() -> FillOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FillOptionsBuilder
impl RefUnwindSafe for FillOptionsBuilder
impl Send for FillOptionsBuilder
impl Sync for FillOptionsBuilder
impl Unpin for FillOptionsBuilder
impl UnsafeUnpin for FillOptionsBuilder
impl UnwindSafe for FillOptionsBuilder
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