]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2092: Middle constraint not removed when creating a fillet
authordbv <dbv@opencascade.com>
Tue, 4 Apr 2017 14:35:02 +0000 (17:35 +0300)
committerdbv <dbv@opencascade.com>
Tue, 4 Apr 2017 14:35:02 +0000 (17:35 +0300)
Now middle constraint removed when creating fillet.

src/SketchPlugin/SketchPlugin_Fillet.cpp

index 2a9acd4b1e7e26af080be5eca8b9c84bafaa93ac..ad923c5844e01554550a45c39c2931328eeecd11 100644 (file)
@@ -13,6 +13,7 @@
 #include "SketchPlugin_ConstraintEqual.h"
 #include "SketchPlugin_ConstraintCoincidence.h"
 #include "SketchPlugin_ConstraintLength.h"
+#include "SketchPlugin_ConstraintMiddle.h"
 #include "SketchPlugin_ConstraintTangent.h"
 #include "SketchPlugin_ConstraintRadius.h"
 #include "SketchPlugin_Tools.h"
@@ -521,7 +522,8 @@ std::set<FeaturePtr> findFeaturesToRemove(const FeaturePtr theFeature,
       continue;
     }
     if(aFeature->getKind() == SketchPlugin_ConstraintLength::ID()
-        || aFeature->getKind() == SketchPlugin_ConstraintEqual::ID()) {
+        || aFeature->getKind() == SketchPlugin_ConstraintEqual::ID()
+        || aFeature->getKind() == SketchPlugin_ConstraintMiddle::ID()) {
       aFeaturesToBeRemoved.insert(aFeature);
     } else {
       std::list<AttributePtr> anAttrs =