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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
|
-- File: AppBlend_AppSurf.cdl
-- Created: Mon Dec 13 16:29:23 1993
-- Author: Jacques GOUSSARD
-- <jag@topsn2>
-- Modified: Fri Jul 10 11:23:35 1998
-- JCT : Add SpApprox in Perform
---Copyright: Matra Datavision 1993
generic class AppSurf from AppBlend
(TheSectionGenerator as any;
TheLine as Transient)
inherits Approx from AppBlend
---Purpose: Bspline approximation of a surface.
uses Array2OfPnt from TColgp,
HArray2OfPnt from TColgp,
Array2OfReal from TColStd,
HArray2OfReal from TColStd,
Array1OfReal from TColStd,
HArray1OfReal from TColStd,
Array1OfInteger from TColStd,
HArray1OfInteger from TColStd,
Array1OfPnt2d from TColgp,
SequenceOfArray1OfPnt2d from TColgp,
ParametrizationType from Approx,
Shape from GeomAbs
raises NotDone from StdFail,
DomainError from Standard,
OutOfRange from Standard
is
Create
returns AppSurf from AppBlend;
Create(Degmin,Degmax: Integer from Standard;
Tol3d,Tol2d : Real from Standard;
NbIt: Integer from Standard;
KnownParameters : Boolean from Standard = Standard_False)
returns AppSurf from AppBlend;
Init(me: in out; Degmin,Degmax: Integer from Standard;
Tol3d,Tol2d : Real from Standard;
NbIt: Integer from Standard;
KnownParameters : Boolean from Standard = Standard_False)
is static;
SetParType(me: in out; ParType : ParametrizationType from Approx)
---Purpose: Define the type of parametrization used in the approximation
is static;
SetContinuity(me: in out; C : Shape from GeomAbs)
---Purpose: Define the Continuity used in the approximation
is static;
SetCriteriumWeight(me : in out;
W1, W2, W3 : Real)
---Purpose: define the Weights associed to the criterium used in
-- the optimization.
--
raises DomainError -- if Wi <= 0
is static;
ParType(me)
---Purpose: returns the type of parametrization used in the approximation
returns ParametrizationType from Approx
is static;
Continuity(me)
---Purpose: returns the Continuity used in the approximation
returns Shape from GeomAbs
is static;
CriteriumWeight(me ;
W1, W2, W3 : out Real)
---Purpose: returns the Weights (as percent) associed to the criterium used in
-- the optimization.
is static;
Perform(me: in out; Lin: TheLine;
SecGen: in out TheSectionGenerator;
SpApprox : Boolean from Standard = Standard_False)
is static;
PerformSmoothing(me: in out; Lin: TheLine;
SecGen: in out TheSectionGenerator)
is static;
Perform(me: in out; Lin: TheLine;
SecGen: in out TheSectionGenerator;
NbMaxP: Integer from Standard)
is static;
InternalPerform(me: in out; Lin: TheLine;
SecGen: in out TheSectionGenerator;
SpApprox : Boolean from Standard;
UseVariational: Boolean from Standard)
is static private;
IsDone(me)
returns Boolean from Standard
---C++: inline
is static;
SurfShape(me; UDegree,VDegree : out Integer from Standard;
NbUPoles,NbVPoles: out Integer from Standard;
NbUKnots,NbVKnots: out Integer from Standard)
raises NotDone from StdFail
is static;
Surface(me; TPoles : out Array2OfPnt from TColgp;
TWeights : out Array2OfReal from TColStd;
TUKnots,TVKnots : out Array1OfReal from TColStd;
TUMults,TVMults : out Array1OfInteger from TColStd)
raises NotDone from StdFail
is static;
UDegree(me)
returns Integer from Standard
---C++: inline
raises NotDone from StdFail
is static;
VDegree(me)
returns Integer from Standard
---C++: inline
raises NotDone from StdFail
is static;
SurfPoles(me)
returns Array2OfPnt from TColgp
---C++: inline
---C++: return const&
raises NotDone from StdFail
is static;
SurfWeights(me)
returns Array2OfReal from TColStd
---C++: inline
---C++: return const&
raises NotDone from StdFail
is static;
SurfUKnots(me)
returns Array1OfReal from TColStd
---C++: inline
---C++: return const&
raises NotDone from StdFail
is static;
SurfVKnots(me)
returns Array1OfReal from TColStd
---C++: inline
---C++: return const&
raises NotDone from StdFail
is static;
SurfUMults(me)
returns Array1OfInteger from TColStd
---C++: inline
---C++: return const&
raises NotDone from StdFail
is static;
SurfVMults(me)
returns Array1OfInteger from TColStd
---C++: inline
---C++: return const&
raises NotDone from StdFail
is static;
NbCurves2d(me)
returns Integer from Standard
---C++: inline
raises NotDone from StdFail
is static;
Curves2dShape(me; Degree,NbPoles,NbKnots: out Integer from Standard)
raises NotDone from StdFail,
DomainError from Standard
is static;
Curve2d(me; Index: Integer from Standard;
TPoles : out Array1OfPnt2d from TColgp;
TKnots : out Array1OfReal from TColStd;
TMults : out Array1OfInteger from TColStd)
raises NotDone from StdFail,
OutOfRange from Standard,
DomainError from Standard
is static;
Curves2dDegree(me)
returns Integer from Standard
---C++: inline
raises NotDone from StdFail,
DomainError from Standard
is static;
Curve2dPoles(me; Index: Integer from Standard)
returns Array1OfPnt2d from TColgp
---C++: inline
---C++: return const&
raises NotDone from StdFail,
OutOfRange from Standard,
DomainError from Standard
is static;
Curves2dKnots(me)
returns Array1OfReal from TColStd
---C++: inline
---C++: return const&
raises NotDone from StdFail,
DomainError from Standard
is static;
Curves2dMults(me)
returns Array1OfInteger from TColStd
---C++: inline
---C++: return const&
raises NotDone from StdFail,
DomainError from Standard
is static;
TolReached(me; Tol3d, Tol2d : out Real from Standard)
---C++: inline
raises NotDone from StdFail
is static;
TolCurveOnSurf(me; Index : Integer from Standard)
returns Real from Standard
raises NotDone from StdFail
is static;
fields
done : Boolean from Standard;
dmin : Integer from Standard;
dmax : Integer from Standard;
tol3d : Real from Standard;
tol2d : Real from Standard;
nbit : Integer from Standard;
udeg : Integer from Standard;
vdeg : Integer from Standard;
knownp : Boolean from Standard;
tabPoles : HArray2OfPnt from TColgp;
tabWeights : HArray2OfReal from TColStd;
tabUKnots : HArray1OfReal from TColStd;
tabVKnots : HArray1OfReal from TColStd;
tabUMults : HArray1OfInteger from TColStd;
tabVMults : HArray1OfInteger from TColStd;
seqPoles2d : SequenceOfArray1OfPnt2d from TColgp;
tol3dreached : Real from Standard;
tol2dreached : Real from Standard;
paramtype : ParametrizationType from Approx;
continuity : Shape from GeomAbs;
critweights : Real[3];
end AppSurf;
|