summaryrefslogtreecommitdiff
path: root/inc/IntPatch_PolyhedronTool.hxx
blob: 05d9ef7e8cb6037795c76480ba20271f5bf21c6c (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
// 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 _IntPatch_PolyhedronTool_HeaderFile
#define _IntPatch_PolyhedronTool_HeaderFile

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

#ifndef _Handle_Bnd_HArray1OfBox_HeaderFile
#include <Handle_Bnd_HArray1OfBox.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class Standard_OutOfRange;
class Bnd_Box;
class IntPatch_Polyhedron;
class Bnd_HArray1OfBox;
class gp_Pnt;


//! Describe  the signature  of  a  polyedral surface with <br>
//!          only triangular  facets and the necessary informations <br>
//!          to compute the interferences. <br>
class IntPatch_PolyhedronTool  {
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); 
  }

  //! Give the bounding box of the Polyhedron. <br>
      static const Bnd_Box& Bounding(const IntPatch_Polyhedron& thePolyh) ;
  //! Give the array of boxes. The box <n> corresponding <br>
//!          to the triangle <n>. <br>
      static const Handle_Bnd_HArray1OfBox& ComponentsBounding(const IntPatch_Polyhedron& thePolyh) ;
  //! Give the tolerance of the polygon. <br>
      static  Standard_Real DeflectionOverEstimation(const IntPatch_Polyhedron& thePolyh) ;
  //! Give the number of triangles in this polyedral surface. <br>
      static  Standard_Integer NbTriangles(const IntPatch_Polyhedron& thePolyh) ;
  //! Give the indices  of  the 3 points of  the triangle of <br>
//!          address Index in the Polyhedron. <br>
      static  void Triangle(const IntPatch_Polyhedron& thePolyh,const Standard_Integer Index,Standard_Integer& P1,Standard_Integer& P2,Standard_Integer& P3) ;
  //! Give the point of index i in the polyedral surface. <br>
      static const gp_Pnt& Point(const IntPatch_Polyhedron& thePolyh,const Standard_Integer Index) ;
  //! Gives the  addresse Tricon of   the triangle connexe to <br>
//!          the triangle of address Triang by the edge Pivot Pedge <br>
//!          and the third point of this  connexe triangle. When we <br>
//!          are on  a free edge TriCon==0  but the function return <br>
//!          the value of  the triangle in the  other side of Pivot <br>
//!          on the free edge.  Used to turn around a vertex. <br>
      static  Standard_Integer TriConnex(const IntPatch_Polyhedron& thePolyh,const Standard_Integer Triang,const Standard_Integer Pivot,const Standard_Integer Pedge,Standard_Integer& TriCon,Standard_Integer& OtherP) ;





protected:





private:





};


#include <IntPatch_PolyhedronTool.lxx>



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


#endif