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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
|
-- File: TopOpeBRepDS_HDataStructure.cdl
-- Created: Thu Jun 17 11:36:57 1993
-- Author: Jean Yves LEBEY
-- <jyl@zerox>
---Copyright: Matra Datavision 1993
class HDataStructure from TopOpeBRepDS inherits TShared from MMgt
uses
AsciiString from TCollection,
Orientation from TopAbs,
ShapeEnum from TopAbs,
ListIteratorOfListOfShape from TopTools,
OStream from Standard,
Shape from TopoDS,
SurfaceIterator from TopOpeBRepDS,
CurveIterator from TopOpeBRepDS,
PointIterator from TopOpeBRepDS,
DataStructure from TopOpeBRepDS,
Surface from TopOpeBRepDS,
Curve from TopOpeBRepDS,
Point from TopOpeBRepDS,
Kind from TopOpeBRepDS,
Config from TopOpeBRepDS,
Check from TopOpeBRepDS,
Interference from TopOpeBRepDS,
ListOfInterference from TopOpeBRepDS,
ListIteratorOfListOfInterference from TopOpeBRepDS
is
Create returns mutable HDataStructure from TopOpeBRepDS;
AddAncestors(me : mutable; S : Shape from TopoDS);
AddAncestors(me : mutable; S : Shape from TopoDS;
T1,T2 : ShapeEnum from TopAbs)
---Purpose: Update the data structure with shapes of type T1
-- containing a subshape of type T2 which is stored
-- in the DS.
-- Used by the previous one.
is static;
Complete(me : mutable)
---Purpose: perform post processing of the DS.
is static;
ChkIntg(me : mutable)
---Purpose: Check the integrity of the DS
is static;
DS(me) returns DataStructure from TopOpeBRepDS
---C++: return const &
is static;
ChangeDS(me : mutable) returns DataStructure from TopOpeBRepDS
---C++: return &
is static;
--
-- The new geometries
--
NbSurfaces(me) returns Integer
is static;
NbCurves(me) returns Integer
is static;
NbPoints(me) returns Integer
is static;
Surface(me; I : Integer) returns Surface from TopOpeBRepDS
---Purpose: Returns the surface of index <I>.
---C++: return const &
is static;
SurfaceCurves(me; I : Integer) returns CurveIterator from TopOpeBRepDS
---Purpose: Returns an iterator on the curves on the surface
-- <I>.
is static;
Curve(me; I : Integer) returns Curve from TopOpeBRepDS
---Purpose: Returns the Curve of index <I>.
---C++: return const &
is static;
ChangeCurve(me : mutable ; I : Integer) returns Curve from TopOpeBRepDS
---Purpose: Returns the Curve of index <I>.
--
---C++: return &
is static;
CurvePoints(me; I : Integer) returns PointIterator from TopOpeBRepDS
---Purpose: Returns an iterator on the points on the curve
-- <I>.
is static;
Point(me; I : Integer) returns Point from TopOpeBRepDS
---Purpose: Returns the point of index <I>.
---C++: return const &
is static;
--
-- The topologies
--
NbShapes(me) returns Integer
is static;
Shape(me; I : Integer;
FindKeep : Boolean = Standard_True)
returns Shape from TopoDS
---Purpose: Returns the shape of index <I> in the DS
---C++: return const &
is static;
Shape(me; S : Shape from TopoDS;
FindKeep : Boolean = Standard_True)
returns Integer from Standard
---Purpose: Returns the index of shape <S> in the DS
-- returns 0 if <S> is not in the DS
is static;
--
-- Geometry attached to topology
--
HasGeometry(me; S : Shape from TopoDS) returns Boolean
---Purpose: Returns True if <S> has new geometries.
is static;
HasShape(me; S : Shape from TopoDS;
FindKeep : Boolean = Standard_True)
returns Boolean
---Purpose: Returns True if <S> has new geometries (SOLID,FACE,EDGE)
-- or if <S> (SHELL,WIRE) has sub-shape (FACE,EDGE)
-- with new geometries
is static;
HasSameDomain(me; S : Shape from TopoDS;
FindKeep : Boolean = Standard_True)
---Purpose: Returns True if <S> share a geometrical domain with
-- some other shapes.
returns Boolean is static;
SameDomain(me; S : Shape from TopoDS)
returns ListIteratorOfListOfShape from TopTools
---Purpose: Returns an iterator on the SameDomain shapes attached
-- to the shape <S>.
is static;
SameDomainOrientation(me; S : Shape from TopoDS)
returns Config from TopOpeBRepDS
---Purpose: Returns orientation of shape <S> compared with its
-- reference shape
is static;
SameDomainReference(me; S : Shape from TopoDS)
returns Integer from Standard
---Purpose: Returns orientation of shape <S> compared with its
-- reference shape
is static;
SolidSurfaces(me; S : Shape from TopoDS)
returns SurfaceIterator from TopOpeBRepDS
---Purpose: Returns an iterator on the surfaces attached to the
-- solid <S>.
is static;
SolidSurfaces(me; I : Integer from Standard)
returns SurfaceIterator from TopOpeBRepDS
---Purpose: Returns an iterator on the surfaces attached to the
-- solid <I>.
is static;
FaceCurves(me; F : Shape from TopoDS)
returns CurveIterator from TopOpeBRepDS
---Purpose: Returns an iterator on the curves attached to the
-- face <F>.
is static;
FaceCurves(me; I : Integer from Standard)
returns CurveIterator from TopOpeBRepDS
---Purpose: Returns an iterator on the curves attached to the
-- face <I>.
is static;
EdgePoints(me; E : Shape from TopoDS)
returns PointIterator from TopOpeBRepDS
---Purpose: Returns an iterator on the points attached to the
-- edge <E>.
is static;
MakeCurve(me : mutable;
C1 : Curve from TopOpeBRepDS;
C2 : in out Curve from TopOpeBRepDS)
returns Integer from Standard
is static;
RemoveCurve(me : mutable; iC : Integer from Standard)
is static;
RemoveShape(me : mutable; iS : Integer from Standard)
is static;
NbGeometry(me; K : Kind from TopOpeBRepDS)
returns Integer from Standard is static;
NbTopology(me; K : Kind from TopOpeBRepDS)
returns Integer from Standard is static;
NbTopology(me)
returns Integer from Standard is static;
EdgesSameParameter(me)
returns Boolean from Standard is static;
---Purpose: returns True if all the edges stored as shapes in the DS
-- are SameParameter, otherwise False.
SortOnParameter(me; L1 : ListOfInterference from TopOpeBRepDS;
L2 : out ListOfInterference from TopOpeBRepDS)
is static;
SortOnParameter(me; L : in out ListOfInterference from TopOpeBRepDS)
is static;
MinMaxOnParameter(me; L : ListOfInterference from TopOpeBRepDS;
Min,Max : out Real from Standard)
is static;
ScanInterfList(me;
IT : in out ListIteratorOfListOfInterference from TopOpeBRepDS;
PDS : Point from TopOpeBRepDS)
---Purpose:
-- Search, among a list of interferences accessed by the iterator
-- <IT>, a geometry <G> whose 3D point is identical to the 3D point
-- of the TheDSPoint <PDS>.
-- returns True if such an interference has been found, False else.
-- if True, iterator It points (by the Value() method) on the first
-- interference accessing an identical 3D point.
returns Boolean from Standard
is static;
GetGeometry(me;
IT : in out ListIteratorOfListOfInterference from TopOpeBRepDS;
PDS : Point from TopOpeBRepDS;
G : out Integer from Standard;
K : out Kind from TopOpeBRepDS)
---Purpose:
-- Get the geometry of a DS point <PDS>.
-- Search for it with ScanInterfList (previous method).
-- if found, set <G,K> to the geometry,kind of the interference found.
-- returns the value of ScanInterfList().
returns Boolean from Standard
is static;
StoreInterference(me : mutable;
I : Interference from TopOpeBRepDS;
LI : in out ListOfInterference from TopOpeBRepDS;
str : AsciiString from TCollection = "");
---Purpose:
-- Add interference <I> to list <LI>.
StoreInterference(me : mutable; I : Interference from TopOpeBRepDS;
S : Shape from TopoDS;
str : AsciiString from TCollection = "");
---Purpose:
-- Add interference <I> to list of interference of shape <S>.
StoreInterference(me : mutable; I : Interference from TopOpeBRepDS;
IS : Integer;
str : AsciiString from TCollection = "");
---Purpose:
-- Add interference <I> to list of interference of shape <IS>.
StoreInterferences(me : mutable; LI : ListOfInterference from TopOpeBRepDS;
S : Shape from TopoDS;
str : AsciiString from TCollection = "");
StoreInterferences(me : mutable; LI : ListOfInterference from TopOpeBRepDS;
IS : Integer;
str : AsciiString from TCollection = "");
ClearStoreInterferences(me : mutable; LI : ListOfInterference from TopOpeBRepDS;
S : Shape from TopoDS;
str : AsciiString from TCollection = "");
ClearStoreInterferences(me : mutable; LI : ListOfInterference from TopOpeBRepDS;
IS : Integer;
str : AsciiString from TCollection = "");
fields
myDS : DataStructure from TopOpeBRepDS;
myEdgesSameParameter : Boolean from Standard;
-- myAscii : to avoid bug WOK (incomplete hxx incomplete for HDatatStructure users)
myAscii : AsciiString from TCollection;
end HDataStructure from TopOpeBRepDS;
|