From: azv Date: Thu, 23 Jun 2016 05:08:20 +0000 (+0300) Subject: PLaneGCSSolver: Remove the Equal constraints from the list of redundant X-Git-Tag: V_2.4.0~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b0785705e54718464151838db31d7f2a0123a7a0;p=modules%2Fshaper.git PLaneGCSSolver: Remove the Equal constraints from the list of redundant --- diff --git a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.cpp b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.cpp index ff8d15150..aa24b78f2 100644 --- a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.cpp +++ b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.cpp @@ -87,6 +87,8 @@ SketchSolver_SolveStatus PlaneGCSSolver_Solver::solve() if (!aRedundantID.empty()) { std::set::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) {