//if (myEquationsSystem.constraints <= 0)
// return STATUS_EMPTYSET;
- myEquationsSystem.calculateFaileds = myFindFaileds ? 1 : 0;
+ myEquationsSystem.calculateFaileds = 0;
+ if (myFindFaileds) {
+ myEquationsSystem.calculateFaileds = 1;
+ myEquationsSystem.faileds = myEquationsSystem.constraints;
+ }
Events_LongOp::start(this);
Slvs_Solve(&myEquationsSystem, myGroup);
}
return false;
}
+
+bool SolveSpaceSolver_Solver::isConflicting(const ConstraintID& theConstraint) const
+{
+ for (int i = 0; i < myEquationsSystem.faileds; ++i)
+ if (myEquationsSystem.failed[i] == (Slvs_hConstraint)theConstraint)
+ return true;
+ return false;
+}