From: azv Date: Wed, 17 Sep 2014 07:07:49 +0000 (+0400) Subject: Issue #140 fix: Perpendicularity is not applied X-Git-Tag: V_0.4.4~48^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=63499cd30400b630abaac5772a48df343cb6e803;p=modules%2Fshaper.git Issue #140 fix: Perpendicularity is not applied Forced resolving of a group of constraints was added when new entity appears --- diff --git a/src/SketchSolver/SketchSolver_ConstraintGroup.cpp b/src/SketchSolver/SketchSolver_ConstraintGroup.cpp index 5870e9186..53a16851c 100644 --- a/src/SketchSolver/SketchSolver_ConstraintGroup.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintGroup.cpp @@ -418,6 +418,7 @@ Slvs_hEntity SketchSolver_ConstraintGroup::changeEntity(FeaturePtr theEntity) aEnd); myEntities.push_back(aLineEntity); myEntityFeatMap[theEntity] = aLineEntity.h; + myNeedToSolve = true; return aLineEntity.h; } // Circle @@ -435,6 +436,7 @@ Slvs_hEntity SketchSolver_ConstraintGroup::changeEntity(FeaturePtr theEntity) myWorkplane.normal, aRadius); myEntities.push_back(aCircleEntity); myEntityFeatMap[theEntity] = aCircleEntity.h; + myNeedToSolve = true; return aCircleEntity.h; } // Arc @@ -451,6 +453,7 @@ Slvs_hEntity SketchSolver_ConstraintGroup::changeEntity(FeaturePtr theEntity) myWorkplane.normal, aCenter, aStart, aEnd); myEntities.push_back(anArcEntity); myEntityFeatMap[theEntity] = anArcEntity.h; + myNeedToSolve = true; return anArcEntity.h; } // Point (it has low probability to be an attribute of constraint, so it is checked at the end) @@ -463,6 +466,7 @@ Slvs_hEntity SketchSolver_ConstraintGroup::changeEntity(FeaturePtr theEntity) // Both the sketch point and its attribute (coordinates) link to the same SolveSpace point identifier myEntityFeatMap[theEntity] = aPoint; + myNeedToSolve = true; return aPoint; } }