pub struct SolveReport {
pub converged: bool,
pub max_residual: f64,
pub iterations: usize,
pub dof: usize,
pub free_points: BTreeMap<PointId, bool>,
pub free_curves: BTreeMap<CurveId, bool>,
pub failed_constraints: Vec<ConstraintId>,
}Expand description
The outcome of a solve.
Fields§
§converged: boolEvery constraint holds (to [RELATIVE_TOLERANCE] of the sketch size).
max_residual: f64Largest remaining constraint residual, in sketch units.
iterations: usize§dof: usizeRemaining degrees of freedom: variables minus independent constraints.
free_points: BTreeMap<PointId, bool>Per point: whether it can still move without violating a constraint.
free_curves: BTreeMap<CurveId, bool>Per curve: whether any of its points or its own sweep/radius can still change.
failed_constraints: Vec<ConstraintId>The constraints left unsatisfied (conflicting or unreachable), empty
when converged.
Trait Implementations§
Source§impl Clone for SolveReport
impl Clone for SolveReport
Source§fn clone(&self) -> SolveReport
fn clone(&self) -> SolveReport
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 SolveReport
impl Debug for SolveReport
Source§impl PartialEq for SolveReport
impl PartialEq for SolveReport
Source§fn eq(&self, other: &SolveReport) -> bool
fn eq(&self, other: &SolveReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SolveReport
impl Serialize for SolveReport
impl StructuralPartialEq for SolveReport
Auto Trait Implementations§
impl Freeze for SolveReport
impl RefUnwindSafe for SolveReport
impl Send for SolveReport
impl Sync for SolveReport
impl Unpin for SolveReport
impl UnsafeUnpin for SolveReport
impl UnwindSafe for SolveReport
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