Salome HOME
ed4a41509e4c56eccafe6632b4f400c90a981ad0
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_PaveFiller.h
1 // Copyright (C) 2014-2021  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef GeomAlgoAPI_PaveFiller_H_
21 #define GeomAlgoAPI_PaveFiller_H_
22
23 #include <GeomAlgoAPI.h>
24 #include <GeomAlgoAPI_MakeShape.h>
25
26 #include <GeomAPI_Shape.h>
27
28 /// \class GeomAlgoAPI_PaveFiller
29 /// \ingroup DataAlgo
30 /// \brief Finds the common parts from the list of shapes and
31 ///  breaks it to shapes with shared subshapes.
32 class GeomAlgoAPI_PaveFiller : public GeomAlgoAPI_MakeShape
33 {
34 public:
35   /// \brief Constructor.
36   /// \param[in] theListOfShape list of shape which should be splitted.
37   /// \param[in] theIsMakeCompSolids if true gather shapes with shared faces to compsolids.
38   GEOMALGOAPI_EXPORT GeomAlgoAPI_PaveFiller(const ListOfShape& theListOfShape,
39                                             const bool theIsMakeCompSolids = false);
40
41 private:
42   /// Builds resulting shape.
43   void build(const ListOfShape& theListOfShape, const bool theIsMakeCompSolids);
44 };
45
46 #endif