1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
--
-- File : ConeFrustum.cdl
-- Created : Sat 9 Jan 1993
-- Author : CKY / Contract Toubro-Larsen ( SIVA )
--
---Copyright : MATRA-DATAVISION 1993
--
class ConeFrustum from IGESSolid inherits IGESEntity
---Purpose: defines ConeFrustum, Type <156> Form Number <0>
-- in package IGESSolid
-- The Cone Frustum is defined by the center of the
-- larger circular face of the frustum, its radius, a unit
-- vector in the axis direction, a height in this direction
-- and a second circular face with radius which is lesser
-- than the first face.
uses
Pnt from gp,
Dir from gp,
XYZ from gp
is
Create returns mutable ConeFrustum;
-- Specific Methods pertaining to the class
Init (me : mutable;
Ht : Real;
R1 : Real;
R2 : Real;
Center : XYZ;
anAxis : XYZ);
---Purpose : This method is used to set the fields of the class
-- ConeFrustum
-- - Ht : the Height of cone
-- - R1 : Radius of the larger face
-- - R2 : Radius of the smaller face (default 0)
-- - Center : Center of the larger face (default (0,0,0))
-- - anAxis : Unit vector in axis direction (default (0,0,1))
Height (me) returns Real;
---Purpose : returns the height of the cone frustum
LargerRadius (me) returns Real;
---Purpose : returns the radius of the larger face of the cone frustum
SmallerRadius (me) returns Real;
---Purpose : returns the radius of the second face of the cone frustum
FaceCenter (me) returns Pnt;
---Purpose : returns the center of the larger face of the cone frustum
TransformedFaceCenter (me) returns Pnt;
---Purpose : returns the center of the larger face of the cone frustum
-- after applying TransformationMatrix
Axis (me) returns Dir;
---Purpose : returns the direction of the axis of the cone frustum
TransformedAxis (me) returns Dir;
---Purpose : returns the direction of the axis of the cone frustum
-- after applying TransformationMatrix
fields
--
-- Class : IGESSolid_ConeFrustum
--
-- Purpose : Declaration of variables specific to the definition
-- of the Class ConeFrustum.
--
-- Reminder : A ConeFrustum instance is defined by :
-- The Cone Frustum is defined by the center of the
-- larger circular face of the frustum(X1,Y1,Z1), its radius(R1),
-- a unit vector in the axis direction(I1,J1,K1),a height in this
-- direction(Height) and a second circular face with radius(R2)
-- R1 > R2
--
theHeight : Real;
theR1 : Real;
-- the radius of the larger face of the cone frustum
theR2 : Real;
-- the radius of the smaller face of the cone frustum
theFaceCenter : XYZ;
-- the larger face center coordinates
theAxis : XYZ;
-- the Unit vector in axis direction
end ConeFrustum;
|