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
|
-- File: BOP_FaceBuilder.cdl
-- Created: Thu Dec 21 17:07:40 1995
-- Author: Jean Yves LEBEY
-- modified by PKV Tue Apr 3 16:57:39 2001
-- <jyl@meteox>
---Copyright: Matra Datavision 1995
class FaceBuilder from BOP
---Purpose:
--- The algorithm to construct Faces from a WireEdgeSet
---
uses
Shape from TopoDS,
Face from TopoDS,
Wire from TopoDS,
Edge from TopoDS,
Vertex from TopoDS,
ListOfShape from TopTools,
SequenceOfInteger from TColStd,
LoopSet from BOP,
BlockIterator from BOP,
BlockBuilder from BOP,
WireEdgeSet from BOP,
FaceAreaBuilder from BOP,
PWireEdgeSet from BOP
is
Create
returns FaceBuilder;
---Purpose:
--- Empty constructor;
---
Do(me :out;
aWES : WireEdgeSet from BOP;
aForceClass : Boolean from Standard =Standard_True);
---Purpose:
--- Launches the algorithm consisting of four steps
--- 1. Split the WES on wires
--- 2. Make Loops from wires
--- 3. Make Areas from Loops
--- 4. Make Faces from Areas
---
DoInternalEdges (me :out)
is private;
---Purpose:
--- Processes internal edges if they exists
---
BuildNewFaces (me :out)
is private;
---Purpose:
--- Make Faces from Areas
---
WES (me)
returns WireEdgeSet from BOP;
---C++: return const &
---Purpose:
--- Selector
---
NewFaces (me)
returns ListOfShape from TopTools;
---C++: return const &
---Purpose:
--- Selector
---
SetTreatment (me: out;
aTreatment: Integer from Standard);
---Purpose:
--- Modifier
--- 0 -Treat internal edges,
--- 1 -Do not treat internal edges
---
SetManifoldFlag(me: out;
aMFlag: Boolean from Standard);
---Purpose:
--- Modifier
---
SetTreatSDScales (me: out;
aTreatment: Integer from Standard);
---Purpose:
--- Modifier
--- 1 -Treat scale configured same domain faces,
--- 0 -Do not treat them.
---
ManifoldFlag(me)
returns Boolean from Standard;
---Purpose:
--- Selector
---
Treatment (me)
returns Integer from Standard;
---Purpose:
--- Selector
---
TreatSDScales (me)
returns Integer from Standard;
---Purpose:
--- Selector
---
---
---
--- Faces' iterator
---
InitFace(me:out)
returns Integer from Standard;
MoreFace(me)
returns Boolean from Standard;
NextFace(me:out);
---Purpose:
---
---
--- Wires' iterator
---
InitWire(me:out)
returns Integer from Standard;
MoreWire(me)
returns Boolean from Standard;
NextWire(me:out);
IsOldWire(me)
returns Boolean from Standard;
OldWire(me)
returns Shape from TopoDS;
---C++: return const &
Wire(me)
returns Wire from TopoDS;
---C++: return const &
---Purpose:
---
---
--- Edges' iterator
---
FindNextValidElement(me:out);
InitEdge(me:out)
returns Integer from Standard;
MoreEdge(me)
returns Boolean from Standard;
NextEdge(me : in out);
Edge(me)
returns Edge from TopoDS;
---C++: return const &
---Purpose:
---
MakeLoops(me :out;
SS :out WireEdgeSet from BOP)
is private;
---Purpose:
--- Make Loops from wires
---
SDScales(me :out)
is private;
---Purpose:
--- Treatment SD faces with a "scale"
---
fields
myFace : Face from TopoDS;
myLoopSet : LoopSet from BOP;
myBlockIterator : BlockIterator from BOP;
myBlockBuilder : BlockBuilder from BOP;
myFaceAreaBuilder : FaceAreaBuilder from BOP;
myWES : PWireEdgeSet from BOP;
myNewFaces : ListOfShape from TopTools;
myTreatment : Integer from Standard;
myManifoldFlag : Boolean from Standard;
myTreatSDScales : Integer from Standard;
myNegatives : SequenceOfInteger from TColStd;
end FaceBuilder;
|