class GeomAlgoAPI_Boolean : public GeomAPI_Interface
{
public:
+ /// Type of booelan operation
enum OperationType{
- BOOL_CUT,
- BOOL_FUSE,
- BOOL_COMMON
+ BOOL_CUT, ///< Cut objects
+ BOOL_FUSE, ///< Fuse objects
+ BOOL_COMMON ///< Take common part of objects
};
public:
- /** \brief Creates cut boolean operation.
- * \param[in] theObjects the main shape.
- * \param[in] theTools toole shape for boolean.
- * \return a solid or compound of solids as result of operation.
- */
- GEOMALGOAPI_EXPORT static std::shared_ptr<GeomAPI_Shape> makeCut(const ListOfShape& theObjects,
- const ListOfShape& theTools);
-
- /** \brief Creates fuse boolean operation.
- * \param[in] theObjects the main shape.
- * \param[in] theTools second shape.
- * \return a solid as result of operation.
- */
- GEOMALGOAPI_EXPORT static std::shared_ptr<GeomAPI_Shape> makeFuse(const ListOfShape& theObjects,
- const ListOfShape& theTools);
-
- /** \brief Creates common boolean operation.
- * \param[in] theObjects the main shape.
- * \param[in] theTools second shape.
- * \return a solid as result of operation.
- */
- GEOMALGOAPI_EXPORT static std::shared_ptr<GeomAPI_Shape> makeCommon(const ListOfShape& theObjects,
- const ListOfShape& theTools);
/// Constructor.
GEOMALGOAPI_EXPORT GeomAlgoAPI_Boolean(const ListOfShape& theObjects,