]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Dump with geometrical selection
authorazv <azv@opencascade.com>
Thu, 23 Aug 2018 05:33:51 +0000 (08:33 +0300)
committerazv <azv@opencascade.com>
Thu, 30 Aug 2018 08:39:25 +0000 (11:39 +0300)
Fix selection of auxiliary sketch entities

src/ModelGeomAlgo/ModelGeomAlgo_Shape.cpp

index b15754742b69c41ee388eb90ed7e34b262fe4b0b..7921c27dfa787d71e4a09896546a8f633f07cdaa 100644 (file)
@@ -244,10 +244,11 @@ namespace ModelGeomAlgo_Shape
       }
     }
 
-    // one more special case: a vertex selected is a sketch point;
-    // it is not included into sketch result; thus, it is necessary
-    // to pass through the sketch sub-features and verify all points
-    if (theSelected.empty() && theShapeType == GeomAPI_Shape::VERTEX && !aResults.empty()) {
+    // one more special case: the selected entity is a separated sketch point
+    // or an auxiliary sketch edge; they are not included into the sketch result;
+    // thus, it is necessary to pass through the sketch sub-features and find selected.
+    if (theSelected.empty() && !aResults.empty() &&
+       (theShapeType == GeomAPI_Shape::VERTEX || theShapeType == GeomAPI_Shape::EDGE)) {
       CompositeFeaturePtr aCF = std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(theFeature);
       std::shared_ptr<GeomAPI_PlanarEdges> aSketchEdges =
           std::dynamic_pointer_cast<GeomAPI_PlanarEdges>(aResults.front()->shape());