summaryrefslogtreecommitdiff
path: root/inc/IntPatch_Line.hxx
blob: 80ac21f8026f6537aceea3980eca1ed6a42fa611 (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
// 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_Line_HeaderFile
#define _IntPatch_Line_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IntPatch_Line_HeaderFile
#include <Handle_IntPatch_Line.hxx>
#endif

#ifndef _IntPatch_IType_HeaderFile
#include <IntPatch_IType.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _IntSurf_TypeTrans_HeaderFile
#include <IntSurf_TypeTrans.hxx>
#endif
#ifndef _IntSurf_Situation_HeaderFile
#include <IntSurf_Situation.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
class Standard_DomainError;
class Standard_OutOfRange;


//! Definition of an intersection line between two <br>
//!          surfaces. <br>
//!          A line may be either geometric : line, circle, ellipse, <br>
//!          parabola, hyperbola, as defined in the class GLine, <br>
//!          or analytic, as defined in the class ALine, or defined <br>
//!          by a set of points (coming from a walking algorithm) as <br>
//!          defined in the class WLine. <br>
class IntPatch_Line : public MMgt_TShared {

public:

  //! To set the values returned by IsUIsoS1,.... <br>
//!          The default values are False. <br>
        void SetValue(const Standard_Boolean Uiso1,const Standard_Boolean Viso1,const Standard_Boolean Uiso2,const Standard_Boolean Viso2) ;
  //! Returns the type of geometry 3d (Line, Circle, Parabola, <br>
//!          Hyperbola, Ellipse, Analytic, Walking, Restriction) <br>
        IntPatch_IType ArcType() const;
  //! Returns TRUE if the intersection is a line of tangency <br>
//!          between the 2 patches. <br>
        Standard_Boolean IsTangent() const;
  //! Returns the type of the transition of the line <br>
//!          for the first surface. The transition is "constant" <br>
//!          along the line. <br>
//!          The transition is IN if the line is oriented in such <br>
//!          a way that the system of vector (N1,N2,T) is right-handed, <br>
//!          where N1 is the normal to the first surface at a point P, <br>
//!                N2 is the normal to the second surface at a point P, <br>
//!                T  is the tangent to the intersection line at P. <br>
//!          If the system of vector is left-handed, the transition <br>
//!          is OUT. <br>
//!          When N1 and N2 are colinear all along the intersection <br>
//!          line, the transition will be <br>
//!           - TOUCH, if it is possible to use the 2nd derivatives <br>
//!             to determine the position of one surafce compared <br>
//!             to the other (see Situation) <br>
//!           - UNDECIDED otherwise. <br>
//! <br>
//!          If one of the transition is TOUCH or UNDECIDED, the other <br>
//!          one has got the same value. <br>
        IntSurf_TypeTrans TransitionOnS1() const;
  //! Returns the type of the transition of the line <br>
//!          for the second surface. The transition is "constant" <br>
//!          along the line. <br>
        IntSurf_TypeTrans TransitionOnS2() const;
  //! Returns the situation (INSIDE/OUTSIDE/UNKNOWN) of <br>
//!          the first patch compared to the second one, when <br>
//!          TransitionOnS1 or TransitionOnS2 returns TOUCH. <br>
//!          Otherwise, an exception is raised. <br>
        IntSurf_Situation SituationS1() const;
  //! Returns the situation (INSIDE/OUTSIDE/UNKNOWN) of <br>
//!          the second patch compared to the first one, when <br>
//!          TransitionOnS1 or TransitionOnS2 returns TOUCH. <br>
//!          Otherwise, an exception is raised. <br>
        IntSurf_Situation SituationS2() const;
  //! Returns TRUE if the intersection is a U isoparametric curve <br>
//!          on the first patch. <br>
        Standard_Boolean IsUIsoOnS1() const;
  //! Returns TRUE if the intersection is a V isoparametric curve <br>
//!          on the first patch. <br>
        Standard_Boolean IsVIsoOnS1() const;
  //! Returns TRUE if the intersection is a U isoparametric curve <br>
//!          on the second patch. <br>
        Standard_Boolean IsUIsoOnS2() const;
  //! Returns TRUE if the intersection is a V isoparametric curve <br>
//!          on the second patch. <br>
        Standard_Boolean IsVIsoOnS2() const;




  DEFINE_STANDARD_RTTI(IntPatch_Line)

protected:

  //! To initialize the fields, when the transitions <br>
//!          are In or Out. <br>
  Standard_EXPORT   IntPatch_Line(const Standard_Boolean Tang,const IntSurf_TypeTrans Trans1,const IntSurf_TypeTrans Trans2);
  //! To initialize the fields, when the transitions <br>
//!          are Touch. <br>
  Standard_EXPORT   IntPatch_Line(const Standard_Boolean Tang,const IntSurf_Situation Situ1,const IntSurf_Situation Situ2);
  //! To initialize the fields, when the transitions <br>
//!          are Undecided. <br>
  Standard_EXPORT   IntPatch_Line(const Standard_Boolean Tang);

IntPatch_IType typ;


private: 


Standard_Boolean tg;
IntSurf_TypeTrans tS1;
IntSurf_TypeTrans tS2;
IntSurf_Situation sit1;
IntSurf_Situation sit2;
Standard_Boolean uS1;
Standard_Boolean vS1;
Standard_Boolean uS2;
Standard_Boolean vS2;


};


#include <IntPatch_Line.lxx>



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


#endif