b311480e |
1 | // Created on: 1993-04-07 |
2 | // Created by: Laurent BUCHARD |
3 | // Copyright (c) 1993-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
7fd59977 |
17 | |
42cf5bc1 |
18 | #include <IntCurveSurface_IntersectionPoint.hxx> |
7fd59977 |
19 | |
20 | //================================================================================ |
d533dafb |
21 | IntCurveSurface_IntersectionPoint::IntCurveSurface_IntersectionPoint() |
22 | : myUSurf(0.0), |
23 | myVSurf(0.0), |
24 | myUCurv(0.0) |
25 | { |
26 | } |
7fd59977 |
27 | //================================================================================ |
28 | IntCurveSurface_IntersectionPoint::IntCurveSurface_IntersectionPoint(const gp_Pnt& P, |
29 | const Standard_Real USurf, |
30 | const Standard_Real VSurf, |
31 | const Standard_Real UCurv, |
32 | const IntCurveSurface_TransitionOnCurve TrOnCurv): |
33 | myP(P),myUSurf(USurf),myVSurf(VSurf),myUCurv(UCurv),myTrOnCurv(TrOnCurv) |
34 | { |
35 | } |
36 | //================================================================================ |
37 | void IntCurveSurface_IntersectionPoint::SetValues(const gp_Pnt& P, |
38 | const Standard_Real USurf, |
39 | const Standard_Real VSurf, |
40 | const Standard_Real UCurv, |
41 | const IntCurveSurface_TransitionOnCurve TrOnCurv) { |
42 | myP=P; |
43 | myUSurf=USurf; |
44 | myVSurf=VSurf; |
45 | myUCurv=UCurv; |
46 | myTrOnCurv=TrOnCurv; |
47 | } |
48 | //================================================================================ |
49 | void IntCurveSurface_IntersectionPoint::Values(gp_Pnt& P, |
50 | Standard_Real& USurf, |
51 | Standard_Real& VSurf, |
52 | Standard_Real& UCurv, |
53 | IntCurveSurface_TransitionOnCurve& TrOnCurv) const |
54 | { |
55 | P=myP; |
56 | USurf=myUSurf; |
57 | VSurf=myVSurf; |
58 | UCurv=myUCurv; |
59 | TrOnCurv=myTrOnCurv; |
60 | } |
61 | //================================================================================ |
62 | void IntCurveSurface_IntersectionPoint::Dump() const { |
04232180 |
63 | std::cout<<"IntersectionPoint: P("<<myP.X()<<","<<myP.Y()<<","<<myP.Z()<<")"<<std::endl; |
64 | std::cout<<" : USurf("<<myUSurf<<") VSurf("<<myVSurf<<") UCurve("<<myUCurv<<")"<<std::endl; |
65 | std::cout<<" : TransitionOnSurf "; |
7fd59977 |
66 | |
67 | switch(myTrOnCurv) { |
04232180 |
68 | case IntCurveSurface_Tangent: std::cout<<" Tangent "; break; |
69 | case IntCurveSurface_In: std::cout<<" In "; break; |
70 | case IntCurveSurface_Out: std::cout<<" Out "; break; |
7fd59977 |
71 | |
04232180 |
72 | default: std::cout<< " XXXXX "; |
7fd59977 |
73 | } |
04232180 |
74 | std::cout<<std::endl; |
7fd59977 |
75 | } |
76 | |
77 | |
78 | |