Salome HOME
updated copyright message
[modules/geom.git] / src / ShHealOper / ShHealOper_ShapeProcess.cxx
index d991e1f7e1a3aacbc06b976cd0b8ea1f49e45dea..43bb1e131ecb0fecae6239d5d2f83b8646417bb4 100644 (file)
@@ -1,4 +1,4 @@
-// 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
@@ -62,7 +62,6 @@ ShHealOper_ShapeProcess::ShHealOper_ShapeProcess (  ) :
    myLevel = TopAbs_EDGE;
    myDone = Standard_False;
    myOperations.Context()->SetDetalisation ( TopAbs_EDGE );
-   myOperations.Context()->SetTraceLevel( 3 );
 }
 
 //=======================================================================
@@ -131,23 +130,8 @@ void ShHealOper_ShapeProcess::Perform(const TopoDS_Shape& theOldShape,
       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  :
@@ -179,12 +163,12 @@ void ShHealOper_ShapeProcess::SetParameter(const TCollection_AsciiString& theNam
   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());