Deleted code for OCCT_DEBUG was returned and added under macros OCCT_DEBUG
#ifdef OCCT_DEBUG
if (doDebug)
showBoundaryBreaks();
+ Standard_Integer aNbLoopsOnPass2 = 0;
#endif
Standard_Integer aResult = 0;
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)
}
}
#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