blob: 3614e9fb4be30ad2307a36c6f107aa996f6b91ce (
plain)
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
|
--
-- File : Sphere.cdl
-- Created : Sat 9 Jan 1993
-- Author : CKY / Contract Toubro-Larsen ( SIVA )
--
---Copyright : MATRA-DATAVISION 1993
--
class Sphere from IGESSolid inherits IGESEntity
---Purpose: defines Sphere, Type <158> Form Number <0>
-- in package IGESSolid
-- This defines a sphere with a center and radius
uses
Pnt from gp,
XYZ from gp
is
Create returns mutable Sphere;
-- Specific Methods pertaining to the class
Init (me : mutable;
aRadius : Real;
aCenter : XYZ);
---Purpose : This method is used to set the fields of the class Sphere
-- - aRadius : the radius of the sphere
-- - aCenter : the center point coordinates (default (0,0,0))
Radius (me) returns Real;
---Purpose : returns the radius of the sphere
Center (me) returns Pnt;
---Purpose : returns the center of the sphere
TransformedCenter (me) returns Pnt;
---Purpose : returns the center of the sphere after applying
-- TransformationMatrix
fields
--
-- Class : IGESSolid_Sphere
--
-- Purpose : Declaration of variables specific to the definition
-- of the Class Sphere.
--
-- Reminder : A Sphere instance is defined by :
-- its center (X1,Y1,Z1) and a radius (Radius) > 0
--
theRadius : Real;
-- the radius of the sphere
theCenter : XYZ;
-- the center point coordinates
end Sphere;
|