From: isn Date: Tue, 29 Nov 2016 08:21:19 +0000 (+0300) Subject: split zone tools - disable debtrace mess in release mode X-Git-Tag: v1.6~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7692769e88ee24d96e7acdf96ef13151f83037c4;p=modules%2Fhydro.git split zone tools - disable debtrace mess in release mode --- diff --git a/src/HYDROData/HYDROData_SplitToZonesTool.cxx b/src/HYDROData/HYDROData_SplitToZonesTool.cxx index ddcc4070..2836229a 100644 --- a/src/HYDROData/HYDROData_SplitToZonesTool.cxx +++ b/src/HYDROData/HYDROData_SplitToZonesTool.cxx @@ -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 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