From: azv Date: Thu, 27 Sep 2018 10:36:08 +0000 (+0300) Subject: Issue #2611: Partition of a solid belonging to a Compsolid X-Git-Tag: CEA_2018-2~62^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b83ae00530d9def410adb46075f2b034a839e7c4;p=modules%2Fshaper.git Issue #2611: Partition of a solid belonging to a Compsolid Fix failure in Partition if full compsolid is selected (do not place all its sub-solids to the list of unused shapes) --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp b/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp index 92658389c..3ef472216 100755 --- a/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp @@ -343,6 +343,11 @@ void unusedSubsOfComposolid(const CompsolidSubs& theObjects, CompsolidSubs& theN if (aCSIt->first->shapeType() != GeomAPI_Shape::COMPSOLID) continue; + // check the compsolid is selected + if (aCSIt->second.size() == 1 && aCSIt->first->isEqual(aCSIt->second.front())) + continue; + + // process all sub-solids of compsolid ListOfShape aNotUsedSolids; for (GeomAPI_ShapeExplorer anExp(aCSIt->first, GeomAPI_Shape::SOLID); anExp.more(); anExp.next()) {