Salome HOME
5942fcf141c37ae0dc9b7664a1d223e9c621bcd3
[modules/geom.git] / src / PARTITION / Partition_Inter2d.hxx
1 //  Copyright (C) 2007-2008  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 //  GEOM PARTITION : partition algorithm
23 //  File   : Partition_Inter2d.hxx
24 //  Module : GEOM
25 //
26 #ifndef _Partition_Inter2d_HeaderFile
27 #define _Partition_Inter2d_HeaderFile
28
29 #ifndef _Handle_BRepAlgo_AsDes_HeaderFile
30 #include <Handle_BRepAlgo_AsDes.hxx>
31 #endif
32 #ifndef _Standard_Real_HeaderFile
33 #include <Standard_Real.hxx>
34 #endif
35 #ifndef _Standard_Boolean_HeaderFile
36 #include <Standard_Boolean.hxx>
37 #endif
38 class BRepAlgo_AsDes;
39 class TopoDS_Face;
40 class TopTools_MapOfShape;
41 class TopoDS_Vertex;
42 class TopTools_ListOfShape;
43 class TopoDS_Edge;
44
45
46 #ifndef _Standard_HeaderFile
47 #include <Standard.hxx>
48 #endif
49 #ifndef _Standard_Macro_HeaderFile
50 #include <Standard_Macro.hxx>
51 #endif
52
53 class Partition_Inter2d  {
54
55 public:
56
57     void* operator new(size_t,void* anAddress) 
58       {
59         return anAddress;
60       }
61     void* operator new(size_t size) 
62       { 
63         return Standard::Allocate(size); 
64       }
65     void  operator delete(void *anAddress) 
66       { 
67         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
68       }
69  // Methods PUBLIC
70  // 
71 Standard_EXPORT static  void CompletPart2d(const Handle(BRepAlgo_AsDes)& AsDes,const TopoDS_Face& F,const TopTools_MapOfShape& NewEdges) ;
72 Standard_EXPORT static  TopoDS_Vertex FindEndVertex(const TopTools_ListOfShape& VertList,const Standard_Real f,const Standard_Real l,const TopoDS_Edge& E,Standard_Boolean& First,Standard_Real& DU) ;
73 Standard_EXPORT static  TopoDS_Vertex AddVonE(const TopoDS_Vertex& V,const TopoDS_Edge& E1,const TopoDS_Edge& E2,const Handle(BRepAlgo_AsDes)& AsDes,const TopoDS_Face& F) ;
74 Standard_EXPORT static  Standard_Real GetTolerance(const TopoDS_Vertex& theV,const Standard_Real theU,const TopoDS_Edge& theE,const Handle(BRepAlgo_AsDes)& theAsDes) ;
75
76
77
78
79 protected:
80
81  // Methods PROTECTED
82  // 
83
84
85  // Fields PROTECTED
86  //
87
88
89 private: 
90
91  // Methods PRIVATE
92  // 
93
94
95  // Fields PRIVATE
96  //
97
98
99 };
100
101
102
103
104
105 // other Inline functions and methods (like "C++: function call" methods)
106 //
107
108
109 #endif