summaryrefslogtreecommitdiff
path: root/inc/IntPolyh_Triangle.hxx
blob: a54a8053fd59d9551d5b6ec7092f7fb47b399e57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _IntPolyh_Triangle_HeaderFile
#define _IntPolyh_Triangle_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_Adaptor3d_HSurface_HeaderFile
#include <Handle_Adaptor3d_HSurface.hxx>
#endif
class Adaptor3d_HSurface;
class IntPolyh_ArrayOfPoints;
class IntPolyh_ArrayOfTriangles;
class IntPolyh_ArrayOfEdges;
class Bnd_Box;
class IntPolyh_StartPoint;
class IntPolyh_ArrayOfCouples;



class IntPolyh_Triangle  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  
  Standard_EXPORT   IntPolyh_Triangle();
  
  Standard_EXPORT   IntPolyh_Triangle(const Standard_Integer i1,const Standard_Integer i2,const Standard_Integer i3);
  
  Standard_EXPORT     Standard_Integer FirstPoint() const;
  
  Standard_EXPORT     Standard_Integer SecondPoint() const;
  
  Standard_EXPORT     Standard_Integer ThirdPoint() const;
  
  Standard_EXPORT     Standard_Integer FirstEdge() const;
  
  Standard_EXPORT     Standard_Integer FirstEdgeOrientation() const;
  
  Standard_EXPORT     Standard_Integer SecondEdge() const;
  
  Standard_EXPORT     Standard_Integer SecondEdgeOrientation() const;
  
  Standard_EXPORT     Standard_Integer ThirdEdge() const;
  
  Standard_EXPORT     Standard_Integer ThirdEdgeOrientation() const;
  
  Standard_EXPORT     Standard_Real GetFleche() const;
  
  Standard_EXPORT     Standard_Integer IndiceIntersectionPossible() const;
  
  Standard_EXPORT     Standard_Integer IndiceIntersection() const;
  
  Standard_EXPORT     void SetFirstPoint(const Standard_Integer v) ;
  
  Standard_EXPORT     void SetSecondPoint(const Standard_Integer v) ;
  
  Standard_EXPORT     void SetThirdPoint(const Standard_Integer v) ;
  
  Standard_EXPORT     void SetFirstEdge(const Standard_Integer v,const Standard_Integer s) ;
  
  Standard_EXPORT     void SetSecondEdge(const Standard_Integer v,const Standard_Integer s) ;
  
  Standard_EXPORT     void SetThirdEdge(const Standard_Integer v,const Standard_Integer s) ;
  
  Standard_EXPORT     void SetFleche(const Standard_Real v) ;
  
  Standard_EXPORT     void SetIndiceIntersectionPossible(const Standard_Integer v) ;
  
  Standard_EXPORT     void SetIndiceIntersection(const Standard_Integer v) ;
  
  Standard_EXPORT     Standard_Integer GetEdgeNumber(const Standard_Integer v) const;
  
  Standard_EXPORT     void SetEdge(const Standard_Integer v,const Standard_Integer en) ;
  
  Standard_EXPORT     Standard_Integer GetEdgeOrientation(const Standard_Integer v) const;
  
  Standard_EXPORT     void SetEdgeOrientation(const Standard_Integer v,const Standard_Integer oe) ;
  
  Standard_EXPORT     void TriangleDeflection(const Handle(Adaptor3d_HSurface)& MaSurface,const IntPolyh_ArrayOfPoints& TP) ;
  
  Standard_EXPORT     Standard_Integer CheckCommonEdge(const Standard_Integer PE1,const Standard_Integer PE2,const Standard_Integer P3,const Standard_Integer Index,const IntPolyh_ArrayOfTriangles& TTriangles) const;
  
  Standard_EXPORT     Standard_Integer GetNextTriangle2(const Standard_Integer NumTri,const Standard_Integer NumEdge,const IntPolyh_ArrayOfEdges& TEdges) const;
  
  Standard_EXPORT     void MiddleRefinement(const Standard_Integer TriangleNumber,const Handle(Adaptor3d_HSurface)& MySurface,IntPolyh_ArrayOfPoints& TPoints,IntPolyh_ArrayOfTriangles& TTriangles,IntPolyh_ArrayOfEdges& TEdges) ;
  
  Standard_EXPORT     void MultipleMiddleRefinement(const Standard_Integer NombreAffinages,const Standard_Integer TriangleNumber,const Handle(Adaptor3d_HSurface)& MySurface,IntPolyh_ArrayOfPoints& TPoints,IntPolyh_ArrayOfTriangles& TTriangles,IntPolyh_ArrayOfEdges& TEdges) ;
  
  Standard_EXPORT     Standard_Integer CompareBoxTriangle(const Bnd_Box& b,const IntPolyh_ArrayOfPoints& TPoints) const;
  
  Standard_EXPORT     void MultipleMiddleRefinement2(const Standard_Real RefineCriterion,const Bnd_Box& thebox,const Standard_Integer TriangleNumber,const Handle(Adaptor3d_HSurface)& MySurface,IntPolyh_ArrayOfPoints& TPoints,IntPolyh_ArrayOfTriangles& TTriangles,IntPolyh_ArrayOfEdges& TEdges) ;
  
  Standard_EXPORT     Standard_Integer GetNextChainTriangle(const IntPolyh_StartPoint& SPIni,const Standard_Integer LastTTC,IntPolyh_ArrayOfCouples& TriContactsArray,const IntPolyh_ArrayOfTriangles& TTriangles1,const IntPolyh_ArrayOfTriangles& TTriangles2,Standard_Integer& NumContact,Standard_Integer& NextTriangle) const;
  
  Standard_EXPORT     void LinkEdges2Triangle(const IntPolyh_ArrayOfEdges& TEdges,const Standard_Integer ed1,const Standard_Integer ed2,const Standard_Integer ed3) ;
  
  Standard_EXPORT     void SetEdgeandOrientation(const Standard_Integer Edge,const IntPolyh_ArrayOfEdges& TEdges) ;
  
  Standard_EXPORT     void Dump(const Standard_Integer v) const;
  
  Standard_EXPORT     void DumpFleche(const Standard_Integer v) const;





protected:





private:



Standard_Integer p1;
Standard_Integer p2;
Standard_Integer p3;
Standard_Integer e1;
Standard_Integer oe1;
Standard_Integer e2;
Standard_Integer oe2;
Standard_Integer e3;
Standard_Integer oe3;
Standard_Integer II;
Standard_Integer IP;
Standard_Real Fleche;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif