7fd59977 |
1 | // File: PGeom_ToroidalSurface.cxx |
2 | // Created: Thu Mar 4 10:55:31 1993 |
3 | // Author: Philippe DAUTRY |
4 | // <fid@sdsun2> |
5 | // Copyright: Matra Datavision 1993 |
6 | |
7 | |
8 | #include <PGeom_ToroidalSurface.ixx> |
9 | |
10 | //======================================================================= |
11 | //function : PGeom_ToroidalSurface |
12 | //purpose : |
13 | //======================================================================= |
14 | |
15 | PGeom_ToroidalSurface::PGeom_ToroidalSurface() |
16 | {} |
17 | |
18 | |
19 | //======================================================================= |
20 | //function : PGeom_ToroidalSurface |
21 | //purpose : |
22 | //======================================================================= |
23 | |
24 | PGeom_ToroidalSurface::PGeom_ToroidalSurface |
25 | (const gp_Ax3& aPosition, |
26 | const Standard_Real aMajorRadius, |
27 | const Standard_Real aMinorRadius) : |
28 | PGeom_ElementarySurface(aPosition), |
29 | majorRadius(aMajorRadius), |
30 | minorRadius(aMinorRadius) |
31 | {} |
32 | |
33 | |
34 | //======================================================================= |
35 | //function : MajorRadius |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | void PGeom_ToroidalSurface::MajorRadius(const Standard_Real aMajorRadius) |
40 | { majorRadius = aMajorRadius; } |
41 | |
42 | |
43 | //======================================================================= |
44 | //function : MajorRadius |
45 | //purpose : |
46 | //======================================================================= |
47 | |
48 | Standard_Real PGeom_ToroidalSurface::MajorRadius() const |
49 | { return majorRadius; } |
50 | |
51 | |
52 | //======================================================================= |
53 | //function : MinorRadius |
54 | //purpose : |
55 | //======================================================================= |
56 | |
57 | void PGeom_ToroidalSurface::MinorRadius(const Standard_Real aMinorRadius) |
58 | { minorRadius = aMinorRadius; } |
59 | |
60 | |
61 | //======================================================================= |
62 | //function : MinorRadius |
63 | //purpose : |
64 | //======================================================================= |
65 | |
66 | Standard_Real PGeom_ToroidalSurface::MinorRadius() const |
67 | { return minorRadius; } |