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