]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Construction elements are auxiliary entities:
authornds <natalia.donis@opencascade.com>
Thu, 5 Mar 2015 08:35:40 +0000 (11:35 +0300)
committernds <natalia.donis@opencascade.com>
Thu, 5 Mar 2015 08:35:40 +0000 (11:35 +0300)
Preview of a construction element should not be visible outside the sketch

src/SketchPlugin/SketchPlugin_Sketch.cpp

index 624ac16ab6d48455065bc0c226959764e7b0483a..f243c86c77aa0da8ca83cdd4beb837b5b2afb54f 100644 (file)
@@ -87,6 +87,11 @@ void SketchPlugin_Sketch::execute()
         if (aFeature->data()->selection(SketchPlugin_Feature::EXTERNAL_ID())->value())
           continue;
       }
+      // do not include the construction entities in the result
+      if (aFeature->data()->attribute(SketchPlugin_Feature::CONSTRUCTION_ID())) {
+        if (aFeature->data()->boolean(SketchPlugin_Feature::CONSTRUCTION_ID())->value())
+          continue;
+      }
 
       const std::list<std::shared_ptr<ModelAPI_Result> >& aRes = aFeature->results();
       std::list<std::shared_ptr<ModelAPI_Result> >::const_iterator aResIter = aRes.cbegin();