-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2021 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <GeomAlgoAPI.h>
#include <GeomAlgoAPI_MakeShape.h>
+#include <GeomAlgoAPI_Tools.h>
#include <GeomAPI_Shape.h>
/// \brief Allows to perform of boolean operations
class GeomAlgoAPI_Boolean : public GeomAlgoAPI_MakeShape
{
-public:
- /// Type of booelan operation
- enum OperationType {
- BOOL_CUT, ///< Cut objects
- BOOL_FUSE, ///< Fuse objects
- BOOL_COMMON ///< Take common part of objects
- };
-
public:
/// Constructor.
GEOMALGOAPI_EXPORT GeomAlgoAPI_Boolean(const GeomShapePtr theObject,
const GeomShapePtr theTool,
- const OperationType theOperationType);
+ const GeomAlgoAPI_Tools::BOPType theOperationType);
/// Constructor.
GEOMALGOAPI_EXPORT GeomAlgoAPI_Boolean(const GeomShapePtr theObject,
const ListOfShape& theTools,
- const OperationType theOperationType);
+ const GeomAlgoAPI_Tools::BOPType theOperationType);
/// Constructor.
GEOMALGOAPI_EXPORT GeomAlgoAPI_Boolean(const ListOfShape& theObjects,
const ListOfShape& theTools,
- const OperationType theOperationType);
+ const GeomAlgoAPI_Tools::BOPType theOperationType);
/// Redefinition of the generic method for the Fuse problem: OCCT 30481
GEOMALGOAPI_EXPORT virtual void modified(const GeomShapePtr theOldShape,
- ListOfShape& theNewShapes);
+ ListOfShape& theNewShapes);
private:
/// Builds resulting shape.
void build(const ListOfShape& theObjects,
const ListOfShape& theTools,
- const OperationType theOperationType);
+ const GeomAlgoAPI_Tools::BOPType theOperationType);
};
#endif