From 63499cd30400b630abaac5772a48df343cb6e803 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 17 Sep 2014 11:07:49 +0400 Subject: [PATCH] Issue #140 fix: Perpendicularity is not applied Forced resolving of a group of constraints was added when new entity appears --- src/SketchSolver/SketchSolver_ConstraintGroup.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.39.2