From: azv Date: Mon, 13 May 2019 11:39:47 +0000 (+0300) Subject: Fix incorrect order of results when processing compsolids X-Git-Tag: VEDF2019Lot4~139^2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eb56e0c63aee03152ae9182499ee94a3215de386;p=modules%2Fshaper.git Fix incorrect order of results when processing compsolids --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp index e39c1f99f..44612077c 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp @@ -575,16 +575,14 @@ void FeaturesPlugin_Boolean::ObjectHierarchy::SplitCompound(const GeomShapePtr& if (aFoundIndex == myParentIndices.end()) return; // no such shape - const ListOfShape& aSubs = mySubshapes[aFoundIndex->second].second; + theUsed = mySubshapes[aFoundIndex->second].second; SetOfShape aSubsSet; - aSubsSet.insert(aSubs.begin(), aSubs.end()); + aSubsSet.insert(theUsed.begin(), theUsed.end()); for (GeomAPI_ShapeIterator anExp(theCompShape); anExp.more(); anExp.next()) { GeomShapePtr aCurrent = anExp.current(); if (aSubsSet.find(aCurrent) == aSubsSet.end()) theNotUsed.push_back(aCurrent); - else - theUsed.push_back(aCurrent); } }