Integration of OCCT 6.5.0 from SVN
[occt.git] / src / gce / gce_MakeCylinder.cdl
CommitLineData
7fd59977 1-- File: MakeCylinder.cdl
2-- Created: Wed Aug 26 14:30:57 1992
3-- Author: Remi GILET
4-- <reg@topsn3>
5---Copyright: Matra Datavision 1992
6
7class MakeCylinder from gce inherits Root from gce
8
9 ---Purpose : This class implements the following algorithms used
10 -- to create a Cylinder from gp.
11 -- * Create a Cylinder coaxial to another and passing
12 -- through a point.
13 -- * Create a Cylinder coaxial to another at a distance
14 -- <Dist>.
15 -- * Create a Cylinder with 3 points.
16 -- * Create a Cylinder by its axis and radius.
17 -- * Create a cylinder by its circular base.
18
19uses Pnt from gp,
20 Ax1 from gp,
21 Ax2 from gp,
22 Circ from gp,
23 Cylinder from gp,
24 Real from Standard
25
26raises NotDone from StdFail
27
28is
29
30Create (A2 : Ax2 from gp ;
31 Radius : Real from Standard) returns MakeCylinder;
32 --- Purpose :<A2> is the local cartesian coordinate system of <me>.
33 -- The status is "NegativeRadius" if R < 0.0
34
35Create(Cyl : Cylinder from gp;
36 Point : Pnt from gp) returns MakeCylinder;
37 ---Purpose : Makes a Cylinder from gp <TheCylinder> coaxial to another
38 -- Cylinder <Cylinder> and passing through a Pnt <Point>.
39
40Create(Cyl : Cylinder from gp ;
41 Dist : Real from Standard) returns MakeCylinder;
42 ---Purpose : Makes a Cylinder from gp <TheCylinder> coaxial to another
43 -- Cylinder <Cylinder> at the distance <Dist> which can
44 -- be greater or lower than zero.
45 -- The radius of the result is the absolute value of the
46 -- radius of <Cyl> plus <Dist>
47
48Create(P1 : Pnt from gp;
49 P2 : Pnt from gp;
50 P3 : Pnt from gp) returns MakeCylinder;
51 ---Purpose : Makes a Cylinder from gp <TheCylinder> with 3 points
52 -- <P1>,<P2>,<P3>.
53 -- Its axis is <P1P2> and its radius is the distance
54 -- between <P3> and <P1P2>
55
56Create(Axis : Ax1 from gp ;
57 Radius : Real from Standard) returns MakeCylinder;
58 ---Purpose: Makes a Cylinder by its axis <Axis> and radius <Radius>.
59
60Create(Circ : Circ from gp) returns MakeCylinder;
61 ---Purpose: Makes a Cylinder by its circular base.
62 -- Warning
63 -- If an error occurs (that is, when IsDone returns
64 -- false), the Status function returns:
65 -- - gce_NegativeRadius if:
66 -- - Radius is less than 0.0, or
67 -- - Dist is negative and has an absolute value
68 -- which is greater than the radius of Cyl; or
69 -- - gce_ConfusedPoints if points P1 and P2 are coincident.
70
71Value(me) returns Cylinder from gp
72 raises NotDone
73 is static;
74 ---C++: return const&
75 ---Purpose: Returns the constructed cylinder.
76 -- Exceptions StdFail_NotDone if no cylinder is constructed.
77
78Operator(me) returns Cylinder from gp
79 is static;
80 ---C++: return const&
81 ---C++: alias "Standard_EXPORT operator gp_Cylinder() const;"
82
83fields
84
85 TheCylinder : Cylinder from gp;
86 --The solution from gp.
87
88end MakeCylinder;