7fd59977 |
1 | #ifndef _Select3D_Pnt_HeaderFile |
2 | #define _Select3D_Pnt_HeaderFile |
3 | |
4 | #include<gp_Pnt.hxx> |
5 | #include<Standard_ShortReal.hxx> |
6 | #include<Select3D_Macro.hxx> |
7 | |
8 | struct Select3D_Pnt{ |
9 | |
10 | Standard_ShortReal x, y, z; |
11 | |
12 | inline operator gp_Pnt() const |
13 | { |
14 | return gp_Pnt(x, y, z); |
15 | } |
16 | |
17 | inline operator gp_XYZ() const |
18 | { |
19 | return gp_XYZ(x, y, z); |
20 | } |
21 | |
22 | inline gp_Pnt operator = (const gp_Pnt& thePnt) |
23 | { |
24 | x = DToF(thePnt.X()); |
25 | y = DToF(thePnt.Y()); |
26 | z = DToF(thePnt.Z()); |
27 | return *this; |
28 | } |
29 | |
30 | }; |
31 | |
32 | #endif |
33 | |