1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File: GEOMAlgo_BuilderSolid.hxx
25 // Author: Peter KURNEV
27 #ifndef _GEOMAlgo_BuilderSolid_HeaderFile
28 #define _GEOMAlgo_BuilderSolid_HeaderFile
30 #include <Standard.hxx>
31 #include <Standard_Macro.hxx>
32 #include <GEOMAlgo_BuilderArea.hxx>
34 //! The algorithm to build solids from set of faces <br>
35 //=======================================================================
36 //function : GEOMAlgo_BuilderSolid
38 //=======================================================================
39 class GEOMAlgo_BuilderSolid : public GEOMAlgo_BuilderArea
42 //! Empty constructor <br>
44 GEOMAlgo_BuilderSolid();
47 virtual ~GEOMAlgo_BuilderSolid();
49 //! Performs the algorithm <br>
51 virtual void Perform() ;
54 //! Collect the faces that <br>
55 //! a) are internal <br>
56 //! b) are the same and have different orientation <br>
58 virtual void PerformShapesToAvoid() ;
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>
66 virtual void PerformLoops() ;
68 //! Build draft solids that contains boundary faces <br>
70 virtual void PerformAreas() ;
72 //! Build finalized solids with internal shells <br>
74 virtual void PerformInternalShapes() ;