From: azv Date: Wed, 5 Apr 2017 05:00:01 +0000 (+0300) Subject: Issue #2095: Fillet with mirror produces a problem in solver X-Git-Tag: V_2.7.0~76 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e80ef2f263e1885c2a6e03be6ce3d7cdf20c1486;p=modules%2Fshaper.git Issue #2095: Fillet with mirror produces a problem in solver Increased stack depth. --- diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index 05840ba95..4782f9705 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -144,8 +144,9 @@ bool SketchSolver_Group::moveFeature(FeaturePtr theFeature) // ============================================================================ bool SketchSolver_Group::resolveConstraints() { + static const int MAX_STACK_SIZE = 3; // check the "Multi" constraints do not drop sketch into infinite loop - if (myMultiConstraintUpdateStack > 1) { + if (myMultiConstraintUpdateStack > MAX_STACK_SIZE) { myPrevResult = PlaneGCSSolver_Solver::STATUS_FAILED; // generate error message due to loop update of the sketch getWorkplane()->string(SketchPlugin_Sketch::SOLVER_ERROR())