summaryrefslogtreecommitdiff
path: root/src/BOP/BOP_SDFWESFiller.cdl
blob: f91a600532ada317789cbccbabc0aafebd8b0250 (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
-- File:	BOP_SDFWESFiller.cdl
-- Created:	Wed Jun  6 12:37:44 2001
-- Author:	Peter KURNEV
--		<pkv@irinox>
---Copyright:	 Matra Datavision 2001


class SDFWESFiller from BOP 

	---Purpose:  
    	--  The  algorithm that fills a wire edges set (WES) 
    	--  for a couple of faces that are same domain 
    	--- 
	
uses 
    Face from TopoDS, 
    ListOfShape from TopTools,
    DSFiller  from BOPTools, 
    PDSFiller from BOPTools, 
    IndexedDataMapOfIntegerState from BOPTools,  
    
    Operation    from BOP,  
    WireEdgeSet  from BOP,
    PWireEdgeSet from BOP 
    
    
--raises

is 
    Create   
    	returns SDFWESFiller from BOP; 
    	---Purpose:  
    	--- Empty constructor
    	---
    Create  (nF1: Integer from Standard; 
    	     nF2: Integer from Standard; 
    	     aDSF: DSFiller from BOPTools);
    	---Purpose:  
    	--- Constructor
    	--- nF1, nF2 - indices of faces in the DataStructue (DS)    
    	---
    SetStatesMap(me:out; 
    	aStatesMap:  IndexedDataMapOfIntegerState from BOPTools); 
    	---Purpose: 
    	--- Modifier  
    	---
    SetFaces(me:out; 
    	nF1: Integer from Standard;  
    	nF2: Integer from Standard);  
    	---Purpose: 
    	--- Modifier  
    	---
    SetDSFiller(me:out; 
    	aDSF: DSFiller from BOPTools); 
    	---Purpose: 
    	--- Modifier  
    	---
    SetOperation (me:out; 
    	    	  anOp:Operation from BOP);   
    	---Purpose: 
    	--- Modifier  
    	---
    SetSenseFlag (me:out;  
    	aFlag:Integer from Standard); 
    	---Purpose: 
    	--- Modifier 
    	--- Assigns sensitivity flag for the faces in accordance 
    	--- with scalar product between theirs normalls 
    	--- 1  for same sense;  -1 for different sense      
    	---

    Prepare(me:out); 
    	---Purpose: 
    	--- Prepares data for the algorithm 
    	---
    Do  (me:out; 
    	 aWES:WireEdgeSet from BOP); 
    	---Purpose:  
    	--- Performs the algorithm 
    	---
    DSFiller(me) 
    	returns DSFiller from BOPTools; 
    	---C++:  return const & 
    	---Purpose: 
    	--- Selector  
    	---
    StatesMap(me)  
    	returns  IndexedDataMapOfIntegerState from BOPTools;  
    	---C++:  return const &  	
    	---Purpose: 
    	--- Selector  
    	---
    Faces(me; 
    	nF1:out Integer from Standard;  
    	nF2:out Integer from Standard); 
    	---Purpose: 
    	--- Selector  
    	---
    SenseFlag (me)  
    	returns Integer from Standard; 	     
    	---Purpose: 
    	--- Selector  
    	---
    Operation  (me) 
    	returns Operation from BOP; 
    	---Purpose: 
    	--- Selector  
    	---
    AssignStates (me:out;      
    	    	    nF1: Integer from Standard;  
    	    	    nF2: Integer from Standard) 
    	is  private;  
    	---Purpose: 
    	--- Assigns the 2D-State for split parts of  
    	--- the edges having 3D-Curves of given faces       	     
    	--- Internal  Purpose
    	---
    PrepareOnParts(me:out) 
    	is  private;  
    	---Purpose: 
    	--- Prepares ON 2D parts to filled the WES  
    	--- Internal Purpose 
    	---
    PrepareWESForZone(me:out;      
    	    	    nF1: Integer from Standard;  
    	    	    nF2: Integer from Standard) 
    	is  private;
    	---Purpose: 
    	--- Fills the WES by split parts of the edges for         
    	--- the Common Zone  
    	--- Internal Purpose 
    	---
    PrepareWESForCut(me:out;      
    	    	    nF1: Integer from Standard;  
    	    	    nF2: Integer from Standard) 
    	is  private;
    	---Purpose: 
    	--- Fills the WES by split parts of the edges for         
    	--- the Cut operation 
    	--- Internal Purpose 
    	--- 
    PrepareOnParts(me:out; 
    	    	    nF1: Integer from Standard;  
    		    nF2: Integer from Standard; 
    	    	    Op : Operation from BOP) 
    	is  private; 
    	---Purpose: 
    	--- Fills the WES by split parts (ON 2D) of the edges 
    	--- Internal Purpose  
    	---
    PrepareFaces(me; 
		   nF1: Integer from Standard;  
    		   nF2: Integer from Standard;  
		   aF1:out Face from TopoDS;
		   aF2:out Face from TopoDS) 
    	is  private;
    	---Purpose: 
    	--- Make orientation of the faces consistent  
    	--- Internal Purpose 
    	---
    AssignDEStates (me:out; 
    	    	    nF1: Integer from Standard;  
    		    nF2: Integer from Standard) 
    	is  private; 
    	---Purpose:  
    	--- Assigns the 2D-State for split parts of  
    	--- the edges that do not have 3D-Curves of given faces   
    	--- Internal Purpose 
    	---
    AssignDEStates (me:out; 
    	    	    nF1: Integer from Standard;  
    		    nE1: Integer from Standard; 
    		    nF2: Integer from Standard) 
    	is  private; 
    	---Purpose: 
    	--- Assigns the 2D-State for split parts of  
    	--- the edge  nE1 that do not have 3D-Curves from face nF1 
    	---
    	--- Internal Purpose 
    	---
    UpdateDEStates3D  (me:out); 
    	---Purpose:	 
    	--- Update 3D-State for edges    
    	---
    RejectedOnParts(me) 
    	returns ListOfShape from TopTools; 
    ---C++: return const &   
    ---Purpose:   
    --  Returns all split edges of nF1 that are CB with 
    --  splis of nF1 but not included in myWES,     
    
fields
 
    myDSFiller  : PDSFiller from BOPTools; 
    myOperation : Operation from BOP;
    myNF1       : Integer from Standard; 
    myNF2       : Integer from Standard; 
      
    myWES       : PWireEdgeSet from BOP; 
    myStatesMap:  IndexedDataMapOfIntegerState from BOPTools;
    mySenseFlag:  Integer from Standard;   
    myRejectedOnParts: ListOfShape  from TopTools;  
     
end SDFWESFiller;