summaryrefslogtreecommitdiff
path: root/inc/IntPolyh_Intersection.hxx
blob: 9c5afe2577c5fc124300dc0f9a814af2ec7c198e (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
// 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_Intersection_HeaderFile
#define _IntPolyh_Intersection_HeaderFile

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

#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _IntPolyh_ArrayOfSectionLines_HeaderFile
#include <IntPolyh_ArrayOfSectionLines.hxx>
#endif
#ifndef _IntPolyh_ArrayOfTangentZones_HeaderFile
#include <IntPolyh_ArrayOfTangentZones.hxx>
#endif
#ifndef _Handle_Adaptor3d_HSurface_HeaderFile
#include <Handle_Adaptor3d_HSurface.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _IntPolyh_PMaillageAffinage_HeaderFile
#include <IntPolyh_PMaillageAffinage.hxx>
#endif
class Adaptor3d_HSurface;
class TColStd_Array1OfReal;
class IntPolyh_ArrayOfCouples;



class IntPolyh_Intersection  {
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); 
  }

  //! Constructor <br>
//! <br>
//! <br>
  Standard_EXPORT   IntPolyh_Intersection(const Handle(Adaptor3d_HSurface)& S1,const Handle(Adaptor3d_HSurface)& S2);
  //! NbSU1 ... NbSV2 are used to compute the initial <br>
//!          samples of  the  iso parametric  meshes  on the <br>
//!          surfaces. <br>
  Standard_EXPORT   IntPolyh_Intersection(const Handle(Adaptor3d_HSurface)& S1,const Standard_Integer NbSU1,const Standard_Integer NbSV1,const Handle(Adaptor3d_HSurface)& S2,const Standard_Integer NbSU2,const Standard_Integer NbSV2);
  //! D1,  D2 are used to compute the initial <br>
//!          samples of  the  iso parametric  meshes  on the <br>
//!          surfaces. <br>
  Standard_EXPORT   IntPolyh_Intersection(const Handle(Adaptor3d_HSurface)& S1,const TColStd_Array1OfReal& anUpars1,const TColStd_Array1OfReal& aVpars1,const Handle(Adaptor3d_HSurface)& S2,const TColStd_Array1OfReal& anUpars2,const TColStd_Array1OfReal& aVpars2);
  //! Compute the intersection. <br>
  Standard_EXPORT     void Perform() ;
  //! Compute the intersection. <br>
  Standard_EXPORT     void Perform(const TColStd_Array1OfReal& Upars1,const TColStd_Array1OfReal& Vpars1,const TColStd_Array1OfReal& Upars2,const TColStd_Array1OfReal& Vpars2) ;
  
  Standard_EXPORT     Standard_Boolean IsDone() const;
  
  Standard_EXPORT     Standard_Integer NbSectionLines() const;
  
  Standard_EXPORT     Standard_Integer NbPointsInLine(const Standard_Integer IndexLine) const;
  
  Standard_EXPORT     void GetLinePoint(const Standard_Integer IndexLine,const Standard_Integer IndexPoint,Standard_Real& x,Standard_Real& y,Standard_Real& z,Standard_Real& u1,Standard_Real& v1,Standard_Real& u2,Standard_Real& v2,Standard_Real& incidence) const;
  
  Standard_EXPORT     Standard_Integer NbTangentZones() const;
  
  Standard_EXPORT     Standard_Integer NbPointsInTangentZone(const Standard_Integer IndexLine) const;
  
  Standard_EXPORT     void GetTangentZonePoint(const Standard_Integer IndexLine,const Standard_Integer IndexPoint,Standard_Real& x,Standard_Real& y,Standard_Real& z,Standard_Real& u1,Standard_Real& v1,Standard_Real& u2,Standard_Real& v2) const;





protected:





private:

  //! Computes MaillageAffinage <br>
  Standard_EXPORT     Standard_Boolean PerformMaillage(const Standard_Boolean isFirstFwd,const Standard_Boolean isSecondFwd,IntPolyh_PMaillageAffinage& MaillageS) ;
  //! The method PerformMaillage(..) is used to compute MaillageAffinage. It is <br>
//! called four times (two times for each surface) for creation of inscribed <br>
//! and circumscribed mesh for each surface. <br>
  Standard_EXPORT     Standard_Boolean PerformMaillage(IntPolyh_PMaillageAffinage& MaillageS) ;
  //! Computes MaillageAffinage <br>
  Standard_EXPORT     Standard_Boolean PerformMaillage(const Standard_Boolean isFirstFwd,const Standard_Boolean isSecondFwd,const TColStd_Array1OfReal& Upars1,const TColStd_Array1OfReal& Vpars1,const TColStd_Array1OfReal& Upars2,const TColStd_Array1OfReal& Vpars2,IntPolyh_PMaillageAffinage& MaillageS) ;
  //! The method PerformMaillage(..) is used to compute MaillageAffinage. It is <br>
//! called four times (two times for each surface) for creation of inscribed <br>
//! and circumscribed mesh for each surface. <br>
  Standard_EXPORT     Standard_Boolean PerformMaillage(const TColStd_Array1OfReal& Upars1,const TColStd_Array1OfReal& Vpars1,const TColStd_Array1OfReal& Upars2,const TColStd_Array1OfReal& Vpars2,IntPolyh_PMaillageAffinage& MaillageS) ;
  //! This method analyzes arrays to find same couples. If some <br>
//!          are detected it leaves the couple in only one array <br>
//!          deleting from others. <br>
  Standard_EXPORT     void MergeCouples(IntPolyh_ArrayOfCouples& anArrayFF,IntPolyh_ArrayOfCouples& anArrayFR,IntPolyh_ArrayOfCouples& anArrayRF,IntPolyh_ArrayOfCouples& anArrayRR) const;
  //! Process default interference <br>
  Standard_EXPORT     Standard_Boolean PerformStd(IntPolyh_PMaillageAffinage& MaillageS,Standard_Integer& NbCouples) ;
  //! Process advanced interference <br>
  Standard_EXPORT     Standard_Boolean PerformAdv(IntPolyh_PMaillageAffinage& MaillageFF,IntPolyh_PMaillageAffinage& MaillageFR,IntPolyh_PMaillageAffinage& MaillageRF,IntPolyh_PMaillageAffinage& MaillageRR,Standard_Integer& NbCouples) ;
  //! Process default interference <br>
  Standard_EXPORT     Standard_Boolean PerformStd(const TColStd_Array1OfReal& Upars1,const TColStd_Array1OfReal& Vpars1,const TColStd_Array1OfReal& Upars2,const TColStd_Array1OfReal& Vpars2,IntPolyh_PMaillageAffinage& MaillageS,Standard_Integer& NbCouples) ;
  //! Process advanced interference <br>
  Standard_EXPORT     Standard_Boolean PerformAdv(const TColStd_Array1OfReal& Upars1,const TColStd_Array1OfReal& Vpars1,const TColStd_Array1OfReal& Upars2,const TColStd_Array1OfReal& Vpars2,IntPolyh_PMaillageAffinage& MaillageFF,IntPolyh_PMaillageAffinage& MaillageFR,IntPolyh_PMaillageAffinage& MaillageRF,IntPolyh_PMaillageAffinage& MaillageRR,Standard_Integer& NbCouples) ;


Standard_Boolean done;
Standard_Integer nbsectionlines;
Standard_Integer nbtangentzones;
IntPolyh_ArrayOfSectionLines TSectionLines;
IntPolyh_ArrayOfTangentZones TTangentZones;
Standard_Integer myNbSU1;
Standard_Integer myNbSV1;
Standard_Integer myNbSU2;
Standard_Integer myNbSV2;
Handle_Adaptor3d_HSurface mySurf1;
Handle_Adaptor3d_HSurface mySurf2;


};





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


#endif