0023024: Update headers of OCCT files
[occt.git] / src / BRepBuilderAPI / BRepBuilderAPI_MakeEdge.cxx
CommitLineData
b311480e 1// Created on: 1993-07-23
2// Created by: Remi LEQUETTE
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 <BRepBuilderAPI_MakeEdge.ixx>
24
25//=======================================================================
26//function : BRepBuilderAPI_MakeEdge
27//purpose :
28//=======================================================================
29
30BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge()
31{}
32
33//=======================================================================
34//function : BRepBuilderAPI_MakeEdge
35//purpose :
36//=======================================================================
37
38BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const TopoDS_Vertex& V1,
39 const TopoDS_Vertex& V2)
40: myMakeEdge(V1,V2)
41{
42 if ( myMakeEdge.IsDone()) {
43 Done();
44 myShape = myMakeEdge.Shape();
45 }
46}
47
48
49//=======================================================================
50//function : BRepBuilderAPI_MakeEdge
51//purpose :
52//=======================================================================
53
54BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Pnt& P1,
55 const gp_Pnt& P2)
56: myMakeEdge(P1,P2)
57{
58 if ( myMakeEdge.IsDone()) {
59 Done();
60 myShape = myMakeEdge.Shape();
61 }
62}
63
64
65//=======================================================================
66//function : BRepBuilderAPI_MakeEdge
67//purpose :
68//=======================================================================
69
70BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Lin& L)
71: myMakeEdge(L)
72{
73 if ( myMakeEdge.IsDone()) {
74 Done();
75 myShape = myMakeEdge.Shape();
76 }
77}
78
79
80//=======================================================================
81//function : BRepBuilderAPI_MakeEdge
82//purpose :
83//=======================================================================
84
85BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Lin& L,
86 const Standard_Real p1,
87 const Standard_Real p2)
88: myMakeEdge(L,p1,p2)
89{
90 if ( myMakeEdge.IsDone()) {
91 Done();
92 myShape = myMakeEdge.Shape();
93 }
94}
95
96
97//=======================================================================
98//function : BRepBuilderAPI_MakeEdge
99//purpose :
100//=======================================================================
101
102BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Lin& L,
103 const gp_Pnt& P1,
104 const gp_Pnt& P2)
105: myMakeEdge(L,P1,P2)
106{
107 if ( myMakeEdge.IsDone()) {
108 Done();
109 myShape = myMakeEdge.Shape();
110 }
111}
112
113
114//=======================================================================
115//function : BRepBuilderAPI_MakeEdge
116//purpose :
117//=======================================================================
118
119BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Lin& L,
120 const TopoDS_Vertex& V1,
121 const TopoDS_Vertex& V2)
122: myMakeEdge(L,V1,V2)
123{
124 if ( myMakeEdge.IsDone()) {
125 Done();
126 myShape = myMakeEdge.Shape();
127 }
128}
129
130
131//=======================================================================
132//function : BRepBuilderAPI_MakeEdge
133//purpose :
134//=======================================================================
135
136BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Circ& C)
137: myMakeEdge(C)
138{
139 if ( myMakeEdge.IsDone()) {
140 Done();
141 myShape = myMakeEdge.Shape();
142 }
143}
144
145
146//=======================================================================
147//function : BRepBuilderAPI_MakeEdge
148//purpose :
149//=======================================================================
150
151BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Circ& C,
152 const Standard_Real p1,
153 const Standard_Real p2)
154: myMakeEdge(C,p1,p2)
155{
156 if ( myMakeEdge.IsDone()) {
157 Done();
158 myShape = myMakeEdge.Shape();
159 }
160}
161
162
163//=======================================================================
164//function : BRepBuilderAPI_MakeEdge
165//purpose :
166//=======================================================================
167
168BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Circ& C ,
169 const gp_Pnt& P1,
170 const gp_Pnt& P2 )
171: myMakeEdge(C,P1,P2)
172{
173 if ( myMakeEdge.IsDone()) {
174 Done();
175 myShape = myMakeEdge.Shape();
176 }
177}
178
179
180//=======================================================================
181//function : BRepBuilderAPI_MakeEdge
182//purpose :
183//=======================================================================
184
185BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Circ& C,
186 const TopoDS_Vertex& V1,
187 const TopoDS_Vertex& V2)
188: myMakeEdge(C,V1,V2)
189{
190 if ( myMakeEdge.IsDone()) {
191 Done();
192 myShape = myMakeEdge.Shape();
193 }
194}
195
196
197//=======================================================================
198//function : BRepBuilderAPI_MakeEdge
199//purpose :
200//=======================================================================
201
202BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Elips& E)
203:myMakeEdge(E)
204{
205 if ( myMakeEdge.IsDone()) {
206 Done();
207 myShape = myMakeEdge.Shape();
208 }
209}
210
211
212//=======================================================================
213//function : BRepBuilderAPI_MakeEdge
214//purpose :
215//=======================================================================
216
217BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Elips& E,
218 const Standard_Real p1,
219 const Standard_Real p2)
220: myMakeEdge(E,p1,p2)
221{
222 if ( myMakeEdge.IsDone()) {
223 Done();
224 myShape = myMakeEdge.Shape();
225 }
226}
227
228
229//=======================================================================
230//function : BRepBuilderAPI_MakeEdge
231//purpose :
232//=======================================================================
233
234BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Elips& E,
235 const gp_Pnt& P1,
236 const gp_Pnt& P2)
237: myMakeEdge(E,P1,P2)
238{
239 if ( myMakeEdge.IsDone()) {
240 Done();
241 myShape = myMakeEdge.Shape();
242 }
243}
244
245
246//=======================================================================
247//function : BRepBuilderAPI_MakeEdge
248//purpose :
249//=======================================================================
250
251BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Elips& E,
252 const TopoDS_Vertex& V1,
253 const TopoDS_Vertex& V2)
254: myMakeEdge(E,V1,V2)
255{
256 if ( myMakeEdge.IsDone()) {
257 Done();
258 myShape = myMakeEdge.Shape();
259 }
260}
261
262
263//=======================================================================
264//function : BRepBuilderAPI_MakeEdge
265//purpose :
266//=======================================================================
267
268BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Hypr& H)
269: myMakeEdge(H)
270{
271 if ( myMakeEdge.IsDone()) {
272 Done();
273 myShape = myMakeEdge.Shape();
274 }
275}
276
277
278//=======================================================================
279//function : BRepBuilderAPI_MakeEdge
280//purpose :
281//=======================================================================
282
283BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Hypr& H,
284 const Standard_Real p1,
285 const Standard_Real p2)
286: myMakeEdge(H,p1,p2)
287{
288 if ( myMakeEdge.IsDone()) {
289 Done();
290 myShape = myMakeEdge.Shape();
291 }
292}
293
294
295//=======================================================================
296//function : BRepBuilderAPI_MakeEdge
297//purpose :
298//=======================================================================
299
300BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Hypr& H,
301 const gp_Pnt& P1,
302 const gp_Pnt& P2)
303: myMakeEdge(H,P1,P2)
304{
305 if ( myMakeEdge.IsDone()) {
306 Done();
307 myShape = myMakeEdge.Shape();
308 }
309}
310
311
312//=======================================================================
313//function : BRepBuilderAPI_MakeEdge
314//purpose :
315//=======================================================================
316
317BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Hypr& H,
318 const TopoDS_Vertex& V1,
319 const TopoDS_Vertex& V2)
320: myMakeEdge(H,V1,V2)
321{
322 if ( myMakeEdge.IsDone()) {
323 Done();
324 myShape = myMakeEdge.Shape();
325 }
326}
327
328
329//=======================================================================
330//function : BRepBuilderAPI_MakeEdge
331//purpose :
332//=======================================================================
333
334BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Parab& P)
335: myMakeEdge(P)
336{
337 if ( myMakeEdge.IsDone()) {
338 Done();
339 myShape = myMakeEdge.Shape();
340 }
341}
342
343
344//=======================================================================
345//function : BRepBuilderAPI_MakeEdge
346//purpose :
347//=======================================================================
348
349BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Parab& P,
350 const Standard_Real p1,
351 const Standard_Real p2)
352: myMakeEdge(P,p1,p2)
353{
354 if ( myMakeEdge.IsDone()) {
355 Done();
356 myShape = myMakeEdge.Shape();
357 }
358}
359
360
361//=======================================================================
362//function : BRepBuilderAPI_MakeEdge
363//purpose :
364//=======================================================================
365
366BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Parab& P,
367 const gp_Pnt& P1,
368 const gp_Pnt& P2)
369: myMakeEdge(P,P1,P2)
370{
371 if ( myMakeEdge.IsDone()) {
372 Done();
373 myShape = myMakeEdge.Shape();
374 }
375}
376
377
378//=======================================================================
379//function : BRepBuilderAPI_MakeEdge
380//purpose :
381//=======================================================================
382
383BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const gp_Parab& P,
384 const TopoDS_Vertex& V1,
385 const TopoDS_Vertex& V2)
386: myMakeEdge(P,V1,V2)
387{
388 if ( myMakeEdge.IsDone()) {
389 Done();
390 myShape = myMakeEdge.Shape();
391 }
392}
393
394
395//=======================================================================
396//function : BRepBuilderAPI_MakeEdge
397//purpose :
398//=======================================================================
399
400BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom_Curve)& L)
401: myMakeEdge(L)
402{
403 if ( myMakeEdge.IsDone()) {
404 Done();
405 myShape = myMakeEdge.Shape();
406 }
407}
408
409
410//=======================================================================
411//function : BRepBuilderAPI_MakeEdge
412//purpose :
413//=======================================================================
414
415BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom_Curve)& L,
416 const Standard_Real p1,
417 const Standard_Real p2)
418: myMakeEdge(L,p1,p2)
419{
420 if ( myMakeEdge.IsDone()) {
421 Done();
422 myShape = myMakeEdge.Shape();
423 }
424}
425
426
427//=======================================================================
428//function : BRepBuilderAPI_MakeEdge
429//purpose :
430//=======================================================================
431
432BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom_Curve)& L,
433 const gp_Pnt& P1,
434 const gp_Pnt& P2)
435: myMakeEdge(L,P1,P2)
436{
437 if ( myMakeEdge.IsDone()) {
438 Done();
439 myShape = myMakeEdge.Shape();
440 }
441}
442
443//=======================================================================
444//function : BRepBuilderAPI_MakeEdge
445//purpose :
446//=======================================================================
447
448BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom_Curve)& L,
449 const TopoDS_Vertex& V1,
450 const TopoDS_Vertex& V2)
451: myMakeEdge(L,V1,V2)
452{
453 if ( myMakeEdge.IsDone()) {
454 Done();
455 myShape = myMakeEdge.Shape();
456 }
457}
458
459
460//=======================================================================
461//function : BRepBuilderAPI_MakeEdge
462//purpose :
463//=======================================================================
464
465BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom_Curve)& L,
466 const gp_Pnt& P1,
467 const gp_Pnt& P2,
468 const Standard_Real p1,
469 const Standard_Real p2)
470: myMakeEdge(L,P1,P2,p1,p2)
471{
472 if ( myMakeEdge.IsDone()) {
473 Done();
474 myShape = myMakeEdge.Shape();
475 }
476}
477
478
479//=======================================================================
480//function : BRepBuilderAPI_MakeEdge
481//purpose :
482//=======================================================================
483
484BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom_Curve)& L,
485 const TopoDS_Vertex& V1,
486 const TopoDS_Vertex& V2,
487 const Standard_Real p1,
488 const Standard_Real p2)
489: myMakeEdge(L,V1,V2,p1,p2)
490{
491 if ( myMakeEdge.IsDone()) {
492 Done();
493 myShape = myMakeEdge.Shape();
494 }
495}
496
497
498//=======================================================================
499//function : BRepBuilderAPI_MakeEdge
500//purpose :
501//=======================================================================
502
503BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom2d_Curve)& L,
504 const Handle(Geom_Surface)& S)
505: myMakeEdge(L,S)
506{
507 if ( myMakeEdge.IsDone()) {
508 Done();
509 myShape = myMakeEdge.Shape();
510 }
511}
512
513
514//=======================================================================
515//function : BRepBuilderAPI_MakeEdge
516//purpose :
517//=======================================================================
518
519BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom2d_Curve)& L,
520 const Handle(Geom_Surface)& S,
521 const Standard_Real p1,
522 const Standard_Real p2)
523: myMakeEdge(L,S,p1,p2)
524{
525 if ( myMakeEdge.IsDone()) {
526 Done();
527 myShape = myMakeEdge.Shape();
528 }
529}
530
531
532//=======================================================================
533//function : BRepBuilderAPI_MakeEdge
534//purpose :
535//=======================================================================
536
537BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom2d_Curve)& L,
538 const Handle(Geom_Surface)& S,
539 const gp_Pnt& P1,
540 const gp_Pnt& P2)
541: myMakeEdge(L,S,P1,P2)
542{
543 if ( myMakeEdge.IsDone()) {
544 Done();
545 myShape = myMakeEdge.Shape();
546 }
547}
548
549//=======================================================================
550//function : BRepBuilderAPI_MakeEdge
551//purpose :
552//=======================================================================
553
554BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom2d_Curve)& L,
555 const Handle(Geom_Surface)& S,
556 const TopoDS_Vertex& V1,
557 const TopoDS_Vertex& V2)
558: myMakeEdge(L,S,V1,V2)
559{
560 if ( myMakeEdge.IsDone()) {
561 Done();
562 myShape = myMakeEdge.Shape();
563 }
564}
565
566
567//=======================================================================
568//function : BRepBuilderAPI_MakeEdge
569//purpose :
570//=======================================================================
571
572BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom2d_Curve)& L,
573 const Handle(Geom_Surface)& S,
574 const gp_Pnt& P1,
575 const gp_Pnt& P2,
576 const Standard_Real p1,
577 const Standard_Real p2)
578: myMakeEdge(L,S,P1,P2,p1,p2)
579{
580 if ( myMakeEdge.IsDone()) {
581 Done();
582 myShape = myMakeEdge.Shape();
583 }
584}
585
586
587//=======================================================================
588//function : BRepBuilderAPI_MakeEdge
589//purpose :
590//=======================================================================
591
592BRepBuilderAPI_MakeEdge::BRepBuilderAPI_MakeEdge(const Handle(Geom2d_Curve)& L,
593 const Handle(Geom_Surface)& S,
594 const TopoDS_Vertex& V1,
595 const TopoDS_Vertex& V2,
596 const Standard_Real p1,
597 const Standard_Real p2)
598: myMakeEdge(L,S,V1,V2,p1,p2)
599{
600 if ( myMakeEdge.IsDone()) {
601 Done();
602 myShape = myMakeEdge.Shape();
603 }
604}
605
606
607//=======================================================================
608//function : Init
609//purpose :
610//=======================================================================
611
612void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom_Curve)& C)
613{
614 myMakeEdge.Init(C);
615 if ( myMakeEdge.IsDone()) {
616 Done();
617 myShape = myMakeEdge.Shape();
618 }
619}
620
621
622//=======================================================================
623//function : Init
624//purpose :
625//=======================================================================
626
627void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom_Curve)& C,
628 const Standard_Real p1,
629 const Standard_Real p2)
630{
631 myMakeEdge.Init(C,p1,p2);
632 if ( myMakeEdge.IsDone()) {
633 Done();
634 myShape = myMakeEdge.Shape();
635 }
636}
637
638
639//=======================================================================
640//function : Init
641//purpose :
642//=======================================================================
643
644void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom_Curve)& C,
645 const gp_Pnt& P1,
646 const gp_Pnt& P2)
647{
648 myMakeEdge.Init(C,P1,P2);
649 if ( myMakeEdge.IsDone()) {
650 Done();
651 myShape = myMakeEdge.Shape();
652 }
653}
654
655
656//=======================================================================
657//function : Init
658//purpose :
659//=======================================================================
660
661void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom_Curve)& C,
662 const TopoDS_Vertex& V1,
663 const TopoDS_Vertex& V2)
664{
665 myMakeEdge.Init(C,V1,V2);
666 if ( myMakeEdge.IsDone()) {
667 Done();
668 myShape = myMakeEdge.Shape();
669 }
670}
671
672
673//=======================================================================
674//function : Init
675//purpose :
676//=======================================================================
677
678void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom_Curve)& C,
679 const gp_Pnt& P1,
680 const gp_Pnt& P2,
681 const Standard_Real p1,
682 const Standard_Real p2)
683{
684 myMakeEdge.Init(C,P1,P2,p1,p2);
685 if ( myMakeEdge.IsDone()) {
686 Done();
687 myShape = myMakeEdge.Shape();
688 }
689}
690
691
692//=======================================================================
693//function : Init
694//purpose :
695//=======================================================================
696
697void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom_Curve)& CC,
698 const TopoDS_Vertex& VV1,
699 const TopoDS_Vertex& VV2,
700 const Standard_Real pp1,
701 const Standard_Real pp2)
702{
703 myMakeEdge.Init(CC,VV1,VV2,pp1,pp2);
704 if ( myMakeEdge.IsDone()) {
705 Done();
706 myShape = myMakeEdge.Shape();
707 }
708}
709
710//=======================================================================
711//function : Init
712//purpose :
713//=======================================================================
714
715void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom2d_Curve)& C,
716 const Handle(Geom_Surface)& S)
717{
718 myMakeEdge.Init(C,S);
719 if ( myMakeEdge.IsDone()) {
720 Done();
721 myShape = myMakeEdge.Shape();
722 }
723}
724
725
726//=======================================================================
727//function : Init
728//purpose :
729//=======================================================================
730
731void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom2d_Curve)& C,
732 const Handle(Geom_Surface)& S,
733 const Standard_Real p1,
734 const Standard_Real p2)
735{
736 myMakeEdge.Init(C,S,p1,p2);
737 if ( myMakeEdge.IsDone()) {
738 Done();
739 myShape = myMakeEdge.Shape();
740 }
741}
742
743
744//=======================================================================
745//function : Init
746//purpose :
747//=======================================================================
748
749void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom2d_Curve)& C,
750 const Handle(Geom_Surface)& S,
751 const gp_Pnt& P1,
752 const gp_Pnt& P2)
753{
754 myMakeEdge.Init(C,S,P1,P2);
755 if ( myMakeEdge.IsDone()) {
756 Done();
757 myShape = myMakeEdge.Shape();
758 }
759}
760
761
762//=======================================================================
763//function : Init
764//purpose :
765//=======================================================================
766
767void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom2d_Curve)& C,
768 const Handle(Geom_Surface)& S,
769 const TopoDS_Vertex& V1,
770 const TopoDS_Vertex& V2)
771{
772 myMakeEdge.Init(C,S,V1,V2);
773 if ( myMakeEdge.IsDone()) {
774 Done();
775 myShape = myMakeEdge.Shape();
776 }
777}
778
779
780//=======================================================================
781//function : Init
782//purpose :
783//=======================================================================
784
785void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom2d_Curve)& C,
786 const Handle(Geom_Surface)& S,
787 const gp_Pnt& P1,
788 const gp_Pnt& P2,
789 const Standard_Real p1,
790 const Standard_Real p2)
791{
792 myMakeEdge.Init(C,S,P1,P2,p1,p2);
793 if ( myMakeEdge.IsDone()) {
794 Done();
795 myShape = myMakeEdge.Shape();
796 }
797}
798
799
800//=======================================================================
801//function : Init
802//purpose :
803//=======================================================================
804
805void BRepBuilderAPI_MakeEdge::Init(const Handle(Geom2d_Curve)& CC,
806 const Handle(Geom_Surface)& S,
807 const TopoDS_Vertex& VV1,
808 const TopoDS_Vertex& VV2,
809 const Standard_Real pp1,
810 const Standard_Real pp2)
811{
812 myMakeEdge.Init(CC,S,VV1,VV2,pp1,pp2);
813 if ( myMakeEdge.IsDone()) {
814 Done();
815 myShape = myMakeEdge.Shape();
816 }
817}
818
819
820//=======================================================================
821//function : IsDone
822//purpose :
823//=======================================================================
824
825Standard_Boolean BRepBuilderAPI_MakeEdge::IsDone() const
826{
827 return myMakeEdge.IsDone();
828}
829
830
831//=======================================================================
832//function : Error
833//purpose :
834//=======================================================================
835
836BRepBuilderAPI_EdgeError BRepBuilderAPI_MakeEdge::Error() const
837{
838 switch ( myMakeEdge.Error()) {
839
840 case BRepLib_EdgeDone:
841 return BRepBuilderAPI_EdgeDone;
842
843 case BRepLib_PointProjectionFailed:
844 return BRepBuilderAPI_PointProjectionFailed;
845
846 case BRepLib_ParameterOutOfRange:
847 return BRepBuilderAPI_ParameterOutOfRange;
848
849 case BRepLib_DifferentPointsOnClosedCurve:
850 return BRepBuilderAPI_DifferentPointsOnClosedCurve;
851
852 case BRepLib_PointWithInfiniteParameter:
853 return BRepBuilderAPI_PointWithInfiniteParameter;
854
855 case BRepLib_DifferentsPointAndParameter:
856 return BRepBuilderAPI_DifferentsPointAndParameter;
857
858 case BRepLib_LineThroughIdenticPoints:
859 return BRepBuilderAPI_LineThroughIdenticPoints;
860
861 }
862
863 // portage WNT
864 return BRepBuilderAPI_EdgeDone;
865}
866
867//=======================================================================
868//function : Edge
869//purpose :
870//=======================================================================
871
872const TopoDS_Edge& BRepBuilderAPI_MakeEdge::Edge()const
873{
874 return myMakeEdge.Edge();
875}
876
877
878//=======================================================================
879//function : Vertex1
880//purpose :
881//=======================================================================
882
883const TopoDS_Vertex& BRepBuilderAPI_MakeEdge::Vertex1()const
884{
885 return myMakeEdge.Vertex1();
886}
887
888
889//=======================================================================
890//function : Vertex2
891//purpose :
892//=======================================================================
893
894const TopoDS_Vertex& BRepBuilderAPI_MakeEdge::Vertex2()const
895{
896 return myMakeEdge.Vertex2();
897}
898
899
900
901//=======================================================================
902//function : operator
903//purpose :
904//=======================================================================
905
906BRepBuilderAPI_MakeEdge::operator TopoDS_Edge() const
907{
908 return Edge();
909}