pub struct ContourOptions {
pub interpolation: ContourInterpolation,
pub value_tolerance: f64,
pub geometry_tolerance: f64,
pub regularization: Option<ContourRegularization>,
}Expand description
Shared options for one super::ContourSet computation.
Fields§
§interpolation: ContourInterpolationLinear or cubic-alpha scalar model.
value_tolerance: f64Finite positive scalar equality tolerance.
geometry_tolerance: f64Finite positive composition-space cleanup tolerance.
regularization: Option<ContourRegularization>Optional regularization after path extraction.
Implementations§
Source§impl ContourOptions
impl ContourOptions
Sourcepub const fn linear() -> ContourOptions
pub const fn linear() -> ContourOptions
Construct the always-available piecewise-linear baseline.
Sourcepub const fn cubic_alpha(options: CubicAlphaOptions) -> ContourOptions
pub const fn cubic_alpha(options: CubicAlphaOptions) -> ContourOptions
Construct cubic-alpha options from one cubic configuration.
Sourcepub const fn regularization(
self,
options: Option<ContourRegularization>,
) -> ContourOptions
pub const fn regularization( self, options: Option<ContourRegularization>, ) -> ContourOptions
Replace the post-extraction regularization policy.
Trait Implementations§
Source§impl Clone for ContourOptions
impl Clone for ContourOptions
Source§fn clone(&self) -> ContourOptions
fn clone(&self) -> ContourOptions
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 moreimpl Copy for ContourOptions
Source§impl Debug for ContourOptions
impl Debug for ContourOptions
Source§impl Default for ContourOptions
impl Default for ContourOptions
Source§fn default() -> ContourOptions
fn default() -> ContourOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for ContourOptions
impl PartialEq for ContourOptions
impl StructuralPartialEq for ContourOptions
Auto Trait Implementations§
impl Freeze for ContourOptions
impl RefUnwindSafe for ContourOptions
impl Send for ContourOptions
impl Sync for ContourOptions
impl Unpin for ContourOptions
impl UnsafeUnpin for ContourOptions
impl UnwindSafe for ContourOptions
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