]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2095: Fillet with mirror produces a problem in solver
authorazv <azv@opencascade.com>
Wed, 5 Apr 2017 05:00:01 +0000 (08:00 +0300)
committerazv <azv@opencascade.com>
Wed, 5 Apr 2017 05:00:01 +0000 (08:00 +0300)
Increased stack depth.

src/SketchSolver/SketchSolver_Group.cpp

index 05840ba95c936f7a36845a5761526b585d8523a2..4782f97050af090cb6a7f2f535f8200901e2f53b 100644 (file)
@@ -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())