blob: 70fec661631f539ffafb7dd305a9cf8b34fbaae9 (
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
82
83
84
85
|
--
-- File : ManifoldSolid.cdl
-- Created : Sat 9 Jan 1993
-- Author : CKY / Contract Toubro-Larsen ( SIVA )
--
---Copyright : MATRA-DATAVISION 1993
--
class ManifoldSolid from IGESSolid inherits IGESEntity
---Purpose: defines ManifoldSolid, Type <186> Form Number <0>
-- in package IGESSolid
-- A manifold solid is a bounded, closed, and finite volume
-- in three dimensional Euclidean space
uses
Shell from IGESSolid,
HArray1OfShell from IGESSolid,
HArray1OfInteger from TColStd
raises DimensionMismatch, OutOfRange
is
Create returns mutable ManifoldSolid;
-- Specific Methods pertaining to the class
Init (me : mutable;
aShell : Shell;
shellflag : Boolean;
voidShells : HArray1OfShell;
voidShellFlags : HArray1OfInteger)
raises DimensionMismatch;
---Purpose : This method is used to set the fields of the class
-- ManifoldSolid
-- - aShell : pointer to the shell
-- - shellflag : orientation flag of shell
-- - voidShells : the void shells
-- - voidShellFlags : orientation of the void shells
-- raises exception if length of voidShells and voidShellFlags
-- do not match
Shell(me) returns Shell;
---Purpose : returns the Shell entity which is being referred
OrientationFlag(me) returns Boolean;
---Purpose : returns the orientation flag of the shell
NbVoidShells(me) returns Integer;
---Purpose : returns the number of void shells
VoidShell(me; Index : Integer) returns Shell
raises OutOfRange;
---Purpose : returns Index'th void shell.
-- raises exception if Index <= 0 or Index > NbVoidShells()
VoidOrientationFlag(me; Index : Integer) returns Boolean
raises OutOfRange;
---Purpose : returns Index'th orientation flag.
-- raises exception if Index <= 0 or Index > NbVoidShells()
fields
--
-- Class : IGESSolid_ManifoldSolid
--
-- Purpose : Declaration of variables specific to the definition
-- of the Class ManifoldSolid.
--
-- Reminder : A ManifoldSolid instance is defined by :
-- a shell bounded by more shells
theShell : Shell;
theOrientationFlag : Boolean;
-- the orientation flag of the shell w.r.t. underlying face
-- (True = agrees)
theVoidShells : HArray1OfShell;
theOrientFlags : HArray1OfInteger;
end ManifoldSolid;
|