From 8002ca340f75d9423db82a1137ac8a0fde674841 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 30 Oct 2014 17:42:56 +0300 Subject: [PATCH] Issue #207: remove external edges from the result of the sketch --- src/SketchPlugin/SketchPlugin_Sketch.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SketchPlugin/SketchPlugin_Sketch.cpp b/src/SketchPlugin/SketchPlugin_Sketch.cpp index 42b70c4c6..c97018e34 100644 --- a/src/SketchPlugin/SketchPlugin_Sketch.cpp +++ b/src/SketchPlugin/SketchPlugin_Sketch.cpp @@ -69,6 +69,11 @@ void SketchPlugin_Sketch::execute() for (; anIt != aLast; anIt++) { aFeature = boost::dynamic_pointer_cast(*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 >& aRes = aFeature->results(); std::list >::const_iterator aResIter = aRes.cbegin(); -- 2.39.2