2 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
4 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7 // This library is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU Lesser General Public
9 // License as published by the Free Software Foundation; either
10 // version 2.1 of the License.
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // Lesser General Public License for more details.
17 // You should have received a copy of the GNU Lesser General Public
18 // License along with this library; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 // File: GEOMAlgo_BuilderFace.hxx
26 // Author: Peter KURNEV
28 #ifndef _GEOMAlgo_BuilderFace_HeaderFile
29 #define _GEOMAlgo_BuilderFace_HeaderFile
31 #include <Standard.hxx>
32 #include <Standard_Macro.hxx>
33 #include <TopoDS_Face.hxx>
34 #include <GEOMAlgo_BuilderArea.hxx>
36 //! The algorithm to build faces from set of edges <br>
37 //=======================================================================
38 //class : GEOMAlgo_BuilderFace
40 //=======================================================================
41 class GEOMAlgo_BuilderFace : public GEOMAlgo_BuilderArea
45 //! Empty constructor <br>
47 GEOMAlgo_BuilderFace();
50 virtual ~GEOMAlgo_BuilderFace();
52 //! Sets the face generatix <br>
54 void SetFace(const TopoDS_Face& theFace) ;
56 //! Returns the face generatix <br>
58 const TopoDS_Face& Face() const;
60 //! Performs the algorithm <br>
62 virtual void Perform() ;
65 //! Collect the edges that <br>
66 //! a) are internal <br>
67 //! b) are the same and have different orientation <br>
69 virtual void PerformShapesToAvoid() ;
71 //! Build draft wires <br>
72 //! a)myLoops - draft wires that consist of <br>
73 //! boundary edges <br>
74 //! b)myLoopsInternal - draft wires that contains <br>
77 virtual void PerformLoops() ;
79 //! Build draft faces that contains boundary edges <br>
81 virtual void PerformAreas() ;
83 //! Build finalized faces with internals <br>
85 virtual void PerformInternalShapes() ;