973c2be1 |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
d5f74e42 |
5 | // This library is free software; you can redistribute it and/or modify it under |
6 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
7 | // by the Free Software Foundation, with special exception defined in the file |
8 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
9 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
7fd59977 |
13 | |
14 | #include <Adaptor3d_Surface.hxx> |
15 | |
16 | //======================================================================= |
17 | //function : FirstUParameter |
18 | //purpose : |
19 | //======================================================================= |
20 | |
b311480e |
21 | inline Standard_Real Adaptor3d_HSurface::FirstUParameter() const |
7fd59977 |
22 | { |
23 | return Surface().FirstUParameter(); |
24 | } |
25 | |
26 | //======================================================================= |
27 | //function : LastUParameter |
28 | //purpose : |
29 | //======================================================================= |
30 | |
31 | inline Standard_Real Adaptor3d_HSurface::LastUParameter() const |
32 | { |
33 | return Surface().LastUParameter(); |
34 | } |
35 | |
36 | //======================================================================= |
37 | //function : FirstVParameter |
38 | //purpose : |
39 | //======================================================================= |
40 | |
41 | inline Standard_Real Adaptor3d_HSurface::FirstVParameter() const |
42 | { |
43 | return Surface().FirstVParameter(); |
44 | } |
45 | |
46 | //======================================================================= |
47 | //function : LastVParameter |
48 | //purpose : |
49 | //======================================================================= |
50 | |
51 | inline Standard_Real Adaptor3d_HSurface::LastVParameter() const |
52 | { |
53 | return Surface().LastVParameter(); |
54 | } |
55 | |
56 | //======================================================================= |
57 | //function : UContinuity |
58 | //purpose : |
59 | //======================================================================= |
60 | |
61 | inline GeomAbs_Shape Adaptor3d_HSurface::UContinuity() const |
62 | { |
63 | return Surface().UContinuity(); |
64 | } |
65 | |
66 | //======================================================================= |
67 | //function : VContinuity |
68 | //purpose : |
69 | //======================================================================= |
70 | |
71 | inline GeomAbs_Shape Adaptor3d_HSurface::VContinuity() const |
72 | { |
73 | return Surface().VContinuity(); |
74 | } |
75 | |
76 | //======================================================================= |
77 | //function : NbUIntervals |
78 | //purpose : |
79 | //======================================================================= |
80 | |
81 | inline Standard_Integer Adaptor3d_HSurface::NbUIntervals(const GeomAbs_Shape S) const |
82 | { |
83 | return Surface().NbUIntervals(S); |
84 | } |
85 | |
86 | //======================================================================= |
87 | //function : NbVIntervals |
88 | //purpose : |
89 | //======================================================================= |
90 | |
91 | inline Standard_Integer Adaptor3d_HSurface::NbVIntervals(const GeomAbs_Shape S) const |
92 | { |
93 | return Surface().NbVIntervals(S); |
94 | } |
95 | |
96 | //======================================================================= |
97 | //function : UInterval |
98 | //purpose : |
99 | //======================================================================= |
100 | |
101 | inline void Adaptor3d_HSurface::UIntervals(TColStd_Array1OfReal& T, |
102 | const GeomAbs_Shape S) const |
103 | { |
104 | Surface().UIntervals(T,S); |
105 | } |
106 | |
107 | //======================================================================= |
108 | //function : VInterval |
109 | //purpose : |
110 | //======================================================================= |
111 | |
112 | inline void Adaptor3d_HSurface::VIntervals(TColStd_Array1OfReal& T, |
113 | const GeomAbs_Shape S) const |
114 | { |
115 | Surface().VIntervals(T, S); |
116 | } |
117 | |
118 | //======================================================================= |
119 | //function : inline |
120 | //purpose : |
121 | //======================================================================= |
122 | |
123 | inline Handle(Adaptor3d_HSurface) Adaptor3d_HSurface::UTrim |
124 | (const Standard_Real First, |
125 | const Standard_Real Last, |
126 | const Standard_Real Tol) const |
127 | { |
128 | return Surface().UTrim(First,Last,Tol); |
129 | } |
130 | |
131 | |
132 | //======================================================================= |
133 | //function : inline |
134 | //purpose : |
135 | //======================================================================= |
136 | |
137 | inline Handle(Adaptor3d_HSurface) Adaptor3d_HSurface::VTrim |
138 | (const Standard_Real First, |
139 | const Standard_Real Last, |
140 | const Standard_Real Tol) const |
141 | { |
142 | return Surface().VTrim(First,Last,Tol); |
143 | } |
144 | |
145 | |
146 | //======================================================================= |
147 | //function : IsUClosed |
148 | //purpose : |
149 | //======================================================================= |
150 | |
151 | inline Standard_Boolean Adaptor3d_HSurface::IsUClosed() const |
152 | { |
153 | return Surface().IsUClosed(); |
154 | } |
155 | |
156 | //======================================================================= |
157 | //function : IsVClosed |
158 | //purpose : |
159 | //======================================================================= |
160 | |
161 | inline Standard_Boolean Adaptor3d_HSurface::IsVClosed() const |
162 | { |
163 | return Surface().IsVClosed(); |
164 | } |
165 | |
166 | //======================================================================= |
167 | //function : IsUPeriodic |
168 | //purpose : |
169 | //======================================================================= |
170 | |
171 | inline Standard_Boolean Adaptor3d_HSurface::IsUPeriodic() const |
172 | { |
173 | return Surface().IsUPeriodic(); |
174 | } |
175 | |
176 | //======================================================================= |
177 | //function : UPeriod |
178 | //purpose : |
179 | //======================================================================= |
180 | |
181 | inline Standard_Real Adaptor3d_HSurface::UPeriod() const |
182 | { |
183 | return Surface().UPeriod(); |
184 | } |
185 | |
186 | //======================================================================= |
187 | //function : IsVPeriodic |
188 | //purpose : |
189 | //======================================================================= |
190 | |
191 | inline Standard_Boolean Adaptor3d_HSurface::IsVPeriodic() const |
192 | { |
193 | return Surface().IsVPeriodic(); |
194 | } |
195 | |
196 | //======================================================================= |
197 | //function : VPeriod |
198 | //purpose : |
199 | //======================================================================= |
200 | |
201 | inline Standard_Real Adaptor3d_HSurface::VPeriod() const |
202 | { |
203 | return Surface().VPeriod(); |
204 | } |
205 | |
206 | //======================================================================= |
207 | //function : Value |
208 | //purpose : |
209 | //======================================================================= |
210 | |
211 | inline gp_Pnt Adaptor3d_HSurface::Value(const Standard_Real U, const Standard_Real V) const |
212 | { |
213 | return Surface().Value(U,V); |
214 | } |
215 | |
216 | //======================================================================= |
217 | //function : D0 |
218 | //purpose : |
219 | //======================================================================= |
220 | |
221 | inline void Adaptor3d_HSurface::D0(const Standard_Real U, const Standard_Real V, gp_Pnt& P) const |
222 | { |
223 | Surface().D0(U,V,P); |
224 | } |
225 | |
226 | //======================================================================= |
227 | //function : D1 |
228 | //purpose : |
229 | //======================================================================= |
230 | |
231 | inline void Adaptor3d_HSurface::D1(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const |
232 | { |
233 | Surface().D1(U,V,P,D1U,D1V); |
234 | } |
235 | |
236 | //======================================================================= |
237 | //function : D2 |
238 | //purpose : |
239 | //======================================================================= |
240 | |
241 | inline void Adaptor3d_HSurface::D2(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV) const |
242 | { |
243 | Surface().D2(U,V,P,D1U,D1V,D2U,D2V,D2UV); |
244 | } |
245 | |
246 | //======================================================================= |
247 | //function : D3 |
248 | //purpose : |
249 | //======================================================================= |
250 | |
251 | inline void Adaptor3d_HSurface::D3(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV, gp_Vec& D3U, gp_Vec& D3V, gp_Vec& D3UUV, gp_Vec& D3UVV) const |
252 | { |
253 | Surface().D3(U,V,P,D1U,D1V,D2U,D2V,D2UV,D3U,D3V,D3UUV,D3UVV); |
254 | } |
255 | |
256 | //======================================================================= |
257 | //function : DN |
258 | //purpose : |
259 | //======================================================================= |
260 | |
261 | inline gp_Vec Adaptor3d_HSurface::DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const |
262 | { |
263 | return Surface().DN(U,V,Nu,Nv); |
264 | } |
265 | |
266 | //======================================================================= |
267 | //function : UResolution |
268 | //purpose : |
269 | //======================================================================= |
270 | |
271 | inline Standard_Real Adaptor3d_HSurface::UResolution(const Standard_Real R3d) const |
272 | { |
273 | return Surface().UResolution(R3d); |
274 | } |
275 | |
276 | //======================================================================= |
277 | //function : VResolution |
278 | //purpose : |
279 | //======================================================================= |
280 | |
281 | inline Standard_Real Adaptor3d_HSurface::VResolution(const Standard_Real R3d) const |
282 | { |
283 | return Surface().VResolution(R3d); |
284 | } |
285 | |
286 | //======================================================================= |
287 | //function : GetType |
288 | //purpose : |
289 | //======================================================================= |
290 | |
291 | inline GeomAbs_SurfaceType Adaptor3d_HSurface::GetType() const |
292 | { |
293 | return Surface().GetType(); |
294 | } |
295 | |
296 | //======================================================================= |
297 | //function : Plane |
298 | //purpose : |
299 | //======================================================================= |
300 | |
301 | inline gp_Pln Adaptor3d_HSurface::Plane() const |
302 | { |
303 | return Surface().Plane(); |
304 | } |
305 | |
306 | //======================================================================= |
307 | //function : Cylinder |
308 | //purpose : |
309 | //======================================================================= |
310 | |
311 | inline gp_Cylinder Adaptor3d_HSurface::Cylinder() const |
312 | { |
313 | return Surface().Cylinder(); |
314 | } |
315 | |
316 | //======================================================================= |
317 | //function : Cone |
318 | //purpose : |
319 | //======================================================================= |
320 | |
321 | inline gp_Cone Adaptor3d_HSurface::Cone() const |
322 | { |
323 | return Surface().Cone(); |
324 | } |
325 | |
326 | //======================================================================= |
327 | //function : Sphere |
328 | //purpose : |
329 | //======================================================================= |
330 | |
331 | inline gp_Sphere Adaptor3d_HSurface::Sphere() const |
332 | { |
333 | return Surface().Sphere(); |
334 | } |
335 | |
336 | //======================================================================= |
337 | //function : Torus |
338 | //purpose : |
339 | //======================================================================= |
340 | |
341 | inline gp_Torus Adaptor3d_HSurface::Torus() const |
342 | { |
343 | return Surface().Torus(); |
344 | } |
345 | //======================================================================= |
346 | //function : UDegree |
347 | //purpose : |
348 | //======================================================================= |
349 | |
350 | inline Standard_Integer Adaptor3d_HSurface::UDegree() const |
351 | { |
352 | return Surface().UDegree(); |
353 | } |
354 | //======================================================================= |
355 | //function : NbUPoles |
356 | //purpose : |
357 | //======================================================================= |
358 | |
359 | inline Standard_Integer Adaptor3d_HSurface::NbUPoles() const |
360 | { |
361 | return Surface().NbUPoles(); |
362 | } |
363 | //======================================================================= |
364 | //function : VDegree |
365 | //purpose : |
366 | //======================================================================= |
367 | |
368 | inline Standard_Integer Adaptor3d_HSurface::VDegree() const |
369 | { |
370 | return Surface().VDegree(); |
371 | } |
372 | //======================================================================= |
373 | //function : NbVPoles |
374 | //purpose : |
375 | //======================================================================= |
376 | |
377 | inline Standard_Integer Adaptor3d_HSurface::NbVPoles() const |
378 | { |
379 | return Surface().NbVPoles(); |
380 | } |
381 | //======================================================================= |
382 | //function : NbUKnots |
383 | //purpose : |
384 | //======================================================================= |
385 | |
386 | inline Standard_Integer Adaptor3d_HSurface::NbUKnots() const |
387 | { |
388 | return Surface().NbUKnots(); |
389 | } |
390 | //======================================================================= |
391 | //function : NbVKnots |
392 | //purpose : |
393 | //======================================================================= |
394 | |
395 | inline Standard_Integer Adaptor3d_HSurface::NbVKnots() const |
396 | { |
397 | return Surface().NbVKnots(); |
398 | } |
399 | //======================================================================= |
400 | //function : IsURational |
401 | //purpose : |
402 | //======================================================================= |
403 | |
404 | inline Standard_Boolean Adaptor3d_HSurface::IsURational() const |
405 | { |
406 | return Surface().IsURational(); |
407 | } |
408 | //======================================================================= |
409 | //function : NbVKnots |
410 | //purpose : |
411 | //======================================================================= |
412 | |
413 | inline Standard_Boolean Adaptor3d_HSurface::IsVRational() const |
414 | { |
415 | return Surface().IsVRational(); |
416 | } |
417 | //======================================================================= |
418 | //function : Bezier |
419 | //purpose : |
420 | //======================================================================= |
421 | |
422 | inline Handle(Geom_BezierSurface) Adaptor3d_HSurface::Bezier() const |
423 | { |
424 | return Surface().Bezier(); |
425 | } |
426 | |
427 | //======================================================================= |
428 | //function : BSpline |
429 | //purpose : |
430 | //======================================================================= |
431 | |
432 | inline Handle(Geom_BSplineSurface) Adaptor3d_HSurface::BSpline() const |
433 | { |
434 | return Surface().BSpline(); |
435 | } |
436 | |
437 | //======================================================================= |
438 | //function : Axis |
439 | //purpose : |
440 | //======================================================================= |
441 | |
442 | inline gp_Ax1 Adaptor3d_HSurface::AxeOfRevolution() const |
443 | { |
444 | return Surface().AxeOfRevolution(); |
445 | } |
446 | |
447 | //======================================================================= |
448 | //function : Direction |
449 | //purpose : |
450 | //======================================================================= |
451 | |
452 | inline gp_Dir Adaptor3d_HSurface::Direction() const |
453 | { |
454 | return Surface().Direction(); |
455 | } |
456 | |
457 | //======================================================================= |
458 | //function : BasisCurve |
459 | //purpose : |
460 | //======================================================================= |
461 | |
462 | inline Handle(Adaptor3d_HCurve) Adaptor3d_HSurface::BasisCurve() const |
463 | { |
464 | return Surface().BasisCurve(); |
465 | } |
466 | |
467 | //======================================================================= |
468 | //function : BasisSurface |
469 | //purpose : |
470 | //======================================================================= |
471 | |
472 | inline Handle(Adaptor3d_HSurface) Adaptor3d_HSurface::BasisSurface() const |
473 | { |
474 | return Surface().BasisSurface(); |
475 | } |
476 | |
477 | //======================================================================= |
478 | //function : OffsetValue |
479 | //purpose : |
480 | //======================================================================= |
481 | |
482 | inline Standard_Real Adaptor3d_HSurface::OffsetValue() const |
483 | { |
484 | return Surface().OffsetValue(); |
485 | } |