Salome HOME
935a7c169bc2243179bbc906d28efdd54c2f2bff
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_BuilderSolid.hxx
1 // Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 // File:        GEOMAlgo_BuilderSolid.hxx
24 // Created:
25 // Author:      Peter KURNEV
26 //
27 #ifndef _GEOMAlgo_BuilderSolid_HeaderFile
28 #define _GEOMAlgo_BuilderSolid_HeaderFile
29
30 #include <Standard.hxx>
31 #include <Standard_Macro.hxx>
32 #include <GEOMAlgo_BuilderArea.hxx>
33
34 //! The algorithm to build solids from set of faces <br>
35 //=======================================================================
36 //function : GEOMAlgo_BuilderSolid
37 //purpose  :
38 //=======================================================================
39 class GEOMAlgo_BuilderSolid  : public GEOMAlgo_BuilderArea
40 {
41  public:
42   //!  Empty  constructor <br>
43   Standard_EXPORT
44     GEOMAlgo_BuilderSolid();
45
46   Standard_EXPORT
47     virtual ~GEOMAlgo_BuilderSolid();
48
49   //!  Performs the algorithm <br>
50   Standard_EXPORT
51     virtual  void Perform() ;
52
53  protected:
54   //!  Collect the faces that <br>
55   //!           a) are internal <br>
56   //!           b) are the same and have different orientation <br>
57   Standard_EXPORT
58     virtual  void PerformShapesToAvoid() ;
59
60   //! Build draft shells <br>
61   //!          a)myLoops - draft shells that consist of <br>
62   //!                       boundary faces <br>
63   //!          b)myLoopsInternal - draft shells that contains <br>
64   //!                               inner faces <br>
65   Standard_EXPORT
66     virtual  void PerformLoops() ;
67
68   //! Build draft solids that contains boundary faces <br>
69   Standard_EXPORT
70     virtual  void PerformAreas() ;
71
72   //! Build finalized solids with internal shells <br>
73   Standard_EXPORT
74     virtual  void PerformInternalShapes() ;
75
76 };
77 #endif