7fd59977 |
1 | -- File: BRepPrimAPI_MakeRevolution.cdl |
2 | -- Created: Thu Jul 22 11:25:59 1993 |
3 | -- Author: Remi LEQUETTE |
4 | -- <rle@nonox> |
5 | ---Copyright: Matra Datavision 1993 |
6 | |
7 | |
8 | |
9 | class MakeRevolution from BRepPrimAPI inherits MakeOneAxis from BRepPrimAPI |
10 | |
11 | ---Purpose: Describes functions to build revolved shapes. |
12 | -- A MakeRevolution object provides a framework for: |
13 | -- - defining the construction of a revolved shape, |
14 | -- - implementing the construction algorithm, and |
15 | -- - consulting the result. |
16 | |
17 | uses |
18 | Ax2 from gp, |
19 | Curve from Geom, |
20 | OneAxis from BRepPrim, |
21 | Revolution from BRepPrim |
22 | |
23 | raises |
24 | DomainError from Standard |
25 | |
26 | is |
27 | Create(Meridian : Curve from Geom) |
28 | returns MakeRevolution from BRepPrimAPI |
29 | ---Purpose: Make a revolution body by rotating a curve around Z. |
30 | ---Level: Public |
31 | raises |
32 | DomainError from Standard; -- if M is not in a plane containing Z. |
33 | |
34 | Create(Meridian : Curve from Geom; angle : Real) |
35 | returns MakeRevolution from BRepPrimAPI |
36 | ---Purpose: Make a revolution body by rotating a curve around Z. |
37 | ---Level: Public |
38 | raises |
39 | DomainError from Standard; -- if M is not in a plane containing Z. |
40 | |
41 | Create(Meridian : Curve from Geom; VMin, VMax : Real) |
42 | returns MakeRevolution from BRepPrimAPI |
43 | ---Purpose: Make a revolution body by rotating a curve around Z. |
44 | ---Level: Public |
45 | raises |
46 | DomainError from Standard; -- if M is not in a plane containing Z. |
47 | |
48 | Create(Meridian : Curve from Geom; VMin, VMax, angle : Real) |
49 | returns MakeRevolution from BRepPrimAPI |
50 | ---Purpose: Make a revolution body by rotating a curve around Z. |
51 | ---Level: Public |
52 | raises |
53 | DomainError from Standard; -- if M is not in a plane containing Z. |
54 | |
55 | Create(Axes : Ax2 from gp; Meridian : Curve from Geom) |
56 | returns MakeRevolution from BRepPrimAPI |
57 | ---Purpose: Make a revolution body by rotating a curve around Z. |
58 | ---Level: Public |
59 | raises |
60 | DomainError from Standard; -- if M is not in a plane containing Z. |
61 | |
62 | Create(Axes : Ax2 from gp; Meridian : Curve from Geom; angle : Real) |
63 | returns MakeRevolution from BRepPrimAPI |
64 | ---Purpose: Make a revolution body by rotating a curve around Z. |
65 | ---Level: Public |
66 | raises |
67 | DomainError from Standard; -- if M is not in a plane containing Z. |
68 | |
69 | Create(Axes : Ax2 from gp; Meridian : Curve from Geom; VMin, VMax : Real) |
70 | returns MakeRevolution from BRepPrimAPI |
71 | ---Purpose: Make a revolution body by rotating a curve around Z. |
72 | ---Level: Public |
73 | raises |
74 | DomainError from Standard; -- if M is not in a plane containing Z. |
75 | |
76 | Create(Axes : Ax2 from gp; Meridian : Curve from Geom; VMin, VMax, angle : Real) |
77 | returns MakeRevolution from BRepPrimAPI |
78 | ---Purpose: Make a revolution body by rotating a curve around Z. |
79 | ---Level: Public |
80 | raises |
81 | DomainError from Standard; -- if M is not in a plane containing Z. |
82 | ---Purpose: For all algorithms the resulting shape is composed of |
83 | -- - a lateral revolved face, |
84 | -- - two planar faces in planes parallel to the plane z = |
85 | -- 0, and passing by the extremities of the revolved |
86 | -- portion of Meridian, if these points are not on the Z |
87 | -- axis (in case of a complete revolved shape, these faces are circles), |
88 | -- - and in the case of a portion of a revolved shape, two |
89 | -- planar faces to close the shape (in the planes u = 0 and u = angle). |
90 | |
91 | OneAxis(me : in out) returns Address; |
92 | ---Purpose: Returns the algorithm. |
93 | ---Level: Advanced |
94 | |
95 | Revolution(me : in out) returns Revolution from BRepPrim |
96 | ---Purpose: Returns the algorithm. |
97 | -- |
98 | ---C++: return & |
99 | ---Level: Public |
100 | is static; |
101 | |
102 | fields |
103 | |
104 | myRevolution : Revolution from BRepPrim; |
105 | |
106 | end MakeRevolution; |