blob: 969ad646b4668672c29862142884787207ff2f4f (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
--
-- File : CylindricalSurface.cdl
-- Created : Sat 9 Jan 1993
-- Author : CKY / Contract Toubro-Larsen ( SIVA )
--
---Copyright : MATRA-DATAVISION 1993
--
class CylindricalSurface from IGESSolid inherits IGESEntity
---Purpose: defines CylindricalSurface, Type <192> Form Number <0,1>
-- in package IGESSolid
uses
Point from IGESGeom,
Direction from IGESGeom,
Pnt from gp
is
Create returns mutable CylindricalSurface;
-- Specific Methods pertaining to the class
Init (me : mutable;
aLocation : Point;
anAxis : Direction;
aRadius : Real;
aRefdir : Direction);
---Purpose : This method is used to set the fields of the class
-- CylindricalSurface
-- - aLocation : the location of the point on axis
-- - anAxis : the direction of the axis
-- - aRadius : the radius at the axis point
-- - aRefdir : the reference direction (parametrised surface)
-- default NULL (unparametrised surface)
LocationPoint(me) returns Point;
---Purpose : returns the point on the axis
Axis(me) returns Direction;
---Purpose : returns the direction on the axis
Radius(me) returns Real;
---Purpose : returns the radius at the axis point
IsParametrised(me) returns Boolean;
---Purpose : returns whether the surface is parametrised or not
ReferenceDir(me) returns Direction;
---Purpose : returns the reference direction only for parametrised surface
-- else returns NULL
fields
--
-- Class : IGESSolid_CylindricalSurface
--
-- Purpose : Declaration of variables specific to the definition
-- of the Class CylindricalSurface.
--
-- Reminder : A CylindricalSurface instance is defined by :
-- a point on the axis of the cylinder(Location), the direction
-- of the axis of the cylinder(Axis) and a radius(Radius).In case
-- of parametrised surface, a reference direction (RefDir) is
-- provided.
theLocationPoint : Point;
-- the location of the point on the axis
theAxis : Direction;
-- the direction of the axis of the surface
theRadius : Real;
-- the radius at the cylinder
theRefDir : Direction;
-- the reference direction (for parametrised surface)
end CylindricalSurface;
|