]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Additional check redundant constraints in PlaneGCS to show the "Conflicting constrain...
authorazv <azv@opencascade.com>
Tue, 7 Jun 2016 05:29:53 +0000 (08:29 +0300)
committerazv <azv@opencascade.com>
Tue, 7 Jun 2016 05:47:26 +0000 (08:47 +0300)
src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.cpp

index b7c7591af49253f8eab8625d2460f99bdc2c76b5..9aa18c59211b69bdfe0414f548a6eaf3dc9d18ef 100644 (file)
@@ -72,6 +72,13 @@ SketchSolver_SolveStatus PlaneGCSSolver_Solver::solve()
   // solve equations
   if (aResult == GCS::Success)
     aResult = (GCS::SolveStatus)myEquationSystem.solve(myParameters);
+  if (aResult == GCS::Success) {
+    // additionally check redundant constraints
+    GCS::VEC_I aRedundantID;
+    myEquationSystem.getRedundant(aRedundantID);
+    if (!aRedundantID.empty())
+      aResult = GCS::Failed;
+  }
   Events_LongOp::end(this);
 
   SketchSolver_SolveStatus aStatus;