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