-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
myLevel = TopAbs_EDGE;
myDone = Standard_False;
myOperations.Context()->SetDetalisation ( TopAbs_EDGE );
- myOperations.Context()->SetTraceLevel( 3 );
}
//=======================================================================
myStatistics.AddModif( txt.ToCString() );
}
}
-
-// for (TopTools_DataMapIteratorOfDataMapOfShapeShape It (myOperations.Context()->Map()); It.More(); It.Next()) {
-// TopoDS_Shape keyshape = It.Key(), valueshape = It.Value();
-// /* if (keyshape.ShapeType() == TopAbs_SHELL) {
-// if (valueshape.IsNull()) SN++;
-// else SS++;
-// }
-// else if (keyshape.ShapeType() == TopAbs_FACE)*/ {
-// if (valueshape.IsNull()) cout << "Removed" << endl;
-// else {
-// TopAbs::Print( keyshape.ShapeType(), cout ) << " -> ";
-// TopAbs::Print( valueshape.ShapeType(), cout ) << " IsSame()=" << keyshape.IsSame(valueshape) << endl;
-// }
-// }
-// }
-
}
+
//=======================================================================
//function : SetOperators
//purpose :
TCollection_AsciiString anameParam(myPrefix);
anameParam += ".";
anameParam+= theNameParam;
- if(theVal.IsIntegerValue())
- myOperations.Context()->ResourceManager()->
- SetResource(anameParam.ToCString(),theVal.IntegerValue());
- else if(theVal.IsRealValue())
+ if(theVal.IsRealValue())
myOperations.Context()->ResourceManager()->
SetResource(anameParam.ToCString(),theVal.RealValue());
+ else if(theVal.IsIntegerValue())
+ myOperations.Context()->ResourceManager()->
+ SetResource(anameParam.ToCString(),theVal.IntegerValue());
else
myOperations.Context()->ResourceManager()->
SetResource(anameParam.ToCString(),theVal.ToCString());