bool aResolved = false;
if (myStorage->isNeedToResolve() && !isEmpty()) {
myConstrSolver.setGroupID(myID);
+ myConstrSolver.calculateFailedConstraints(false);
myStorage->initializeSolver(myConstrSolver);
int aResult = SLVS_RESULT_OKAY;
isLastChance = true;
} else
aNbTemp = myStorage->deleteTemporaryConstraint();
+ myConstrSolver.calculateFailedConstraints(true); // something failed => need to find it
myStorage->initializeSolver(myConstrSolver);
}
}
// If the set of constraints is inconsistent,
// the failed field will contain wrong constraints
- myEquationsSystem.calculateFaileds = 1;
+ myEquationsSystem.calculateFaileds = 0;
}
SketchSolver_Solver::~SketchSolver_Solver()
*/
void setDraggedParameters(const Slvs_hParam* theDragged);
+ /** \brief Set or unset the flag which allows to find all failed constraints
+ */
+ void calculateFailedConstraints(bool theSic)
+ { myEquationsSystem.calculateFaileds = theSic ? 1 : 0; }
+
/** \brief Solve the set of equations
* \return identifier whether solution succeeded
*/