summaryrefslogtreecommitdiff
path: root/inc/IntPatch_Point.lxx
blob: 66ee28532a1f8c92b0464231176be35902357202 (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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// File:	IntPatch_Point.lxx
// Created:	Wed May  6 14:01:12 1992
// Author:	Jacques GOUSSARD
// Copyright:	OPEN CASCADE 1992


inline IntPatch_Point::IntPatch_Point ()
 : para(0.0),
   tol(0.0),
   tgt(Standard_False),
   mult(Standard_False),
   onS1(Standard_False),
   vtxonS1(Standard_False),
   vS1(NULL),
   arcS1(NULL),
   prm1(0.0),
   onS2(Standard_False),
   vtxonS2(Standard_False),
   vS2(NULL),
   arcS2(NULL),
   prm2(0.0)
{
}


inline void IntPatch_Point::SetValue (const gp_Pnt& Pt)
{
  pt.SetValue(Pt);
}


inline void IntPatch_Point::SetTolerance (const Standard_Real Tol)
{
  tol = Tol;
}


inline void IntPatch_Point::SetParameters (const Standard_Real U1,
                                           const Standard_Real V1,
                                           const Standard_Real U2,
                                           const Standard_Real V2)
{
  pt.SetValue(U1,V1,U2,V2);
}


inline void IntPatch_Point::SetParameter (const Standard_Real Para)
{
  para = Para;
}
 

inline void IntPatch_Point::SetMultiple (const Standard_Boolean IsMult)
{
  mult = IsMult;
}


inline const gp_Pnt& IntPatch_Point::Value () const
{
  return pt.Value();
}


inline Standard_Real IntPatch_Point::Tolerance () const
{
  return tol;
}


inline Standard_Real IntPatch_Point::ParameterOnLine () const
{
  return para;
}


inline Standard_Boolean IntPatch_Point::IsTangencyPoint () const
{
  return tgt;
}


inline void IntPatch_Point::ParametersOnS1 (Standard_Real& U1, Standard_Real& V1) const
{
  pt.ParametersOnS1(U1,V1);
}


inline void IntPatch_Point::ParametersOnS2 (Standard_Real& U2, Standard_Real& V2) const
{
  pt.ParametersOnS2(U2,V2);
}


inline Standard_Boolean IntPatch_Point::IsMultiple () const
{
  return mult;
}


inline Standard_Boolean IntPatch_Point::IsOnDomS1 () const
{
  return onS1;
}


inline Standard_Boolean IntPatch_Point::IsVertexOnS1 () const
{
  return vtxonS1;
}


inline const Handle(Adaptor3d_HVertex)& IntPatch_Point::VertexOnS1 () const
{
  if (!vtxonS1) {Standard_DomainError::Raise();}
  return vS1;
}


inline const Handle(Adaptor2d_HCurve2d)& IntPatch_Point::ArcOnS1 () const
{
  if (!onS1) {Standard_DomainError::Raise();}
  return arcS1;
}


inline const IntSurf_Transition& IntPatch_Point::TransitionLineArc1 () const
{
  if (!onS1) {Standard_DomainError::Raise();}
  return traline1;
}


inline const IntSurf_Transition& IntPatch_Point::TransitionOnS1 () const
{
  if (!onS1) {Standard_DomainError::Raise();}
  return tra1;
}


inline Standard_Real IntPatch_Point::ParameterOnArc1 () const
{
  if (!onS1) {Standard_DomainError::Raise();}
  return prm1;
}


inline Standard_Boolean IntPatch_Point::IsOnDomS2 () const
{
  return onS2;
}


inline Standard_Boolean IntPatch_Point::IsVertexOnS2 () const
{
  return vtxonS2;
}


inline const Handle(Adaptor3d_HVertex)& IntPatch_Point::VertexOnS2 () const
{
  if (!vtxonS2) {Standard_DomainError::Raise();}
  return vS2;
}


inline const Handle(Adaptor2d_HCurve2d)& IntPatch_Point::ArcOnS2 () const
{
  if (!onS2) {Standard_DomainError::Raise();}
  return arcS2;
}


inline const IntSurf_Transition& IntPatch_Point::TransitionLineArc2 () const
{
  if (!onS2) {Standard_DomainError::Raise();}
  return traline2;
}


inline const IntSurf_Transition& IntPatch_Point::TransitionOnS2 () const
{
  if (!onS2) {Standard_DomainError::Raise();}
  return tra2;
}


inline Standard_Real IntPatch_Point::ParameterOnArc2 () const
{
  if (!onS2) {Standard_DomainError::Raise();}
  return prm2;
}


inline const IntSurf_PntOn2S& IntPatch_Point::PntOn2S() const
{
  return pt;
}


inline void IntPatch_Point::Parameters(Standard_Real& U1, Standard_Real& V1,
				       Standard_Real& U2, Standard_Real& V2) const
{ 
  pt.Parameters(U1,V1,U2,V2);
}