b311480e |
1 | -- Created on: 1993-03-02 |
2 | -- Created by: Philippe DAUTRY |
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 | |
17 | class SurfaceOfRevolution from PGeom inherits SweptSurface from PGeom |
18 | |
19 | ---Purpose : This class defines a complete surface of |
20 | -- revolution. The surface is obtained by rotating a |
21 | -- curve a complete revolution about an axis. The |
22 | -- curve and the axis must be in the same plane. |
23 | -- |
24 | ---See Also : SurfaceOfRevolution from Geom. |
25 | |
26 | uses Dir from gp, |
27 | Pnt from gp, |
28 | Curve from PGeom, |
29 | SurfaceForm from GeomAbs, |
30 | Shape from GeomAbs |
31 | |
32 | is |
33 | |
34 | |
6e33d3ce |
35 | Create returns SurfaceOfRevolution from PGeom; |
7fd59977 |
36 | ---Purpose: Creates a SurfaceOfRevolution with default values. |
37 | ---Level: Internal |
38 | |
39 | |
40 | Create ( |
41 | aBasisCurve : Curve from PGeom; |
42 | aDirection : Dir from gp; |
43 | aLocation : Pnt from gp) |
6e33d3ce |
44 | returns SurfaceOfRevolution from PGeom; |
7fd59977 |
45 | ---Purpose: Creates a SurfaceOfRevolution with these values. |
46 | ---Level: Internal |
47 | |
48 | |
49 | Location (me : mutable; aLocation : Pnt from gp); |
50 | ---Purpose : Set the value of the field location with <aLocation>. |
51 | ---Level: Internal |
52 | |
53 | |
54 | Location (me) returns Pnt from gp; |
55 | ---Purpose : Returns the value of the field location. |
56 | ---Level: Internal |
57 | |
58 | |
59 | fields |
60 | |
61 | location : Pnt from gp; |
62 | |
63 | end; |