#include <BOPAlgo_BOP.hxx>
#include <TopTools_ListOfShape.hxx>
+//=================================================================================================
+GeomAlgoAPI_Boolean::GeomAlgoAPI_Boolean(const GeomShapePtr theObject,
+ const GeomShapePtr theTool,
+ const OperationType theOperationType)
+{
+ ListOfShape aListWithObject, aListWithTool;
+ aListWithObject.push_back(theObject);
+ aListWithTool.push_back(theTool);
+ build(aListWithObject, aListWithTool, theOperationType);
+}
+
+//=================================================================================================
+GeomAlgoAPI_Boolean::GeomAlgoAPI_Boolean(const GeomShapePtr theObject,
+ const ListOfShape& theTools,
+ const OperationType theOperationType)
+{
+ ListOfShape aListWithObject;
+ aListWithObject.push_back(theObject);
+ build(aListWithObject, theTools, theOperationType);
+}
+
//=================================================================================================
GeomAlgoAPI_Boolean::GeomAlgoAPI_Boolean(const ListOfShape& theObjects,
const ListOfShape& theTools,
// Building and getting result.
aBuilder->Perform();
-#ifdef USE_OCCT_720
if (aBuilder->HasErrors())
return;
-#else
- if(aBuilder->ErrorStatus() != 0) {
- return;
- }
-#endif
TopoDS_Shape aResult = aBuilder->Shape();
if(aResult.ShapeType() == TopAbs_COMPOUND) {