summaryrefslogtreecommitdiff
path: root/src/BOP/BOP_ShellSolid.cdl
blob: 67eeb18e981a9feb6ad564ede3225b01bf7f9f95 (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
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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
-- File:	BOP_ShellSolid.cdl
-- Created:	Fri Nov  2 10:04:04 2001
-- Author:	Peter KURNEV
--		<pkv@irinox>
---Copyright:	 Matra Datavision 2001


class ShellSolid from BOP inherits Builder from BOP

	---Purpose: 
    	--- Performs  Boolean Operations  (BO) 
    	--  Common,Cut,Fuse for arguments of 
    	--  shell/solid type   
	---
uses
 
    DSFiller  from BOPTools, 
     
    WireEdgeSet  from BOP,   
    ShellFaceSet from BOP, 
    Operation    from BOP, 
    HistoryCollector from BOP,
     
    Shape from TopoDS,
    Edge  from TopoDS,
    Face  from TopoDS, 
    Shell from TopoDS,
    
    ListOfShape                      from TopTools,
    IndexedDataMapOfShapeListOfShape from TopTools, 
    IndexedMapOfShape                from TopTools, 
    DataMapOfShapeInteger            from TopTools,
    
    IndexedMapOfInteger from TColStd,

    StateOfShape        from BooleanOperations, 
    State               from TopAbs,
    --modified by NIZHNY-MKK  Tue Sep  7 11:37:57 2004
    ShapeEnum           from TopAbs,
    
    Orientation         from TopAbs 
    
is 
    
    Create   
    	returns  ShellSolid from BOP; 
    	---Purpose:  
    	--- Empty constructor;
    	---
    Do  (me:out) 
    	is  redefined; 	 
    	---Purpose:  
    	--- see base  classes, please
    	---
    DoWithFiller      (me:out; 
    	     aDSF: DSFiller from BOPTools) 
    	is  redefined; 
    	---Purpose:  
    	--- see base  classes, please
    	---
    Destroy (me: in out) 
    	is redefined; 
    	---C++: alias "Standard_EXPORT virtual ~BOP_ShellSolid(){Destroy();}"   
    	---Purpose:  
    	--- Destructor
    	---
    BuildResult (me:out) 
	is redefined ;	
    	---Purpose:  
    	--- see base  classes, please
    	---
    DoNewFaces(me: in out)
    	is  virtual; 
    	---Purpose:  
    	--- see base  classes, please
    	---
    Prepare(me:out)  
    --modified by NIZNHY-PKV Wed Sep 11 17:55:29 2002  f
   	 is virtual;--protected;   
    --modified by NIZNHY-PKV Wed Sep 11 17:55:32 2002  t		  
    	---Purpose: 
    	--- Provides some preparing steps of algorithm     
    	--- 1.  Compute the 3D-States 
    	--- 2.  Compute P-Curves for section- and split- edges      
    	--- 3.  Treat degenerated edges 
    	--- 4   Detect Same Domain faces   
    	---
    DetectSDFaces  (me:out) 
    	is protected; 
    	---Purpose:  
    	--- The algo to find SameDomain Faces    
    	--- among interferred ones 
    	---
    ---------------------------------------------- 
    --     
    --         W E S  C O M P O N E N T S  
    --     
    --            (for internal usage)    
    --     
    --     
    AddSplitPartsINOUT (me:out; 
    	    nF1  :Integer from Standard; 
    	    aWES :out WireEdgeSet from BOP) 
    	is protected;   
    --- 
    ---  WES components for an argument of SHELL type  
    --- 
    AddSectionPartsSh (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
    	    aWES :out WireEdgeSet from BOP) 
    	is protected ;  
	 
    AddSplitPartsONSh (me:out; 
    	    nF1  :Integer from Standard;  
    	    aWES :out WireEdgeSet from BOP) 
    	is protected;   

    AddPartsEFSh (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
	    anEMap  : out  IndexedMapOfShape from TopTools;	    	    			 
    	    aWES :out WireEdgeSet from BOP) 
    	is protected; 	  	
 	 
    AddINON2DPartsSh (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
    	    aWES :out WireEdgeSet from BOP) 
    	is protected;   	 
     
    AddINON2DPartsSh (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
    	    aWES :out WireEdgeSet from BOP; 
    	    anEMap  : out  IndexedMapOfShape from TopTools) 
    	is protected;    
    --		   
    AddPartsEFNonSDSh (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
	    anEMap  : out  IndexedMapOfShape from TopTools;	    	    			 
    	    aWES :out WireEdgeSet from BOP) 
    	is protected;    
	 
    AddPartsEENonSDSh (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
	    anEMap  : out  IndexedMapOfShape from TopTools;	    	    			 
    	    aWES :out WireEdgeSet from BOP) 
    	is protected;    	 
    --- 
    ---  WES components for an argument of SOLID type  
    ---  
    AddSectionPartsSo (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
    	    aWES :out WireEdgeSet from BOP)  
	is protected;     
	 
    AddSplitPartsON3DSo (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
    	    aWES :out WireEdgeSet from BOP)  
	 is protected;    
     
    AddSplitPartsONSo(me:out; 
    	    nF1  :Integer from Standard;  
    	    aMEFObj :IndexedDataMapOfShapeListOfShape from TopTools; 
    	    aMEFTool:IndexedDataMapOfShapeListOfShape from TopTools; 
    	    aWES :out WireEdgeSet from BOP)  
	is protected;    
	 
    AddPartsEFSo (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
    	    aMEFObj :IndexedDataMapOfShapeListOfShape from TopTools; 
    	    aMEFTool:IndexedDataMapOfShapeListOfShape from TopTools; 
	    anEMap  : out  IndexedMapOfShape from TopTools;	    	    			 
    	    aWES :out WireEdgeSet from BOP)  
	is protected;    
	 
    AddINON2DPartsSo (me:out; 
    	    iFF  :Integer from Standard; 
    	    nF1  :Integer from Standard; 
    	    nF2  :Integer from Standard; 
    	    aWES :out WireEdgeSet from BOP)  
	 is protected;    
	 
    AddPartsEFSDSo (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
    	    aMEFObj :IndexedDataMapOfShapeListOfShape from TopTools; 
    	    aMEFTool:IndexedDataMapOfShapeListOfShape from TopTools; 
    	    aWES :out WireEdgeSet from BOP) 
	 is protected;  	 
	  
    AddPartsEFNonSDSo (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
    	    aMEFObj :IndexedDataMapOfShapeListOfShape from TopTools; 
    	    aMEFTool:IndexedDataMapOfShapeListOfShape from TopTools;  
	    aFFInMap:IndexedMapOfInteger from TColStd;
	    anEMap  : out  IndexedMapOfShape from TopTools;	    	    			 
    	    aWES :out WireEdgeSet from BOP) 
	 is protected; 
	 
    AddPartsEENonSDSo (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
    	    aMEFObj :IndexedDataMapOfShapeListOfShape from TopTools; 
    	    aMEFTool:IndexedDataMapOfShapeListOfShape from TopTools;  
	    aFFInMap:IndexedMapOfInteger from TColStd;
	    anEMap  : out  IndexedMapOfShape from TopTools;	    	    			 
    	    aWES :out WireEdgeSet from BOP)   
    	 is protected;  

    AddPartsEESDSo (me:out; 
    	    nF1  :Integer from Standard; 
    	    iFF  :Integer from Standard; 
    	    aMEFObj :IndexedDataMapOfShapeListOfShape from TopTools; 
    	    aMEFTool:IndexedDataMapOfShapeListOfShape from TopTools;  
    	    aWES :out WireEdgeSet from BOP)   
    	 is protected;  

--modified by NIZHNY-MKK  Tue Sep  7 11:38:00 2004
    CheckArgTypes(myclass; theType1, theType2: ShapeEnum from TopAbs;
    	    	    	   theOperation: Operation from BOP) 
	 returns Boolean from Standard;  
    	---Purpose: 
    	--- Check the types of arguments.      
    	--- Returns  FALSE if types of arguments     
    	--- are non-valid to be  treated by the         
    	--- agorithm 
    
    CheckArgTypes(me) 
	 returns Boolean from Standard;  
    	---Purpose: 
    	--- Check the types of arguments.      
    	--- Returns  FALSE if types of arguments     
    	--- are non-valid to be  treated by the         
    	--- agorithm 
    	---
    Path(myclass; 
   	    aE:Shape from TopoDS; 
            aEFMap:  IndexedDataMapOfShapeListOfShape from TopTools;  
	    aFaces:  out IndexedMapOfShape from TopTools; 
	    aProcE:  out IndexedMapOfShape from TopTools) 
    	is protected; 
    	---Purpose: 
    	--- Internal usage  
    	---
    Orientation(myclass;  
    	    aE:  Edge from TopoDS; 
	    aF:  Face from TopoDS) 
	returns Orientation from TopAbs    
    	is protected;  
    	---Purpose: 
    	--- Internal usage
    	---
    OrientFacesOnShell (myclass; 
    	    aShell: Shell from TopoDS;  
	    aShellNew: out Shell from TopoDS) 
    	is protected; 
    	---Purpose: 
    	---
    	--- Internal usage 
    	---
    DoInternalVertices (me:out;   
    	    nF1:Integer  from  Standard; 
    	    aFaces: ListOfShape from TopTools) 
	is  protected;	 
    	---Purpose: 
    	--- Internal usage 
    	---
    Internals(me) 
	returns ListOfShape from TopTools   
    	is  protected; 
    	---C++: return const & 
    	---Purpose: 
    	--- Internal usage 
    	---
    CollectInternals(me:out) 
	is  protected;     
    	---Purpose: 
    	--- Internal usage 
    	---

    FillSectionEdges(me:out) 
	is  protected; 
    	---Purpose: 
    	--- Internal usage 
    	---


    SplitFace(me; theFaceIndex: Integer from Standard;
    	    	  theMapOfEdgeIndex: out DataMapOfShapeInteger from TopTools;
    	    	  theListOfFace: out ListOfShape from TopTools)
    	returns Boolean from Standard;

    SetHistoryCollector(me: in out; theHistory: HistoryCollector from BOP)
    	is redefined virtual;

fields 
 
    myFace      : Face from TopoDS            
    	is  protected;  
    myNewFaces  : ListOfShape from TopTools   
    	is  protected;  
    myInternals : ListOfShape from TopTools   
    	is  protected; 
    myRank      : Integer from Standard 
    	is  protected; 
		      	     
end ShellSolid;