blob: 3c7d5155e743395e077f110587a6384af8025dba (
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
|
-- File: Vrml_Sphere.cdl
-- Created: Tue Feb 4 16:11:10 1997
-- Author: Alexander BRIVIN
-- <brivin@minox.nizhny.matra-dtv.fr>
---Copyright: Matra Datavision 1997
class Sphere from Vrml
---Purpose: defines a Sphere node of VRML specifying geometry shapes.
-- This node represents a sphere.
-- By default , the sphere is centred at (0,0,0) and has a radius of 1.
is
Create ( aRadius : Real from Standard = 1 )
returns Sphere from Vrml;
SetRadius ( me : in out; aRadius : Real from Standard );
Radius ( me ) returns Real from Standard;
Print ( me; anOStream: in out OStream from Standard) returns OStream from Standard;
---C++: return &
fields
myRadius : Real from Standard; -- Radius of sphere
end Sphere;
|