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
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
|
#include <ShapeFix_Solid.ixx>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <BRep_Builder.hxx>
#include <BRepClass3d_SolidClassifier.hxx>
#include <Precision.hxx>
#include <TopoDS_Shape.hxx>
#include <ShapeBuild_ReShape.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopoDS.hxx>
#include <ShapeExtend.hxx>
#include <ShapeAnalysis_Edge.hxx>
#include <ShapeAnalysis_Curve.hxx>
#include <TopoDS_Wire.hxx>
#include <ShapeExtend_WireData.hxx>
#include <TopTools_MapIteratorOfMapOfShape.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopTools_MapOfShape.hxx>
#include <TopTools_DataMapOfShapeListOfShape.hxx>
#include <TopTools_SequenceOfShape.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfShapeListOfShape.hxx>
#include <TopExp.hxx>
#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
#include <gp_Pnt.hxx>
#include <Bnd_Box2d.hxx>
#include <ShapeAnalysis.hxx>
#include <TopoDS_Edge.hxx>
#include <BRep_Tool.hxx>
#include <Geom_Surface.hxx>
#include <TopTools_ListOfShape.hxx>
#include <Precision.hxx>
#include <TopAbs.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfShapeListOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopoDS_Solid.hxx>
#include <BRep_Builder.hxx>
#include <TopoDS_CompSolid.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfShapeShape.hxx>
#include <TopAbs.hxx>
#include <BRep_Tool.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopTools_IndexedDataMapOfShapeShape.hxx>
#include <Message_Msg.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopTools_DataMapOfShapeInteger.hxx>
#include <Geom_Curve.hxx>
#include <ShapeAnalysis_FreeBounds.hxx>
//======================================================
//function : ShapeFix_Solid
//purpose :
//=======================================================================
ShapeFix_Solid::ShapeFix_Solid()
{
myStatus = ShapeExtend::EncodeStatus (ShapeExtend_OK);
myFixShellMode = -1;
myFixShell = new ShapeFix_Shell;
myCreateOpenSolidMode = Standard_False;
}
//=======================================================================
//function : ShapeFix_Solid
//purpose :
//=======================================================================
ShapeFix_Solid::ShapeFix_Solid(const TopoDS_Solid& solid)
{
myStatus = ShapeExtend::EncodeStatus (ShapeExtend_OK);
myFixShellMode = -1;
myFixShell = new ShapeFix_Shell;
myCreateOpenSolidMode = Standard_False;
Init(solid);
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void ShapeFix_Solid::Init(const TopoDS_Solid& solid)
{
mySolid = solid;
//mySolid = TopoDS::Solid(shape.EmptyCopied());
//BRep_Builder B;
// for( TopoDS_Iterator iter(solid); iter.More(); iter.Next())
// B.Add(mySolid,TopoDS::Shell(iter.Value()));
myShape = solid;
}
//=======================================================================
//function : CollectSolids
//purpose :
//=======================================================================
static void CollectSolids(const TopTools_SequenceOfShape& aSeqShells ,
TopTools_DataMapOfShapeListOfShape& aMapShellHoles,
TopTools_DataMapOfShapeInteger& theMapStatus)
{
TopTools_MapOfShape aMapHoles;
for ( Standard_Integer i1 = 1; i1 <= aSeqShells.Length(); i1++ ) {
TopoDS_Shell aShell1 = TopoDS::Shell(aSeqShells.Value(i1));
TopTools_ListOfShape lshells;
aMapShellHoles.Bind(aShell1,lshells);
}
//Finds roots shells and hole shells.
for ( Standard_Integer i = 1; i <= aSeqShells.Length(); i++ ) {
TopoDS_Shell aShell1 = TopoDS::Shell(aSeqShells.Value(i));
TopExp_Explorer aExpEdges(aShell1,TopAbs_EDGE);
if(!BRep_Tool::IsClosed(aShell1) || !aExpEdges.More()) continue;
TopoDS_Solid solid;
BRep_Builder B;
B.MakeSolid (solid);
B.Add (solid,aShell1);
try {
OCC_CATCH_SIGNALS
TopAbs_State infinstatus = TopAbs_UNKNOWN;
BRepClass3d_SolidClassifier bsc3d (solid);
Standard_Integer st = 0;
if(!theMapStatus.IsBound(aShell1)) {
bsc3d.PerformInfinitePoint(Precision::Confusion());
infinstatus = bsc3d.State();
if(infinstatus != TopAbs_UNKNOWN && infinstatus !=TopAbs_ON)
st = (infinstatus == TopAbs_IN ? 1 :2);
theMapStatus.Bind(aShell1,st);
}
else {
st = theMapStatus.Find(aShell1);
if(st)
infinstatus = (theMapStatus.Find(aShell1) == 1 ? TopAbs_IN : TopAbs_OUT);
}
if(!st) continue;
for ( Standard_Integer j = 1; j <= aSeqShells.Length(); j++ ) {
if(i==j) continue;
TopoDS_Shape aShell2 = aSeqShells.Value(j);
if(!BRep_Tool::IsClosed(aShell2)) continue;
if(aMapHoles.Contains(aShell2)) continue;
if(aMapShellHoles.IsBound(aShell2)) {
Standard_Boolean isAnalysis = Standard_False;
const TopTools_ListOfShape& ls = aMapShellHoles.Find(aShell2);
for(TopTools_ListIteratorOfListOfShape li(ls); li.More() && !isAnalysis; li.Next())
isAnalysis = li.Value().IsSame(aShell1);
if(isAnalysis) continue;
}
TopAbs_State pointstatus = TopAbs_UNKNOWN;
Standard_Integer numon =0;
TopTools_IndexedMapOfShape amapVert;
for(TopExp_Explorer aExpVert(aShell2,TopAbs_VERTEX); aExpVert.More() && amapVert.Extent() < 10; aExpVert.Next())
amapVert.Add(aExpVert.Current());
for(Standard_Integer k = 1; k <= amapVert.Extent() &&
(pointstatus ==TopAbs_UNKNOWN || (pointstatus ==TopAbs_ON && numon < 3)); k++) {
TopoDS_Vertex aV = TopoDS::Vertex(amapVert.FindKey(k));
gp_Pnt aPf = BRep_Tool::Pnt(aV);
bsc3d.Perform(aPf,Precision::Confusion());
pointstatus =bsc3d.State();
if(pointstatus ==TopAbs_ON) numon++;
}
if(numon == 3 && pointstatus ==TopAbs_ON) {
//gp_Pnt pmid;
//GetMiddlePoint(aShell2,pmid);
//bsc3d.Perform(pmid,Precision::Confusion());
pointstatus = /*(bsc3d.State() == TopAbs_IN ? TopAbs_IN :*/TopAbs_OUT;
}
if(pointstatus != infinstatus) {
aMapShellHoles.ChangeFind(aShell1).Append(aShell2);
if( aMapHoles.Contains(aShell2))
aMapHoles.Remove(aShell2);
else aMapHoles.Add(aShell2);
}
}
}
catch(Standard_Failure) {
#ifdef DEB
cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
Standard_Failure::Caught()->Print(cout); cout << endl;
#endif
continue;
}
}
TopTools_DataMapIteratorOfDataMapOfShapeListOfShape aItShellHoles( aMapShellHoles);
for(; aItShellHoles.More();aItShellHoles.Next()) {
if(aMapHoles.Contains(aItShellHoles.Key())) continue;
const TopTools_ListOfShape& lHoles =aItShellHoles.Value();
if(lHoles.IsEmpty()) continue;
for(TopTools_ListIteratorOfListOfShape lItHoles(lHoles);lItHoles.More(); lItHoles.Next()) {
if(aMapHoles.Contains(lItHoles.Value())) {
const TopTools_ListOfShape& lUnHoles = aMapShellHoles.Find(lItHoles.Value());
for(TopTools_ListIteratorOfListOfShape lItUnHoles(lUnHoles);lItUnHoles.More(); lItUnHoles.Next())
aMapHoles.Remove(lItUnHoles.Value());
}
}
}
for(TopTools_MapIteratorOfMapOfShape aIterHoles(aMapHoles);aIterHoles.More(); aIterHoles.Next())
aMapShellHoles.UnBind(aIterHoles.Key());
}
//=======================================================================
//function : CreateSolids
//purpose :
//=======================================================================
static Standard_Boolean CreateSolids(const TopoDS_Shape aShape,TopTools_IndexedMapOfShape& aMapSolids)
{
TopTools_SequenceOfShape aSeqShells;
Standard_Boolean isDone = Standard_False;
for(TopExp_Explorer aExpShell(aShape,TopAbs_SHELL); aExpShell.More(); aExpShell.Next()) {
aSeqShells.Append(aExpShell.Current());
}
TopTools_DataMapOfShapeListOfShape aMapShellHoles;
TopTools_DataMapOfShapeInteger aMapStatus;
CollectSolids(aSeqShells,aMapShellHoles,aMapStatus);
TopTools_IndexedDataMapOfShapeShape ShellSolid;
TopTools_DataMapIteratorOfDataMapOfShapeListOfShape aItShellHoles( aMapShellHoles);
//Defines correct orientation of shells
for(; aItShellHoles.More();aItShellHoles.Next()) {
TopoDS_Shell aShell = TopoDS::Shell(aItShellHoles.Key());
TopExp_Explorer aExpEdges(aShell,TopAbs_EDGE);
if(!BRep_Tool::IsClosed(aShell) || !aExpEdges.More()) {
ShellSolid.Add(aShell,aShell);
isDone = Standard_True;
continue;
}
BRep_Builder B;
TopAbs_State infinstatus = TopAbs_UNKNOWN;
TopoDS_Solid aSolid;
B.MakeSolid (aSolid);
B.Add (aSolid,aShell);
if(aMapStatus.IsBound(aShell)) {
Standard_Integer st = aMapStatus.Find(aShell);
if(st)
infinstatus = (aMapStatus.Find(aShell) == 1 ? TopAbs_IN : TopAbs_OUT);
}
else {
try {
OCC_CATCH_SIGNALS
BRepClass3d_SolidClassifier bsc3d (aSolid);
bsc3d.PerformInfinitePoint(Precision::Confusion());
infinstatus = bsc3d.State();
}
catch(Standard_Failure) {
#ifdef DEB
cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
Standard_Failure::Caught()->Print(cout); cout << endl;
#endif
ShellSolid.Add(aShell,aSolid);
continue;
}
}
if (infinstatus == TopAbs_IN) {
isDone = Standard_True;
aShell.Reverse();
TopoDS_Solid aTmpSolid;
B.MakeSolid (aTmpSolid);
B.Add (aTmpSolid,aShell);
aSolid = aTmpSolid;
}
const TopTools_ListOfShape& lHoles = aItShellHoles.Value();
for(TopTools_ListIteratorOfListOfShape lItHoles(lHoles); lItHoles.More();lItHoles.Next()) {
TopoDS_Shell aShellHole = TopoDS::Shell(lItHoles.Value());
if(aMapStatus.IsBound(aShellHole)) {
infinstatus = (aMapStatus.Find(aShellHole) == 1 ? TopAbs_IN : TopAbs_OUT);
}
else {
TopoDS_Solid solid;
B.MakeSolid (solid);
B.Add (solid,aShellHole);
BRepClass3d_SolidClassifier bsc3dHol (solid);
bsc3dHol.PerformInfinitePoint(Precision::Confusion());
infinstatus = bsc3dHol.State();
}
if (infinstatus == TopAbs_OUT) {
aShellHole.Reverse();
isDone = Standard_True;
}
B.Add(aSolid,aShellHole);
}
ShellSolid.Add(aShell,aSolid);
}
//Creation of compsolid from shells containing shared faces.
TopTools_IndexedDataMapOfShapeListOfShape aMapFaceShells;
TopExp::MapShapesAndAncestors(aShape,TopAbs_FACE,TopAbs_SHELL,aMapFaceShells);
for(Standard_Integer i =1; i <= aMapFaceShells.Extent(); i++) {
const TopTools_ListOfShape& lshells = aMapFaceShells.FindFromIndex(i);
if(lshells.Extent() <2) continue;
TopoDS_CompSolid aCompSolid;
BRep_Builder aB;
aB.MakeCompSolid(aCompSolid);
isDone = (aShape.ShapeType() != TopAbs_COMPSOLID || isDone);
for(TopTools_ListIteratorOfListOfShape lItSh(lshells);lItSh.More(); lItSh.Next()) {
if(ShellSolid.Contains(lItSh.Value())) {
for(TopExp_Explorer aExpSol(ShellSolid.FindFromKey(lItSh.Value()),TopAbs_SOLID);aExpSol.More(); aExpSol.Next())
aB.Add(aCompSolid,aExpSol.Current());
ShellSolid.ChangeFromKey(lItSh.Value()) = aCompSolid;
}
}
}
for(Standard_Integer kk =1 ; kk <= ShellSolid.Extent();kk++)
if(!aMapSolids.Contains(ShellSolid.FindFromIndex(kk)))
aMapSolids.Add(ShellSolid.FindFromIndex(kk));
isDone = (aMapSolids.Extent() >1 || isDone);
return isDone;
}
//=======================================================================
//function : Perform
//purpose :
//=======================================================================
Standard_Boolean ShapeFix_Solid::Perform()
{
Standard_Boolean status = Standard_False;
if(Context().IsNull())
SetContext ( new ShapeBuild_ReShape );
myFixShell->SetContext(Context());
Standard_Integer NbShells =0;
TopoDS_Shape S = Context()->Apply ( myShape );
if ( NeedFix ( myFixShellMode ) ) {
// call FixShell
for( TopoDS_Iterator iter(S); iter.More(); iter.Next()) {
TopoDS_Shape sh = iter.Value();
if(sh.ShapeType() != TopAbs_SHELL)
continue;
myFixShell->Init(TopoDS::Shell(sh));
if(myFixShell->Perform()) {
// Context()->Replace(sh,myFixShell->Shell());
status = Standard_True;
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE1 );
}
NbShells+= myFixShell->NbShells();
}
}
else {
for(TopExp_Explorer aExpSh(myShape,TopAbs_SHELL); aExpSh.More(); aExpSh.Next())
NbShells++;
}
//if(!status) return status;
if(NbShells ==1) {
TopoDS_Shape tmpShape = Context()->Apply(myShape);
TopExp_Explorer aExp(tmpShape,TopAbs_SHELL);
Standard_Boolean isClosed = Standard_False;
if(aExp.More()) {
TopoDS_Shell aShtmp = TopoDS::Shell(aExp.Current());
ShapeAnalysis_FreeBounds sfb(aShtmp);
TopoDS_Compound aC1 = sfb.GetClosedWires();
TopoDS_Compound aC2 = sfb.GetOpenWires();
Standard_Integer numedge =0;
TopExp_Explorer aExp1(aC1,TopAbs_EDGE);
for( ; aExp1.More(); aExp1.Next())
numedge++;
for(aExp1.Init(aC2,TopAbs_EDGE) ; aExp1.More(); aExp1.Next())
numedge++;
isClosed = (!numedge);
aShtmp.Closed(isClosed);
}
if(isClosed || myCreateOpenSolidMode) {
if(BRep_Tool::IsClosed(tmpShape)) {
TopoDS_Iterator itersh(tmpShape);
TopoDS_Shell aShell;
if(itersh.More() && itersh.Value().ShapeType() == TopAbs_SHELL)
aShell = TopoDS::Shell(itersh.Value());
if(!aShell.IsNull()) {
TopoDS_Solid aSol = SolidFromShell(aShell);
if(ShapeExtend::DecodeStatus(myStatus,ShapeExtend_DONE2)) {
SendWarning (Message_Msg ("FixAdvSolid.FixOrientation.MSG20"));// Orientaion of shell was corrected.
Context()->Replace(tmpShape,aSol);
tmpShape = aSol;
}
}
}
mySolid = TopoDS::Solid(tmpShape);
}
else {
TopoDS_Iterator aIt(tmpShape,Standard_False);
Context()->Replace(tmpShape,aIt.Value());
SendFail (Message_Msg ("FixAdvSolid.FixShell.MSG10")); // Solid can not be created from open shell.
}
}
else {
TopoDS_Shape aResShape = Context()->Apply(myShape);
TopTools_SequenceOfShape aSeqShells;
TopTools_IndexedMapOfShape aMapSolids;
if(CreateSolids(aResShape,aMapSolids)) {
SendWarning (Message_Msg ("FixAdvSolid.FixOrientation.MSG20"));// Orientaion of shell was corrected..
if(aMapSolids.Extent() ==1) {
TopoDS_Shape aResSol = aMapSolids.FindKey(1);
if(aResShape.ShapeType() == TopAbs_SHELL && myCreateOpenSolidMode) {
TopoDS_Solid solid;
BRep_Builder B;
B.MakeSolid (solid);
B.Add (solid,aResSol);
mySolid = solid;
}
else {
mySolid =aResSol;
if(aResSol.ShapeType() == TopAbs_SHELL)
SendFail (Message_Msg ("FixAdvSolid.FixShell.MSG10")); // Solid can not be created from open shell.
}
Context()->Replace(aResShape,mySolid);
}
else if(aMapSolids.Extent() >1) {
SendWarning (Message_Msg ("FixAdvSolid.FixOrientation.MSG30"));// Bad connected solid a few solids were created.
BRep_Builder aB;
TopoDS_Compound aComp;
aB.MakeCompound(aComp);
for(Standard_Integer i =1; i <= aMapSolids.Extent(); i++) {
TopoDS_Shape aResSh =aMapSolids.FindKey(i);
if(aResShape.ShapeType() == TopAbs_SHELL && myCreateOpenSolidMode) {
aResSh.Closed(Standard_False);
TopoDS_Solid solid;
BRep_Builder B;
B.MakeSolid (solid);
B.Add (solid,aResSh);
aResSh = solid;
}
else if (aResShape.ShapeType() == TopAbs_SHELL)
SendFail(Message_Msg ("FixAdvSolid.FixShell.MSG10")); // Solid can not be created from open shell.
aB.Add(aComp,aResSh);
}
Context()->Replace(aResShape,aComp);
}
}
}
myShape = Context()->Apply(myShape);
return status;
}
//=======================================================================
//function : Shape
//purpose :
//=======================================================================
TopoDS_Shape ShapeFix_Solid::Shape()
{
return myShape;
}
//=======================================================================
//function : SolidFromShell
//purpose :
//=======================================================================
TopoDS_Solid ShapeFix_Solid::SolidFromShell (const TopoDS_Shell& shell)
{
TopoDS_Shell sh = shell;
if (!sh.Free ()) sh.Free(Standard_True);
TopoDS_Solid solid;
BRep_Builder B;
B.MakeSolid (solid);
B.Add (solid,sh);
// Pas encore fini : il faut une bonne orientation
try {
OCC_CATCH_SIGNALS
BRepClass3d_SolidClassifier bsc3d (solid);
Standard_Real t = Precision::Confusion(); // tolerance moyenne
bsc3d.PerformInfinitePoint(t);
if (bsc3d.State() == TopAbs_IN) {
// Ensuite, inverser C-A-D REPRENDRE LES SHELLS
// (l inversion du solide n est pas bien prise en compte)
sh = shell;
if (!sh.Free ()) sh.Free(Standard_True);
TopoDS_Solid soli2;
B.MakeSolid (soli2); // on recommence
sh.Reverse();
B.Add (soli2,sh);
solid = soli2;
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE2 );
}
}
catch(Standard_Failure) {
#ifdef DEB
cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
Standard_Failure::Caught()->Print(cout); cout << endl;
#endif
return solid;
}
return solid;
}
//=======================================================================
//function : Status
//purpose :
//=======================================================================
Standard_Boolean ShapeFix_Solid::Status(const ShapeExtend_Status /*status*/) const
{
return myStatus;
}
//=======================================================================
//function : Solid
//purpose :
//=======================================================================
TopoDS_Shape ShapeFix_Solid::Solid() const
{
return mySolid;
}
//=======================================================================
//function : SetMsgRegistrator
//purpose :
//=======================================================================
void ShapeFix_Solid::SetMsgRegistrator(const Handle(ShapeExtend_BasicMsgRegistrator)& msgreg)
{
ShapeFix_Root::SetMsgRegistrator ( msgreg );
myFixShell->SetMsgRegistrator ( msgreg );
}
//=======================================================================
//function : SetPrecision
//purpose :
//=======================================================================
void ShapeFix_Solid::SetPrecision (const Standard_Real preci)
{
ShapeFix_Root::SetPrecision ( preci );
myFixShell->SetPrecision ( preci );
}
//=======================================================================
//function : SetMinTolerance
//purpose :
//=======================================================================
void ShapeFix_Solid::SetMinTolerance (const Standard_Real mintol)
{
ShapeFix_Root::SetMinTolerance ( mintol );
myFixShell->SetMinTolerance ( mintol );
}
//=======================================================================
//function : SetMaxTolerance
//purpose :
//=======================================================================
void ShapeFix_Solid::SetMaxTolerance (const Standard_Real maxtol)
{
ShapeFix_Root::SetMaxTolerance ( maxtol );
myFixShell->SetMaxTolerance ( maxtol );
}
|