pub struct SketchSolverSettings {
pub tolerance: Option<f64>,
pub iterations: Option<u32>,
pub distance_slide_threshold_ratio: Option<f64>,
pub distance_slide_step_ratio: Option<f64>,
pub distance_slide_min_step: Option<f64>,
}Expand description
User-tunable 2D solver knobs (the “Solver Settings” section), all optional
— None keeps the kernel’s default. Held on the super::SketchSession and
read by every resolve, so a change re-solves with the new settings without
threading params through each edit path.
Fields§
§tolerance: Option<f64>Convergence tolerance (kernel default when None).
iterations: Option<u32>Max solver iterations (defaults to 1000 when None).
distance_slide_threshold_ratio: Option<f64>Distance-slide threshold ratio (kernel default when None).
distance_slide_step_ratio: Option<f64>Distance-slide step ratio (kernel default when None).
distance_slide_min_step: Option<f64>Distance-slide minimum step (kernel default when None).
Trait Implementations§
Source§impl Clone for SketchSolverSettings
impl Clone for SketchSolverSettings
Source§fn clone(&self) -> SketchSolverSettings
fn clone(&self) -> SketchSolverSettings
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 SketchSolverSettings
impl Debug for SketchSolverSettings
Source§impl Default for SketchSolverSettings
impl Default for SketchSolverSettings
Source§impl PartialEq for SketchSolverSettings
impl PartialEq for SketchSolverSettings
impl StructuralPartialEq for SketchSolverSettings
Auto Trait Implementations§
impl Freeze for SketchSolverSettings
impl RefUnwindSafe for SketchSolverSettings
impl Send for SketchSolverSettings
impl Sync for SketchSolverSettings
impl Unpin for SketchSolverSettings
impl UnsafeUnpin for SketchSolverSettings
impl UnwindSafe for SketchSolverSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more