b311480e |
1 | // Created on: 1993-07-01 |
2 | // Created by: Bruno DUMORTIER |
3 | // Copyright (c) 1993-1999 Matra Datavision |
4 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | // |
6 | // The content of this file is subject to the Open CASCADE Technology Public |
7 | // License Version 6.5 (the "License"). You may not use the content of this file |
8 | // except in compliance with the License. Please obtain a copy of the License |
9 | // at http://www.opencascade.org and read it completely before using this file. |
10 | // |
11 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | // |
14 | // The Original Code and all software distributed under the License is |
15 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | // Initial Developer hereby disclaims all such warranties, including without |
17 | // limitation, any warranties of merchantability, fitness for a particular |
18 | // purpose or non-infringement. Please see the License for the specific terms |
19 | // and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | |
23 | #include <Adaptor3d_Surface.ixx> |
24 | #include <Standard_NotImplemented.hxx> |
25 | |
26 | void Adaptor3d_Surface::Delete() |
27 | {} |
28 | |
29 | //======================================================================= |
30 | //function : FirstUParameter |
31 | //purpose : |
32 | //======================================================================= |
33 | |
34 | Standard_Real Adaptor3d_Surface::FirstUParameter() const |
35 | { |
36 | Standard_NotImplemented::Raise("Adaptor3d_Surface::FirstUParameter"); |
37 | return 0.; |
38 | } |
39 | |
40 | |
41 | //======================================================================= |
42 | //function : LastUParameter |
43 | //purpose : |
44 | //======================================================================= |
45 | |
46 | Standard_Real Adaptor3d_Surface::LastUParameter() const |
47 | { |
48 | Standard_NotImplemented::Raise("Adaptor3d_Surface::LastUParameter"); |
49 | return 0.; |
50 | } |
51 | |
52 | |
53 | //======================================================================= |
54 | //function : FirstVParameter |
55 | //purpose : |
56 | //======================================================================= |
57 | |
58 | Standard_Real Adaptor3d_Surface::FirstVParameter() const |
59 | { |
60 | Standard_NotImplemented::Raise("Adaptor3d_Surface::FirstVParameter"); |
61 | return 0.; |
62 | } |
63 | |
64 | |
65 | //======================================================================= |
66 | //function : LastVParameter |
67 | //purpose : |
68 | //======================================================================= |
69 | |
70 | Standard_Real Adaptor3d_Surface::LastVParameter() const |
71 | { |
72 | Standard_NotImplemented::Raise("Adaptor3d_Surface::LastVParameter"); |
73 | return 0.; |
74 | } |
75 | |
76 | |
77 | //======================================================================= |
78 | //function : UContinuity |
79 | //purpose : |
80 | //======================================================================= |
81 | |
82 | GeomAbs_Shape Adaptor3d_Surface::UContinuity() const |
83 | { |
84 | Standard_NotImplemented::Raise("Adaptor3d_Surface::UContinuity"); |
85 | return GeomAbs_C0; |
86 | } |
87 | |
88 | |
89 | //======================================================================= |
90 | //function : VContinuity |
91 | //purpose : |
92 | //======================================================================= |
93 | |
94 | GeomAbs_Shape Adaptor3d_Surface::VContinuity() const |
95 | { |
96 | Standard_NotImplemented::Raise("Adaptor3d_Surface::VContinuity"); |
97 | return GeomAbs_C0; |
98 | } |
99 | |
100 | |
101 | //======================================================================= |
102 | //function : NbUIntervals |
103 | //purpose : |
104 | //======================================================================= |
105 | |
106 | //Standard_Integer Adaptor3d_Surface::NbUIntervals(const GeomAbs_Shape S) const |
107 | Standard_Integer Adaptor3d_Surface::NbUIntervals(const GeomAbs_Shape ) const |
108 | { |
109 | Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUIntervals"); |
110 | return 0; |
111 | } |
112 | |
113 | |
114 | //======================================================================= |
115 | //function : NbVIntervals |
116 | //purpose : |
117 | //======================================================================= |
118 | |
119 | //Standard_Integer Adaptor3d_Surface::NbVIntervals(const GeomAbs_Shape S) const |
120 | Standard_Integer Adaptor3d_Surface::NbVIntervals(const GeomAbs_Shape ) const |
121 | { |
122 | Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVIntervals"); |
123 | return 0; |
124 | } |
125 | |
126 | |
127 | //======================================================================= |
128 | //function : UIntervals |
129 | //purpose : |
130 | //======================================================================= |
131 | |
132 | //void Adaptor3d_Surface::UIntervals(TColStd_Array1OfReal& T, const GeomAbs_Shape S) const |
133 | void Adaptor3d_Surface::UIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const |
134 | { |
135 | Standard_NotImplemented::Raise("Adaptor3d_Surface::UIntervals"); |
136 | } |
137 | |
138 | |
139 | //======================================================================= |
140 | //function : VIntervals |
141 | //purpose : |
142 | //======================================================================= |
143 | |
144 | //void Adaptor3d_Surface::VIntervals(TColStd_Array1OfReal& T, const GeomAbs_Shape S) const |
145 | void Adaptor3d_Surface::VIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const |
146 | { |
147 | Standard_NotImplemented::Raise("Adaptor3d_Surface::VIntervals"); |
148 | } |
149 | |
150 | |
151 | //======================================================================= |
152 | //function : UTrim |
153 | //purpose : |
154 | //======================================================================= |
155 | |
156 | //Handle(Adaptor3d_HSurface) Adaptor3d_Surface::UTrim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const |
157 | Handle(Adaptor3d_HSurface) Adaptor3d_Surface::UTrim(const Standard_Real , const Standard_Real , const Standard_Real ) const |
158 | { |
159 | Standard_NotImplemented::Raise("Adaptor3d_Surface::UTrim"); |
160 | return Handle(Adaptor3d_HSurface)(); |
161 | } |
162 | |
163 | |
164 | //======================================================================= |
165 | //function : VTrim |
166 | //purpose : |
167 | //======================================================================= |
168 | |
169 | //Handle(Adaptor3d_HSurface) Adaptor3d_Surface::VTrim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const |
170 | Handle(Adaptor3d_HSurface) Adaptor3d_Surface::VTrim(const Standard_Real , const Standard_Real , const Standard_Real ) const |
171 | { |
172 | Standard_NotImplemented::Raise("Adaptor3d_Surface::VTrim"); |
173 | return Handle(Adaptor3d_HSurface)(); |
174 | } |
175 | |
176 | |
177 | //======================================================================= |
178 | //function : IsUClosed |
179 | //purpose : |
180 | //======================================================================= |
181 | |
182 | Standard_Boolean Adaptor3d_Surface::IsUClosed() const |
183 | { |
184 | Standard_NotImplemented::Raise("Adaptor3d_Surface::IsUClosed"); |
185 | return 0; |
186 | } |
187 | |
188 | |
189 | //======================================================================= |
190 | //function : IsVClosed |
191 | //purpose : |
192 | //======================================================================= |
193 | |
194 | Standard_Boolean Adaptor3d_Surface::IsVClosed() const |
195 | { |
196 | Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVClosed"); |
197 | return 0; |
198 | } |
199 | |
200 | |
201 | //======================================================================= |
202 | //function : IsUPeriodic |
203 | //purpose : |
204 | //======================================================================= |
205 | |
206 | Standard_Boolean Adaptor3d_Surface::IsUPeriodic() const |
207 | { |
208 | Standard_NotImplemented::Raise("Adaptor3d_Surface::IsUPeriodic"); |
209 | return 0; |
210 | } |
211 | |
212 | |
213 | //======================================================================= |
214 | //function : UPeriod |
215 | //purpose : |
216 | //======================================================================= |
217 | |
218 | Standard_Real Adaptor3d_Surface::UPeriod() const |
219 | { |
220 | Standard_NotImplemented::Raise("Adaptor3d_Surface::UPeriod"); |
221 | return 0.; |
222 | } |
223 | |
224 | |
225 | //======================================================================= |
226 | //function : IsVPeriodic |
227 | //purpose : |
228 | //======================================================================= |
229 | |
230 | Standard_Boolean Adaptor3d_Surface::IsVPeriodic() const |
231 | { |
232 | Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVPeriodic"); |
233 | return 0; |
234 | } |
235 | |
236 | |
237 | //======================================================================= |
238 | //function : VPeriod |
239 | //purpose : |
240 | //======================================================================= |
241 | |
242 | Standard_Real Adaptor3d_Surface::VPeriod() const |
243 | { |
244 | Standard_NotImplemented::Raise("Adaptor3d_Surface::VPeriod"); |
245 | return 0.; |
246 | } |
247 | |
248 | |
249 | //======================================================================= |
250 | //function : Value |
251 | //purpose : |
252 | //======================================================================= |
253 | |
254 | //gp_Pnt Adaptor3d_Surface::Value(const Standard_Real U, const Standard_Real V) const |
255 | gp_Pnt Adaptor3d_Surface::Value(const Standard_Real , const Standard_Real ) const |
256 | { |
257 | Standard_NotImplemented::Raise("Adaptor3d_Surface::Value"); |
258 | return gp_Pnt(); |
259 | } |
260 | |
261 | |
262 | //======================================================================= |
263 | //function : D0 |
264 | //purpose : |
265 | //======================================================================= |
266 | |
267 | //void Adaptor3d_Surface::D0(const Standard_Real U, const Standard_Real V, gp_Pnt& P) const |
268 | void Adaptor3d_Surface::D0(const Standard_Real , const Standard_Real , gp_Pnt& ) const |
269 | { |
270 | Standard_NotImplemented::Raise("Adaptor3d_Surface::D0"); |
271 | } |
272 | |
273 | |
274 | //======================================================================= |
275 | //function : D1 |
276 | //purpose : |
277 | //======================================================================= |
278 | |
279 | //void Adaptor3d_Surface::D1(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const |
280 | void Adaptor3d_Surface::D1(const Standard_Real , const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& ) const |
281 | { |
282 | Standard_NotImplemented::Raise("Adaptor3d_Surface::D1"); |
283 | } |
284 | |
285 | |
286 | //======================================================================= |
287 | //function : D2 |
288 | //purpose : |
289 | //======================================================================= |
290 | |
291 | //void Adaptor3d_Surface::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 |
292 | void Adaptor3d_Surface::D2(const Standard_Real , const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& ) const |
293 | { |
294 | Standard_NotImplemented::Raise("Adaptor3d_Surface::D2"); |
295 | } |
296 | |
297 | |
298 | //======================================================================= |
299 | //function : D3 |
300 | //purpose : |
301 | //======================================================================= |
302 | |
303 | //void Adaptor3d_Surface::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 |
304 | void Adaptor3d_Surface::D3(const Standard_Real , const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& ) const |
305 | { |
306 | Standard_NotImplemented::Raise("Adaptor3d_Surface::D3"); |
307 | } |
308 | |
309 | |
310 | //======================================================================= |
311 | //function : DN |
312 | //purpose : |
313 | //======================================================================= |
314 | |
315 | //gp_Vec Adaptor3d_Surface::DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const |
316 | gp_Vec Adaptor3d_Surface::DN(const Standard_Real , const Standard_Real , const Standard_Integer , const Standard_Integer ) const |
317 | { |
318 | Standard_NotImplemented::Raise("Adaptor3d_Surface::DN"); |
319 | return gp_Vec(); |
320 | } |
321 | |
322 | |
323 | //======================================================================= |
324 | //function : UResolution |
325 | //purpose : |
326 | //======================================================================= |
327 | |
328 | //Standard_Real Adaptor3d_Surface::UResolution(const Standard_Real R3d) const |
329 | Standard_Real Adaptor3d_Surface::UResolution(const Standard_Real ) const |
330 | { |
331 | Standard_NotImplemented::Raise("Adaptor3d_Surface::UResolution"); |
332 | return 0.; |
333 | } |
334 | |
335 | |
336 | //======================================================================= |
337 | //function : VResolution |
338 | //purpose : |
339 | //======================================================================= |
340 | |
341 | //Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real R3d) const |
342 | Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real ) const |
343 | { |
344 | Standard_NotImplemented::Raise("Adaptor3d_Surface::VResolution"); |
345 | return 0.; |
346 | } |
347 | |
348 | |
349 | //======================================================================= |
350 | //function : GetType |
351 | //purpose : |
352 | //======================================================================= |
353 | |
354 | GeomAbs_SurfaceType Adaptor3d_Surface::GetType() const |
355 | { |
356 | Standard_NotImplemented::Raise("Adaptor3d_Surface::GetType"); |
357 | return GeomAbs_OtherSurface; |
358 | } |
359 | |
360 | |
361 | //======================================================================= |
362 | //function : Plane |
363 | //purpose : |
364 | //======================================================================= |
365 | |
366 | gp_Pln Adaptor3d_Surface::Plane() const |
367 | { |
368 | Standard_NotImplemented::Raise("Adaptor3d_Surface::Plane"); |
369 | return gp_Pln(); |
370 | } |
371 | |
372 | |
373 | //======================================================================= |
374 | //function : Cylinder |
375 | //purpose : |
376 | //======================================================================= |
377 | |
378 | gp_Cylinder Adaptor3d_Surface::Cylinder() const |
379 | { |
380 | Standard_NotImplemented::Raise("Adaptor3d_Surface::Cylinder"); |
381 | return gp_Cylinder(); |
382 | } |
383 | |
384 | |
385 | //======================================================================= |
386 | //function : Cone |
387 | //purpose : |
388 | //======================================================================= |
389 | |
390 | gp_Cone Adaptor3d_Surface::Cone() const |
391 | { |
392 | Standard_NotImplemented::Raise("Adaptor3d_Surface::Cone"); |
393 | return gp_Cone(); |
394 | } |
395 | |
396 | |
397 | //======================================================================= |
398 | //function : Sphere |
399 | //purpose : |
400 | //======================================================================= |
401 | |
402 | gp_Sphere Adaptor3d_Surface::Sphere() const |
403 | { |
404 | Standard_NotImplemented::Raise("Adaptor3d_Surface::Sphere"); |
405 | return gp_Sphere(); |
406 | } |
407 | |
408 | |
409 | //======================================================================= |
410 | //function : Torus |
411 | //purpose : |
412 | //======================================================================= |
413 | |
414 | gp_Torus Adaptor3d_Surface::Torus() const |
415 | { |
416 | Standard_NotImplemented::Raise("Adaptor3d_Surface::Torus"); |
417 | return gp_Torus(); |
418 | } |
419 | |
420 | |
421 | //======================================================================= |
422 | //function : UDegree |
423 | //purpose : |
424 | //======================================================================= |
425 | |
426 | Standard_Integer Adaptor3d_Surface::UDegree() const |
427 | { |
428 | Standard_NotImplemented::Raise("Adaptor3d_Surface::UDegree"); |
429 | return 0; |
430 | } |
431 | |
432 | |
433 | //======================================================================= |
434 | //function : NbUPoles |
435 | //purpose : |
436 | //======================================================================= |
437 | |
438 | Standard_Integer Adaptor3d_Surface::NbUPoles() const |
439 | { |
440 | Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUPoles"); |
441 | return 0; |
442 | } |
443 | |
444 | |
445 | //======================================================================= |
446 | //function : VDegree |
447 | //purpose : |
448 | //======================================================================= |
449 | |
450 | Standard_Integer Adaptor3d_Surface::VDegree() const |
451 | { |
452 | Standard_NotImplemented::Raise("Adaptor3d_Surface::VDegree"); |
453 | return 0; |
454 | } |
455 | |
456 | |
457 | //======================================================================= |
458 | //function : NbVPoles |
459 | //purpose : |
460 | //======================================================================= |
461 | |
462 | Standard_Integer Adaptor3d_Surface::NbVPoles() const |
463 | { |
464 | Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVPoles"); |
465 | return 0; |
466 | } |
467 | |
468 | |
469 | //======================================================================= |
470 | //function : NbUKnots |
471 | //purpose : |
472 | //======================================================================= |
473 | |
474 | Standard_Integer Adaptor3d_Surface::NbUKnots() const |
475 | { |
476 | Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUKnots"); |
477 | return 0; |
478 | } |
479 | |
480 | |
481 | //======================================================================= |
482 | //function : NbVKnots |
483 | //purpose : |
484 | //======================================================================= |
485 | |
486 | Standard_Integer Adaptor3d_Surface::NbVKnots() const |
487 | { |
488 | Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVKnots"); |
489 | return 0; |
490 | } |
491 | |
492 | |
493 | //======================================================================= |
494 | //function : IsURational |
495 | //purpose : |
496 | //======================================================================= |
497 | |
498 | Standard_Boolean Adaptor3d_Surface::IsURational() const |
499 | { |
500 | Standard_NotImplemented::Raise("Adaptor3d_Surface::IsURational"); |
501 | return 0; |
502 | } |
503 | |
504 | |
505 | //======================================================================= |
506 | //function : IsVRational |
507 | //purpose : |
508 | //======================================================================= |
509 | |
510 | Standard_Boolean Adaptor3d_Surface::IsVRational() const |
511 | { |
512 | Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVRational"); |
513 | return 0; |
514 | } |
515 | |
516 | |
517 | //======================================================================= |
518 | //function : Bezier |
519 | //purpose : |
520 | //======================================================================= |
521 | |
522 | Handle(Geom_BezierSurface) Adaptor3d_Surface::Bezier() const |
523 | { |
524 | Standard_NotImplemented::Raise("Adaptor3d_Surface::Bezier"); |
525 | return Handle(Geom_BezierSurface)(); |
526 | } |
527 | |
528 | |
529 | //======================================================================= |
530 | //function : BSpline |
531 | //purpose : |
532 | //======================================================================= |
533 | |
534 | Handle(Geom_BSplineSurface) Adaptor3d_Surface::BSpline() const |
535 | { |
536 | Standard_NotImplemented::Raise("Adaptor3d_Surface::BSpline"); |
537 | return Handle(Geom_BSplineSurface)(); |
538 | } |
539 | |
540 | |
541 | //======================================================================= |
542 | //function : AxeOfRevolution |
543 | //purpose : |
544 | //======================================================================= |
545 | |
546 | gp_Ax1 Adaptor3d_Surface::AxeOfRevolution() const |
547 | { |
548 | Standard_NotImplemented::Raise("Adaptor3d_Surface::AxeOfRevolution"); |
549 | return gp_Ax1(); |
550 | } |
551 | |
552 | |
553 | //======================================================================= |
554 | //function : Direction |
555 | //purpose : |
556 | //======================================================================= |
557 | |
558 | gp_Dir Adaptor3d_Surface::Direction() const |
559 | { |
560 | Standard_NotImplemented::Raise("Adaptor3d_Surface::Direction"); |
561 | return gp_Dir(); |
562 | } |
563 | |
564 | |
565 | //======================================================================= |
566 | //function : BasisCurve |
567 | //purpose : |
568 | //======================================================================= |
569 | |
570 | Handle(Adaptor3d_HCurve) Adaptor3d_Surface::BasisCurve() const |
571 | { |
572 | Standard_NotImplemented::Raise("Adaptor3d_Surface::BasisCurve"); |
573 | return Handle(Adaptor3d_HCurve)(); |
574 | } |
575 | |
576 | |
577 | //======================================================================= |
578 | //function : BasisSurface |
579 | //purpose : |
580 | //======================================================================= |
581 | |
582 | Handle(Adaptor3d_HSurface) Adaptor3d_Surface::BasisSurface() const |
583 | { |
584 | Standard_NotImplemented::Raise("Adaptor3d_Surface::BasisSurface"); |
585 | return Handle(Adaptor3d_HSurface)(); |
586 | } |
587 | |
588 | |
589 | //======================================================================= |
590 | //function : OffsetValue |
591 | //purpose : |
592 | //======================================================================= |
593 | |
594 | Standard_Real Adaptor3d_Surface::OffsetValue() const |
595 | { |
596 | Standard_NotImplemented::Raise("Adaptor3d_Surface::OffsetValue"); |
597 | return 0.; |
598 | } |