From: azv Date: Thu, 23 Aug 2018 05:33:51 +0000 (+0300) Subject: Dump with geometrical selection X-Git-Tag: V9_2_0a1~83 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=12aad8f6bb1934ac720be53196b4da54aec00ee8;p=modules%2Fshaper.git Dump with geometrical selection Fix selection of auxiliary sketch entities --- diff --git a/src/ModelGeomAlgo/ModelGeomAlgo_Shape.cpp b/src/ModelGeomAlgo/ModelGeomAlgo_Shape.cpp index b15754742..7921c27df 100644 --- a/src/ModelGeomAlgo/ModelGeomAlgo_Shape.cpp +++ b/src/ModelGeomAlgo/ModelGeomAlgo_Shape.cpp @@ -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(theFeature); std::shared_ptr aSketchEdges = std::dynamic_pointer_cast(aResults.front()->shape());