From 7692769e88ee24d96e7acdf96ef13151f83037c4 Mon Sep 17 00:00:00 2001 From: isn Date: Tue, 29 Nov 2016 11:21:19 +0300 Subject: [PATCH] split zone tools - disable debtrace mess in release mode --- src/HYDROData/HYDROData_SplitToZonesTool.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.2