7fd59977 |
1 | // -- File: IntCurveSurface_IntersectionSegment.cdl |
2 | // -- Created: Wed Apr 7 16:47:10 1993 |
3 | // -- Author: Laurent BUCHARD |
4 | // -- <lbr@sdsun2> |
5 | // ---Copyright: Matra Datavision 1993 |
6 | |
7 | |
8 | #include <IntCurveSurface_IntersectionSegment.ixx> |
9 | |
10 | |
11 | IntCurveSurface_IntersectionSegment::IntCurveSurface_IntersectionSegment() |
12 | { } |
13 | //================================================================================ |
14 | IntCurveSurface_IntersectionSegment::IntCurveSurface_IntersectionSegment(const IntCurveSurface_IntersectionPoint& P1, |
15 | const IntCurveSurface_IntersectionPoint& P2): |
16 | myP1(P1),myP2(P2) |
17 | { |
18 | } |
19 | //================================================================================ |
20 | void IntCurveSurface_IntersectionSegment::SetValues(const IntCurveSurface_IntersectionPoint& P1, |
21 | const IntCurveSurface_IntersectionPoint& P2) { |
22 | myP1 = P1; |
23 | myP2 = P2; |
24 | } |
25 | //================================================================================ |
26 | void IntCurveSurface_IntersectionSegment::Values(IntCurveSurface_IntersectionPoint& P1, |
27 | IntCurveSurface_IntersectionPoint& P2) const |
28 | { |
29 | P1 = myP1; |
30 | P2 = myP2; |
31 | } |
32 | //================================================================================ |
33 | void IntCurveSurface_IntersectionSegment::FirstPoint(IntCurveSurface_IntersectionPoint& P1) const { |
34 | P1 = myP1; |
35 | } |
36 | //================================================================================ |
37 | void IntCurveSurface_IntersectionSegment::SecondPoint(IntCurveSurface_IntersectionPoint& P2) const { |
38 | P2 = myP2; |
39 | } |
40 | //================================================================================ |
41 | const IntCurveSurface_IntersectionPoint & |
42 | IntCurveSurface_IntersectionSegment::FirstPoint() const { |
43 | return(myP1); |
44 | } |
45 | //================================================================================ |
46 | const IntCurveSurface_IntersectionPoint & |
47 | IntCurveSurface_IntersectionSegment::SecondPoint() const { |
48 | return(myP2); |
49 | } |
50 | //================================================================================ |
51 | void IntCurveSurface_IntersectionSegment::Dump() const { |
52 | cout<<"\nIntersectionSegment : "<<endl; |
53 | myP1.Dump(); |
54 | myP2.Dump(); |
55 | cout<<endl; |
56 | } |
57 | |