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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
-- File: PTopoDS.cdl
-- Created: Mon Mar 8 19:32:02 1993
-- Author: Remi LEQUETTE
-- <rle@phobox>
-- Update: Frederic Maupas
-- <fma@pronox>
---Copyright: Matra Datavision 1993
package PTopoDS
---Purpose: The package PTopoDS provides persistent classes to
-- store Topological Data Structures in Data Base.
--
-- The structure of this persistent topology is
-- similar to the transient topology (see its
-- documentation for more comprehension of this one).
-- But some differences occure:
--
-- * The class Model and derivatives disappear;
--
-- * The "free" information disappears, because a
-- TShape stored in the Data Base is always "frozen";
--
-- * The class HShape inherits from ExternShareable from
-- ObjMgt, so that an intance of HShape may be
-- shared by a TShape even if the HShape is not in the
-- same Container.
--
-- * The class Shape1 inherits from Storable from
-- Standard.
--
-- Note that the use of this topology is managed by
-- the package MgtTopoDS.
--
-- About the question of "Location", see the package
-- PTopLoc itself; about naming, referencing and
-- using persistent Shapes outsing the topological
-- world, see the package TopoDB.
uses
ObjMgt,
Standard,
TopAbs, -- basic enumerations : ShapeEnum, Orientation
PTopLoc, -- Persistent local coordinate systems
PCollection,
TCollection
is
---Category: Old version of Shape/TShape.
-- ============================
class HShape;
---Purpose: A reference (even outside the same container) to a
-- Topological shape with Location, Orientation.
deferred class TShape;
-- inherits ExternShareable from ObjMgt
---Purpose: A topological shape is a structure made from other
-- shapes. This is a deferred class used to support
-- topological objects.
deferred class TVertex;
---Purpose: A TVertex is a topological point in two or three
-- dimensions.
class Vertex;
---Purpose: A Vertex is a TVertex with a Location and an
-- Orientation.
-- It inherits HShape
deferred class TEdge;
---Purpose: A topological part of a curve in 2D or 3D, the
-- boundary is a set of oriented Vertices.
class Edge;
---Purpose: A Edge is a TEdge with a Location and an
-- Orientation.
-- It inherits HShape
class TWire;
---Purpose: A set of Edges making a wire structure, it can be
-- a wireframe or a composite line.
class Wire;
---Purpose: A Wire is a TWire with a Location and an
-- Orientation.
-- It inherits HShape
class TFace;
---Purpose: A topological part of a surface or of the 2D
-- space. The boundary is a set of wires and edges.
class Face;
---Purpose: A Face is a TFace with a Location and an
-- Orientation.
-- It inherits HShape
class TShell;
---Purpose: A set of Faces or Shells, a topological surface or
-- any faces structure.
class Shell;
---Purpose: A Shell is a TShell with a Location and an
-- Orientation.
-- It inherits HShape
class TSolid;
---Purpose: A Topological part of 3D space, bounded by Shells
-- and Faces.
class Solid;
---Purpose: A Solid is a TSolid with a Location and an
-- Orientation.
-- It inherits HShape
class TCompSolid;
---Purpose: A structure of Solids sharing Faces.
class CompSolid;
---Purpose: A CompSolid is a TCompSolid with a Location and an
-- Orientation.
-- It inherits HShape
class TCompound;
---Purpose: A TCompound is an all-purpose set of Shapes.
class Compound;
---Purpose: A Compound is a TCompound with a Location and an
-- Orientation.
-- It inherits HShape
class HArray1OfHShape instantiates HArray1 from PCollection
(HShape from PTopoDS);
---Category: New version of Shape/TShape.
-- ============================
class Shape1;
---Purpose: A reference to a Topological TShape with Location,
-- Orientation.
deferred class TShape1;
-- inherits ExternShareable from ObjMgt
---Purpose: A topological shape is a structure made from other
-- shapes. This is a deferred class used to support
-- topological objects.
deferred class TVertex1;
---Purpose: A TVertex is a topological point in two or three
-- dimensions.
deferred class TEdge1;
---Purpose: A topological part of a curve in 2D or 3D, the
-- boundary is a set of oriented Vertices.
class TWire1;
---Purpose: A set of Edges making a wire structure, it can be
-- a wireframe or a composite line.
class TFace1;
---Purpose: A topological part of a surface or of the 2D
-- space. The boundary is a set of wires and edges.
class TShell1;
---Purpose: A set of Faces or Shells, a topological surface or
-- any faces structure.
class TSolid1;
---Purpose: A Topological part of 3D space, bounded by Shells
-- and Faces.
class TCompSolid1;
---Purpose: A structure of Solids sharing Faces.
class TCompound1;
---Purpose: A TCompound is an all-purpose set of Shapes.
class HArray1OfShape1 instantiates HArray1 from PCollection
(Shape1 from PTopoDS);
end PTopoDS;
|