1 // Created on: 1993-07-01
2 // Created by: Bruno DUMORTIER
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16 
17 #include <Adaptor3d_Surface.hxx>
18 
19 #include <Adaptor3d_Curve.hxx>
20 #include <Geom_BezierSurface.hxx>
21 #include <Geom_BSplineSurface.hxx>
22 #include <gp_Ax1.hxx>
23 #include <gp_Cone.hxx>
24 #include <gp_Cylinder.hxx>
25 #include <gp_Dir.hxx>
26 #include <gp_Pln.hxx>
27 #include <gp_Pnt.hxx>
28 #include <gp_Sphere.hxx>
29 #include <gp_Torus.hxx>
30 #include <gp_Vec.hxx>
31 #include <Standard_DomainError.hxx>
32 #include <Standard_NoSuchObject.hxx>
33 #include <Standard_NotImplemented.hxx>
34 #include <Standard_OutOfRange.hxx>
35 
IMPLEMENT_STANDARD_RTTIEXT(Adaptor3d_Surface,Standard_Transient)36 IMPLEMENT_STANDARD_RTTIEXT(Adaptor3d_Surface, Standard_Transient)
37 
38 //=======================================================================
39 //function : ~Adaptor3d_Surface
40 //purpose  : Destructor
41 //=======================================================================
42 Adaptor3d_Surface::~Adaptor3d_Surface()
43 {
44 }
45 
46 //=======================================================================
47 //function : ShallowCopy()
48 //purpose  :
49 //=======================================================================
50 
Handle(Adaptor3d_Surface)51 Handle(Adaptor3d_Surface) Adaptor3d_Surface::ShallowCopy() const
52 {
53   throw Standard_NotImplemented("Adaptor3d_Surface::ShallowCopy");
54 }
55 //=======================================================================
56 //function : FirstUParameter
57 //purpose  :
58 //=======================================================================
59 
FirstUParameter() const60 Standard_Real Adaptor3d_Surface::FirstUParameter() const
61 {
62   throw Standard_NotImplemented("Adaptor3d_Surface::FirstUParameter");
63 }
64 
65 
66 //=======================================================================
67 //function : LastUParameter
68 //purpose  :
69 //=======================================================================
70 
LastUParameter() const71 Standard_Real Adaptor3d_Surface::LastUParameter() const
72 {
73   throw Standard_NotImplemented("Adaptor3d_Surface::LastUParameter");
74 }
75 
76 
77 //=======================================================================
78 //function : FirstVParameter
79 //purpose  :
80 //=======================================================================
81 
FirstVParameter() const82 Standard_Real Adaptor3d_Surface::FirstVParameter() const
83 {
84   throw Standard_NotImplemented("Adaptor3d_Surface::FirstVParameter");
85 }
86 
87 
88 //=======================================================================
89 //function : LastVParameter
90 //purpose  :
91 //=======================================================================
92 
LastVParameter() const93 Standard_Real Adaptor3d_Surface::LastVParameter() const
94 {
95   throw Standard_NotImplemented("Adaptor3d_Surface::LastVParameter");
96 }
97 
98 
99 //=======================================================================
100 //function : UContinuity
101 //purpose  :
102 //=======================================================================
103 
UContinuity() const104 GeomAbs_Shape Adaptor3d_Surface::UContinuity() const
105 {
106   throw Standard_NotImplemented("Adaptor3d_Surface::UContinuity");
107 }
108 
109 
110 //=======================================================================
111 //function : VContinuity
112 //purpose  :
113 //=======================================================================
114 
VContinuity() const115 GeomAbs_Shape Adaptor3d_Surface::VContinuity() const
116 {
117   throw Standard_NotImplemented("Adaptor3d_Surface::VContinuity");
118 }
119 
120 
121 //=======================================================================
122 //function : NbUIntervals
123 //purpose  :
124 //=======================================================================
125 
126 //Standard_Integer Adaptor3d_Surface::NbUIntervals(const GeomAbs_Shape S) const
NbUIntervals(const GeomAbs_Shape) const127 Standard_Integer Adaptor3d_Surface::NbUIntervals(const GeomAbs_Shape ) const
128 {
129   throw Standard_NotImplemented("Adaptor3d_Surface::NbUIntervals");
130 }
131 
132 
133 //=======================================================================
134 //function : NbVIntervals
135 //purpose  :
136 //=======================================================================
137 
138 //Standard_Integer Adaptor3d_Surface::NbVIntervals(const GeomAbs_Shape S) const
NbVIntervals(const GeomAbs_Shape) const139 Standard_Integer Adaptor3d_Surface::NbVIntervals(const GeomAbs_Shape ) const
140 {
141   throw Standard_NotImplemented("Adaptor3d_Surface::NbVIntervals");
142 }
143 
144 
145 //=======================================================================
146 //function : UIntervals
147 //purpose  :
148 //=======================================================================
149 
150 //void Adaptor3d_Surface::UIntervals(TColStd_Array1OfReal& T, const GeomAbs_Shape S) const
UIntervals(TColStd_Array1OfReal &,const GeomAbs_Shape) const151 void Adaptor3d_Surface::UIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const
152 {
153   throw Standard_NotImplemented("Adaptor3d_Surface::UIntervals");
154 }
155 
156 
157 //=======================================================================
158 //function : VIntervals
159 //purpose  :
160 //=======================================================================
161 
162 //void Adaptor3d_Surface::VIntervals(TColStd_Array1OfReal& T, const GeomAbs_Shape S) const
VIntervals(TColStd_Array1OfReal &,const GeomAbs_Shape) const163 void Adaptor3d_Surface::VIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const
164 {
165   throw Standard_NotImplemented("Adaptor3d_Surface::VIntervals");
166 }
167 
168 
169 //=======================================================================
170 //function : UTrim
171 //purpose  :
172 //=======================================================================
173 
174 //Handle(Adaptor3d_Surface) Adaptor3d_Surface::UTrim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const
Handle(Adaptor3d_Surface)175 Handle(Adaptor3d_Surface) Adaptor3d_Surface::UTrim(const Standard_Real , const Standard_Real , const Standard_Real ) const
176 {
177   throw Standard_NotImplemented("Adaptor3d_Surface::UTrim");
178 }
179 
180 
181 //=======================================================================
182 //function : VTrim
183 //purpose  :
184 //=======================================================================
185 
186 //Handle(Adaptor3d_Surface) Adaptor3d_Surface::VTrim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const
Handle(Adaptor3d_Surface)187 Handle(Adaptor3d_Surface) Adaptor3d_Surface::VTrim(const Standard_Real , const Standard_Real , const Standard_Real ) const
188 {
189   throw Standard_NotImplemented("Adaptor3d_Surface::VTrim");
190 }
191 
192 
193 //=======================================================================
194 //function : IsUClosed
195 //purpose  :
196 //=======================================================================
197 
IsUClosed() const198 Standard_Boolean Adaptor3d_Surface::IsUClosed() const
199 {
200   throw Standard_NotImplemented("Adaptor3d_Surface::IsUClosed");
201 }
202 
203 
204 //=======================================================================
205 //function : IsVClosed
206 //purpose  :
207 //=======================================================================
208 
IsVClosed() const209 Standard_Boolean Adaptor3d_Surface::IsVClosed() const
210 {
211   throw Standard_NotImplemented("Adaptor3d_Surface::IsVClosed");
212 }
213 
214 
215 //=======================================================================
216 //function : IsUPeriodic
217 //purpose  :
218 //=======================================================================
219 
IsUPeriodic() const220 Standard_Boolean Adaptor3d_Surface::IsUPeriodic() const
221 {
222   throw Standard_NotImplemented("Adaptor3d_Surface::IsUPeriodic");
223 }
224 
225 
226 //=======================================================================
227 //function : UPeriod
228 //purpose  :
229 //=======================================================================
230 
UPeriod() const231 Standard_Real Adaptor3d_Surface::UPeriod() const
232 {
233   throw Standard_NotImplemented("Adaptor3d_Surface::UPeriod");
234 }
235 
236 
237 //=======================================================================
238 //function : IsVPeriodic
239 //purpose  :
240 //=======================================================================
241 
IsVPeriodic() const242 Standard_Boolean Adaptor3d_Surface::IsVPeriodic() const
243 {
244   throw Standard_NotImplemented("Adaptor3d_Surface::IsVPeriodic");
245 }
246 
247 
248 //=======================================================================
249 //function : VPeriod
250 //purpose  :
251 //=======================================================================
252 
VPeriod() const253 Standard_Real Adaptor3d_Surface::VPeriod() const
254 {
255   throw Standard_NotImplemented("Adaptor3d_Surface::VPeriod");
256 }
257 
258 
259 //=======================================================================
260 //function : Value
261 //purpose  :
262 //=======================================================================
263 
264 //gp_Pnt Adaptor3d_Surface::Value(const Standard_Real U, const Standard_Real V) const
Value(const Standard_Real,const Standard_Real) const265 gp_Pnt Adaptor3d_Surface::Value(const Standard_Real , const Standard_Real ) const
266 {
267   throw Standard_NotImplemented("Adaptor3d_Surface::Value");
268 }
269 
270 
271 //=======================================================================
272 //function : D0
273 //purpose  :
274 //=======================================================================
275 
276 //void Adaptor3d_Surface::D0(const Standard_Real U, const Standard_Real V, gp_Pnt& P) const
D0(const Standard_Real,const Standard_Real,gp_Pnt &) const277 void Adaptor3d_Surface::D0(const Standard_Real , const Standard_Real , gp_Pnt& ) const
278 {
279   throw Standard_NotImplemented("Adaptor3d_Surface::D0");
280 }
281 
282 
283 //=======================================================================
284 //function : D1
285 //purpose  :
286 //=======================================================================
287 
288 //void Adaptor3d_Surface::D1(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const
D1(const Standard_Real,const Standard_Real,gp_Pnt &,gp_Vec &,gp_Vec &) const289 void Adaptor3d_Surface::D1(const Standard_Real , const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& ) const
290 {
291   throw Standard_NotImplemented("Adaptor3d_Surface::D1");
292 }
293 
294 
295 //=======================================================================
296 //function : D2
297 //purpose  :
298 //=======================================================================
299 
300 //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
D2(const Standard_Real,const Standard_Real,gp_Pnt &,gp_Vec &,gp_Vec &,gp_Vec &,gp_Vec &,gp_Vec &) const301 void Adaptor3d_Surface::D2(const Standard_Real , const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& ) const
302 {
303   throw Standard_NotImplemented("Adaptor3d_Surface::D2");
304 }
305 
306 
307 //=======================================================================
308 //function : D3
309 //purpose  :
310 //=======================================================================
311 
312 //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
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 &) const313 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
314 {
315   throw Standard_NotImplemented("Adaptor3d_Surface::D3");
316 }
317 
318 
319 //=======================================================================
320 //function : DN
321 //purpose  :
322 //=======================================================================
323 
324 //gp_Vec Adaptor3d_Surface::DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const
DN(const Standard_Real,const Standard_Real,const Standard_Integer,const Standard_Integer) const325 gp_Vec Adaptor3d_Surface::DN(const Standard_Real , const Standard_Real , const Standard_Integer , const Standard_Integer ) const
326 {
327   throw Standard_NotImplemented("Adaptor3d_Surface::DN");
328 }
329 
330 
331 //=======================================================================
332 //function : UResolution
333 //purpose  :
334 //=======================================================================
335 
336 //Standard_Real Adaptor3d_Surface::UResolution(const Standard_Real R3d) const
UResolution(const Standard_Real) const337 Standard_Real Adaptor3d_Surface::UResolution(const Standard_Real ) const
338 {
339   throw Standard_NotImplemented("Adaptor3d_Surface::UResolution");
340 }
341 
342 
343 //=======================================================================
344 //function : VResolution
345 //purpose  :
346 //=======================================================================
347 
348 //Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real R3d) const
VResolution(const Standard_Real) const349 Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real ) const
350 {
351   throw Standard_NotImplemented("Adaptor3d_Surface::VResolution");
352 }
353 
354 
355 //=======================================================================
356 //function : GetType
357 //purpose  :
358 //=======================================================================
359 
GetType() const360 GeomAbs_SurfaceType Adaptor3d_Surface::GetType() const
361 {
362   throw Standard_NotImplemented("Adaptor3d_Surface::GetType");
363 }
364 
365 
366 //=======================================================================
367 //function : Plane
368 //purpose  :
369 //=======================================================================
370 
Plane() const371 gp_Pln Adaptor3d_Surface::Plane() const
372 {
373   throw Standard_NotImplemented("Adaptor3d_Surface::Plane");
374 }
375 
376 
377 //=======================================================================
378 //function : Cylinder
379 //purpose  :
380 //=======================================================================
381 
Cylinder() const382 gp_Cylinder Adaptor3d_Surface::Cylinder() const
383 {
384   throw Standard_NotImplemented("Adaptor3d_Surface::Cylinder");
385 }
386 
387 
388 //=======================================================================
389 //function : Cone
390 //purpose  :
391 //=======================================================================
392 
Cone() const393 gp_Cone Adaptor3d_Surface::Cone() const
394 {
395   throw Standard_NotImplemented("Adaptor3d_Surface::Cone");
396 }
397 
398 
399 //=======================================================================
400 //function : Sphere
401 //purpose  :
402 //=======================================================================
403 
Sphere() const404 gp_Sphere Adaptor3d_Surface::Sphere() const
405 {
406   throw Standard_NotImplemented("Adaptor3d_Surface::Sphere");
407 }
408 
409 
410 //=======================================================================
411 //function : Torus
412 //purpose  :
413 //=======================================================================
414 
Torus() const415 gp_Torus Adaptor3d_Surface::Torus() const
416 {
417   throw Standard_NotImplemented("Adaptor3d_Surface::Torus");
418 }
419 
420 
421 //=======================================================================
422 //function : UDegree
423 //purpose  :
424 //=======================================================================
425 
UDegree() const426 Standard_Integer Adaptor3d_Surface::UDegree() const
427 {
428   throw Standard_NotImplemented("Adaptor3d_Surface::UDegree");
429 }
430 
431 
432 //=======================================================================
433 //function : NbUPoles
434 //purpose  :
435 //=======================================================================
436 
NbUPoles() const437 Standard_Integer Adaptor3d_Surface::NbUPoles() const
438 {
439   throw Standard_NotImplemented("Adaptor3d_Surface::NbUPoles");
440 }
441 
442 
443 //=======================================================================
444 //function : VDegree
445 //purpose  :
446 //=======================================================================
447 
VDegree() const448 Standard_Integer Adaptor3d_Surface::VDegree() const
449 {
450   throw Standard_NotImplemented("Adaptor3d_Surface::VDegree");
451 }
452 
453 
454 //=======================================================================
455 //function : NbVPoles
456 //purpose  :
457 //=======================================================================
458 
NbVPoles() const459 Standard_Integer Adaptor3d_Surface::NbVPoles() const
460 {
461   throw Standard_NotImplemented("Adaptor3d_Surface::NbVPoles");
462 }
463 
464 
465 //=======================================================================
466 //function : NbUKnots
467 //purpose  :
468 //=======================================================================
469 
NbUKnots() const470 Standard_Integer Adaptor3d_Surface::NbUKnots() const
471 {
472   throw Standard_NotImplemented("Adaptor3d_Surface::NbUKnots");
473 }
474 
475 
476 //=======================================================================
477 //function : NbVKnots
478 //purpose  :
479 //=======================================================================
480 
NbVKnots() const481 Standard_Integer Adaptor3d_Surface::NbVKnots() const
482 {
483   throw Standard_NotImplemented("Adaptor3d_Surface::NbVKnots");
484 }
485 
486 
487 //=======================================================================
488 //function : IsURational
489 //purpose  :
490 //=======================================================================
491 
IsURational() const492 Standard_Boolean Adaptor3d_Surface::IsURational() const
493 {
494   throw Standard_NotImplemented("Adaptor3d_Surface::IsURational");
495 }
496 
497 
498 //=======================================================================
499 //function : IsVRational
500 //purpose  :
501 //=======================================================================
502 
IsVRational() const503 Standard_Boolean Adaptor3d_Surface::IsVRational() const
504 {
505   throw Standard_NotImplemented("Adaptor3d_Surface::IsVRational");
506 }
507 
508 
509 //=======================================================================
510 //function : Bezier
511 //purpose  :
512 //=======================================================================
513 
Handle(Geom_BezierSurface)514 Handle(Geom_BezierSurface) Adaptor3d_Surface::Bezier() const
515 {
516   throw Standard_NotImplemented("Adaptor3d_Surface::Bezier");
517 }
518 
519 
520 //=======================================================================
521 //function : BSpline
522 //purpose  :
523 //=======================================================================
524 
Handle(Geom_BSplineSurface)525 Handle(Geom_BSplineSurface) Adaptor3d_Surface::BSpline() const
526 {
527   throw Standard_NotImplemented("Adaptor3d_Surface::BSpline");
528 }
529 
530 
531 //=======================================================================
532 //function : AxeOfRevolution
533 //purpose  :
534 //=======================================================================
535 
AxeOfRevolution() const536 gp_Ax1 Adaptor3d_Surface::AxeOfRevolution() const
537 {
538   throw Standard_NotImplemented("Adaptor3d_Surface::AxeOfRevolution");
539 }
540 
541 
542 //=======================================================================
543 //function : Direction
544 //purpose  :
545 //=======================================================================
546 
Direction() const547 gp_Dir Adaptor3d_Surface::Direction() const
548 {
549   throw Standard_NotImplemented("Adaptor3d_Surface::Direction");
550 }
551 
552 
553 //=======================================================================
554 //function : BasisCurve
555 //purpose  :
556 //=======================================================================
557 
Handle(Adaptor3d_Curve)558 Handle(Adaptor3d_Curve) Adaptor3d_Surface::BasisCurve() const
559 {
560   throw Standard_NotImplemented("Adaptor3d_Surface::BasisCurve");
561 }
562 
563 
564 //=======================================================================
565 //function : BasisSurface
566 //purpose  :
567 //=======================================================================
568 
Handle(Adaptor3d_Surface)569 Handle(Adaptor3d_Surface) Adaptor3d_Surface::BasisSurface() const
570 {
571   throw Standard_NotImplemented("Adaptor3d_Surface::BasisSurface");
572 }
573 
574 
575 //=======================================================================
576 //function : OffsetValue
577 //purpose  :
578 //=======================================================================
579 
OffsetValue() const580 Standard_Real Adaptor3d_Surface::OffsetValue() const
581 {
582   throw Standard_NotImplemented("Adaptor3d_Surface::OffsetValue");
583 }
584