]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #207: remove external edges from the result of the sketch
authormpv <mikhail.ponikarov@opencascade.com>
Thu, 30 Oct 2014 14:42:56 +0000 (17:42 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Thu, 30 Oct 2014 14:42:56 +0000 (17:42 +0300)
src/SketchPlugin/SketchPlugin_Sketch.cpp

index 42b70c4c692a41d008b8ba8524318b711ca03c49..c97018e340ee99c7913f41a644aa214faedffc60 100644 (file)
@@ -69,6 +69,11 @@ void SketchPlugin_Sketch::execute()
   for (; anIt != aLast; anIt++) {
     aFeature = boost::dynamic_pointer_cast<SketchPlugin_Feature>(*anIt);
     if (aFeature) {
+      // do not include the external edges into the result
+      if (aFeature->data()->attribute(SketchPlugin_Feature::EXTERNAL_ID())) {
+        if (aFeature->data()->selection(SketchPlugin_Feature::EXTERNAL_ID())->value())
+          continue;
+      }
 
       const std::list<boost::shared_ptr<ModelAPI_Result> >& aRes = aFeature->results();
       std::list<boost::shared_ptr<ModelAPI_Result> >::const_iterator aResIter = aRes.cbegin();