mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025418: Debug output to be limited to OCC development environment
Macros ending on "DEB" are replaced by OCCT_DEBUG across OCCT code; new macros described in documentation. Macros starting with DEB are changed to start with "OCCT_DEBUG_". Some code cleaned.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//#ifndef DEB
|
||||
//#ifndef OCCT_DEBUG
|
||||
//#define No_Standard_RangeError
|
||||
//#define No_Standard_OutOfRange
|
||||
//#endif
|
||||
@@ -1068,7 +1068,7 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Lin& Line,
|
||||
Standard_Integer nbp = intlintorus.NbPoints();
|
||||
Standard_Real fi,theta,w;
|
||||
for(Standard_Integer i = 1; i<= nbp; i++) {
|
||||
#ifndef DEB
|
||||
#ifndef OCCT_DEBUG
|
||||
gp_Pnt P;
|
||||
P = intlintorus.Value(i);
|
||||
#else
|
||||
@@ -1814,7 +1814,7 @@ void ProjectIntersectAndEstLim(const gp_Lin& theLine,
|
||||
{
|
||||
ProjLib_Plane aLineProj( thePln, theLine );
|
||||
if (!aLineProj.IsDone()) {
|
||||
#ifdef INTCURVESURFACE_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout
|
||||
<< "Info: IntCurveSurface_Inter::ProjectIntersectAndEstLim(), !aLineProj.IsDone()"
|
||||
<< endl;
|
||||
@@ -1941,7 +1941,7 @@ void EstLimForInfRevl(const gp_Lin& Line,
|
||||
return; // not infinite curve
|
||||
}
|
||||
if (!aBasCurvProj.IsDone()) {
|
||||
#ifdef INTCURVESURFACE_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Info: IntCurveSurface_Inter::EstLimForInfRevl(), !aBasCurvProj.IsDone()" << endl;
|
||||
#endif
|
||||
return;
|
||||
|
@@ -194,7 +194,7 @@ Standard_Real IntCurveSurface_Polygon::ApproxParamOnCurve(const Standard_Integer
|
||||
{
|
||||
//ddout << "IntCurveSurface_Polygon::ApproxParamOnCurve" << endl;
|
||||
if(TheParamOnLine < 0.0 || TheParamOnLine >1.0) {
|
||||
#ifdef INTCURVESURFACE_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<" ParamOnLine = "<<TheParamOnLine<<" avec Index = "
|
||||
<<TheIndex<<" dans IntCurveSurface_Polygon::ApproxParamOnCurve"<<endl;
|
||||
#endif
|
||||
@@ -203,7 +203,7 @@ Standard_Real IntCurveSurface_Polygon::ApproxParamOnCurve(const Standard_Integer
|
||||
|
||||
Standard_Integer Index = TheIndex;
|
||||
Standard_Real ParamOnLine = TheParamOnLine;
|
||||
#ifdef INTCURVESURFACE_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
if (Index > NbPntIn) {
|
||||
cout << "OutOfRange Polygon::ApproxParamOnCurve " <<endl;
|
||||
}
|
||||
|
@@ -25,9 +25,7 @@
|
||||
|
||||
#include <Standard_ConstructionError.hxx>
|
||||
|
||||
//#if defined (WNT) || !defined (DEB)
|
||||
#include <stdio.h>
|
||||
//#endif
|
||||
|
||||
#define CHECKBOUNDS 0
|
||||
|
||||
@@ -190,7 +188,7 @@ void IntCurveSurface_Polyhedron::Init(const ThePSurface& Surface,
|
||||
|
||||
// Modified by Sergey KHROMOV - Fri Dec 7 11:23:34 2001 End
|
||||
|
||||
#ifdef DEBUGDUMP
|
||||
#ifdef OCCT_DEBUG_DUMP
|
||||
Dump();
|
||||
#endif
|
||||
}
|
||||
@@ -281,7 +279,7 @@ void IntCurveSurface_Polyhedron::Init(const ThePSurface& Surface,
|
||||
|
||||
// Modified by Sergey KHROMOV - Fri Dec 7 11:23:34 2001 End
|
||||
|
||||
#ifdef DEBUGDUMP
|
||||
#ifdef OCCT_DEBUG_DUMP
|
||||
Dump();
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user