#include <ModelAPI_Session.h>
#include <ModelAPI_Validator.h>
+#include <GeomAlgoAPI_CompoundBuilder.h>
#include <GeomAlgoAPI_Partition.h>
#include <GeomAlgoAPI_MakeShapeCustom.h>
#include <GeomAlgoAPI_MakeShapeList.h>
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.