pub struct TopologySimplifyOptions {
pub tolerance: f64,
pub max_retries: usize,
pub retry_factor: f64,
}Expand description
Options for topology-preserving simplification.
Fields§
§tolerance: f64Douglas-Peucker tolerance.
max_retries: usizeMaximum retry attempts when self-intersection is detected.
retry_factor: f64Tolerance reduction factor per retry (applied to non-shared chains).
Implementations§
Source§impl TopologySimplifyOptions
impl TopologySimplifyOptions
Sourcepub fn with_tolerance(tolerance: f64) -> Self
pub fn with_tolerance(tolerance: f64) -> Self
Create options with only a tolerance, using defaults for the rest.
Trait Implementations§
Source§impl Clone for TopologySimplifyOptions
impl Clone for TopologySimplifyOptions
Source§fn clone(&self) -> TopologySimplifyOptions
fn clone(&self) -> TopologySimplifyOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 TopologySimplifyOptions
impl Debug for TopologySimplifyOptions
Auto Trait Implementations§
impl Freeze for TopologySimplifyOptions
impl RefUnwindSafe for TopologySimplifyOptions
impl Send for TopologySimplifyOptions
impl Sync for TopologySimplifyOptions
impl Unpin for TopologySimplifyOptions
impl UnsafeUnpin for TopologySimplifyOptions
impl UnwindSafe for TopologySimplifyOptions
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