From 8748042259f22d72b3b076bc5433a54ca42734e4 Mon Sep 17 00:00:00 2001 From: akaftasev Date: Mon, 22 May 2023 12:00:32 +0100 Subject: [PATCH] 0033390: Coding - Debug version of OCCT does not compile Deleted code for OCCT_DEBUG was returned and added under macros OCCT_DEBUG --- src/Poly/Poly_MakeLoops.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Poly/Poly_MakeLoops.cxx b/src/Poly/Poly_MakeLoops.cxx index 72450641c6..8bf6c3e282 100644 --- a/src/Poly/Poly_MakeLoops.cxx +++ b/src/Poly/Poly_MakeLoops.cxx @@ -154,6 +154,7 @@ Standard_Integer Poly_MakeLoops::Perform() #ifdef OCCT_DEBUG if (doDebug) showBoundaryBreaks(); + Standard_Integer aNbLoopsOnPass2 = 0; #endif Standard_Integer aResult = 0; @@ -191,6 +192,10 @@ Standard_Integer Poly_MakeLoops::Perform() if (aStartNumber <= aContour.Extent()) { // there is a closed loop in the contour +#ifdef OCCT_DEBUG + if (aPassNum == 1) + aNbLoopsOnPass2++; +#endif acceptContour (aContour, aStartNumber); } if (aStartNumber > 1) @@ -219,8 +224,8 @@ Standard_Integer Poly_MakeLoops::Perform() } } #ifdef OCCT_DEBUG - if (doDebug && nbLoopsOnPass2) - std::cout << "MakeLoops: " << nbLoopsOnPass2 + if (doDebug && aNbLoopsOnPass2) + std::cout << "MakeLoops: " << aNbLoopsOnPass2 << " contours accepted on the second pass" << std::endl; #endif