]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
PLaneGCSSolver: Remove the Equal constraints from the list of redundant
authorazv <azv@opencascade.com>
Thu, 23 Jun 2016 05:08:20 +0000 (08:08 +0300)
committerazv <azv@opencascade.com>
Thu, 23 Jun 2016 05:12:01 +0000 (08:12 +0300)
src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.cpp

index ff8d151505007369c73cda968a2d676cbf6cfca9..aa24b78f262f2ab30b554135ac3d1feddf5b5bfa 100644 (file)
@@ -87,6 +87,8 @@ SketchSolver_SolveStatus PlaneGCSSolver_Solver::solve()
     if (!aRedundantID.empty()) {
       std::set<GCS::Constraint*>::const_iterator aCIt = myConstraints.begin();
       for (; aCIt != myConstraints.end(); ++aCIt) {
+        if ((*aCIt)->getTypeId() != GCS::Equal)
+          continue;
         GCS::VEC_I::iterator aRIt = aRedundantID.begin();
         for (; aRIt != aRedundantID.end(); ++aRIt)
           if ((*aCIt)->getTag() == *aRIt) {