1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomAlgoAPI_Partition.h
4 // Created: 21 Aug 2015
5 // Author: Sergey POKHODENKO
7 #ifndef GeomAlgoAPI_Partition_H_
8 #define GeomAlgoAPI_Partition_H_
10 #include <GeomAlgoAPI.h>
11 #include <GeomAlgoAPI_MakeShape.h>
13 #include <GeomAPI_Shape.h>
15 /// \class GeomAlgoAPI_Partition
17 /// \brief Allows to perform of partition operations
18 class GeomAlgoAPI_Partition : public GeomAlgoAPI_MakeShape
21 /// \brief Creates common partition operation.
22 /// \param[in] theObjects the main shape.
23 /// \param[in] theTools second shape.
24 /// \return a solid as result of operation.
25 GEOMALGOAPI_EXPORT static std::shared_ptr<GeomAPI_Shape> make(const ListOfShape& theObjects,
26 const ListOfShape& theTools);
29 GEOMALGOAPI_EXPORT GeomAlgoAPI_Partition(const ListOfShape& theObjects,
30 const ListOfShape& theTools);
33 /// Builds resulting shape.
34 void build(const ListOfShape& theObjects,
35 const ListOfShape& theTools);