// Created: 11 June 2015
// Author: Dmitry Bobylev
-#include <FeaturesPlugin_CompositeBoolean.h>
+#include "FeaturesPlugin_CompositeBoolean.h"
#include <ModelAPI_AttributeSelectionList.h>
#include <ModelAPI_AttributeReference.h>
-#include <ModelAPI_BodyBuilder.h>
#include <ModelAPI_ResultBody.h>
#include <ModelAPI_ResultConstruction.h>
#include <ModelAPI_Session.h>
}
GeomAlgoAPI_MakeShapeList aMakeShapeList;
- aMakeShapeList.append(aBoolAlgo.makeShape());
+ aMakeShapeList.appendAlgo(aBoolAlgo.makeShape());
GeomAPI_DataMapOfShapeShape aMapOfShapes;
aMapOfShapes.merge(aBoolAlgo.mapOfShapes());
return;
}
- aMakeShapeList.append(aFillerAlgo.makeShape());
+ aMakeShapeList.appendAlgo(aFillerAlgo.makeShape());
aMapOfShapes.merge(aFillerAlgo.mapOfShapes());
if(GeomAlgoAPI_ShapeTools::volume(aFillerAlgo.shape()) > 1.e-7) {
if(GeomAlgoAPI_ShapeTools::volume(aCutAlgo.shape()) > 1.e-7) {
aSolidsToFuse.push_back(aCutAlgo.shape());
- aMakeShapeList.append(aCutAlgo.makeShape());
+ aMakeShapeList.appendAlgo(aCutAlgo.makeShape());
aMapOfShapes.merge(aCutAlgo.mapOfShapes());
}
}
}
std::shared_ptr<GeomAPI_Shape> aShape = aFuseAlgo.shape();
- aMakeShapeList.append(aFuseAlgo.makeShape());
+ aMakeShapeList.appendAlgo(aFuseAlgo.makeShape());
aMapOfShapes.merge(aFuseAlgo.mapOfShapes());
// Add result to not used solids from compsolid (if we have any).
}
aShape = aFillerAlgo.shape();
- aMakeShapeList.append(aFillerAlgo.makeShape());
+ aMakeShapeList.appendAlgo(aFillerAlgo.makeShape());
aMapOfShapes.merge(aFillerAlgo.mapOfShapes());
}
//Insert lateral face : Face from Edge
if(std::dynamic_pointer_cast<GeomAlgoAPI_Prism>(*aSolidsAlgosIter)) {
std::shared_ptr<GeomAlgoAPI_Prism> aPrismAlgo = std::dynamic_pointer_cast<GeomAlgoAPI_Prism>(*aSolidsAlgosIter);
- aSubShapes = aPrismAlgo->mapOfShapes();
- theResultBody->loadAndOrientGeneratedShapes(aPrismAlgo->makeShape().get(), *aShellsIter, GeomAPI_Shape::EDGE, aGenTag,
+ aSubShapes = aPrismAlgo->mapOfSubShapes();
+ theResultBody->loadAndOrientGeneratedShapes(aPrismAlgo.get(), *aShellsIter, GeomAPI_Shape::EDGE, aGenTag,
aLatName, *aSubShapes.get());
aFromFaces = aPrismAlgo->fromFaces();