]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Bug #1101: groups work wrong
authordbv <dbv@opencascade.com>
Thu, 17 Dec 2015 12:55:50 +0000 (15:55 +0300)
committerdbv <dbv@opencascade.com>
Thu, 17 Dec 2015 12:56:03 +0000 (15:56 +0300)
src/FeaturesPlugin/FeaturesPlugin_Partition.cpp

index 2a584910c218521ee7350e879b2a02d8122ec9ca..5b0591708e4b79e2d278b5df21798f4ab52a6641 100755 (executable)
@@ -17,6 +17,7 @@
 #include <ModelAPI_Session.h>
 #include <ModelAPI_Validator.h>
 
+#include <GeomAlgoAPI_CompoundBuilder.h>
 #include <GeomAlgoAPI_Partition.h>
 #include <GeomAlgoAPI_MakeShapeCustom.h>
 #include <GeomAlgoAPI_MakeShapeList.h>
@@ -115,6 +116,9 @@ void FeaturesPlugin_Partition::execute()
 
   if(isCombine) {
     // Create single result.
+    std::shared_ptr<GeomAPI_Shape> aCompoud = GeomAlgoAPI_CompoundBuilder::compound(anObjects);
+    anObjects.clear();
+    anObjects.push_back(aCompoud);
     GeomAlgoAPI_Partition aPartitionAlgo(anObjects, aTools);
 
     // Checking that the algorithm worked properly.