]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
split zone tools - disable debtrace mess in release mode
authorisn <isn@opencascade.com>
Tue, 29 Nov 2016 08:21:19 +0000 (11:21 +0300)
committerisn <isn@opencascade.com>
Tue, 29 Nov 2016 08:21:33 +0000 (11:21 +0300)
src/HYDROData/HYDROData_SplitToZonesTool.cxx

index ddcc40706f0870ebfe84d50ab6e51a9bab8f7903..2836229ae258c99d95418898cae18777c6edae4e 100644 (file)
@@ -138,7 +138,9 @@ HYDROData_SplitToZonesTool::SplitDataList
                                      const Handle(HYDROData_PolylineXY)& thePolyline,
                                      const HYDROData_SequenceOfObjects& InterPolys)
 {
+#ifndef NDEBUG
   DEBTRACE("Split");
+#endif
   SplitDataList anOutputSplitDataList;
   NCollection_DataMap<TopoDS_Shape, Handle(HYDROData_PolylineXY), TopTools_ShapeMapHasher> OutNE;
   if(theObjectList.IsEmpty())
@@ -340,8 +342,10 @@ HYDROData_SplitToZonesTool::SplitDataList
         for (int j =1;exp.More();exp.Next(),j++) {
           aList.Clear();
           Standard_Boolean foundE(Standard_False);
-          const TopTools_ListOfShape& aListM = splitTool.Modified(exp.Current());    
+          const TopTools_ListOfShape& aListM = splitTool.Modified(exp.Current()); 
+#ifdef NDEBUG
           DEBTRACE("NB_EDGE_M = " << aListM.Extent());
+#endif
           if(aListM.Extent()) foundE = Standard_True;
           it.Initialize(aListM);    
           for(int k=1;it.More();it.Next(),k++) {    
@@ -419,7 +423,9 @@ HYDROData_SplitToZonesTool::SplitDataList
               const TopoDS_Shape& aFace = exp.Current();
               if(!aFace.IsNull()) {
                 const TopTools_ListOfShape& aListOfNew = mkCom.Modified(aFace);
+#ifdef NDEBUG
                 DEBTRACE("Modified: " << aListOfNew.Extent());
+#endif
                 if(!aListOfNew.IsEmpty()) {
                   aDM4.Add(aFace, aListOfNew);
 #ifdef DEB_SPLIT_TO_ZONES