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:
@@ -31,7 +31,7 @@
|
||||
|
||||
#define FuncTol 1.e-10
|
||||
|
||||
#ifdef __OCC_DEBUG_CHRONO
|
||||
#ifdef OCCT_DEBUG_CHRONO
|
||||
#include <OSD_Timer.hxx>
|
||||
|
||||
static OSD_Chronometer chr_init_point, chr_dicho_bound;
|
||||
@@ -406,7 +406,7 @@ static void DichExactBound(gp_Pnt& Sol,
|
||||
const Handle(Adaptor3d_HCurve)& Curve,
|
||||
const Handle(Adaptor3d_HSurface)& Surface)
|
||||
{
|
||||
#ifdef __OCC_DEBUG_CHRONO
|
||||
#ifdef OCCT_DEBUG_CHRONO
|
||||
InitChron(chr_dicho_bound);
|
||||
#endif
|
||||
|
||||
@@ -434,7 +434,7 @@ static void DichExactBound(gp_Pnt& Sol,
|
||||
}
|
||||
else aNotSol = t;
|
||||
}
|
||||
#ifdef __OCC_DEBUG_CHRONO
|
||||
#ifdef OCCT_DEBUG_CHRONO
|
||||
ResultChron(chr_dicho_bound,t_dicho_bound);
|
||||
dicho_bound_count++;
|
||||
#endif
|
||||
@@ -640,11 +640,11 @@ void ProjLib_CompProjectedCurve::Init()
|
||||
if (!initpoint)
|
||||
{
|
||||
myCurve->D0(t,CPoint);
|
||||
#ifdef __OCC_DEBUG_CHRONO
|
||||
#ifdef OCCT_DEBUG_CHRONO
|
||||
InitChron(chr_init_point);
|
||||
#endif
|
||||
initpoint=InitialPoint(CPoint, t,myCurve,mySurface, myTolU, myTolV, U, V);
|
||||
#ifdef __OCC_DEBUG_CHRONO
|
||||
#ifdef OCCT_DEBUG_CHRONO
|
||||
ResultChron(chr_init_point,t_init_point);
|
||||
init_point_count++;
|
||||
#endif
|
||||
@@ -709,7 +709,7 @@ void ProjLib_CompProjectedCurve::Init()
|
||||
if(!ExactBound(Triple, t - Step, Tol,
|
||||
myTolU, myTolV, myCurve, mySurface))
|
||||
{
|
||||
#if PROJLIB_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"There is a problem with ExactBound computation"<<endl;
|
||||
#endif
|
||||
DichExactBound(Triple, t - Step, Tol, myTolU, myTolV,
|
||||
@@ -782,7 +782,7 @@ void ProjLib_CompProjectedCurve::Init()
|
||||
if(!ExactBound(Triple, t, Tol, myTolU, myTolV,
|
||||
myCurve, mySurface))
|
||||
{
|
||||
#if PROJLIB_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"There is a problem with ExactBound computation"<<endl;
|
||||
#endif
|
||||
DichExactBound(Triple, t, Tol, myTolU, myTolV,
|
||||
|
@@ -47,7 +47,7 @@
|
||||
#ifdef DRAW
|
||||
#include <DrawTrSurf.hxx>
|
||||
#endif
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
static Standard_Boolean AffichValue = Standard_False;
|
||||
#endif
|
||||
|
||||
@@ -889,7 +889,7 @@ ProjLib_ComputeApprox::ProjLib_ComputeApprox
|
||||
else {
|
||||
ProjLib_Function F( C, S);
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( AffichValue) {
|
||||
Standard_Integer Nb = 20;
|
||||
Standard_Real U1, U2, dU, U;
|
||||
|
@@ -74,7 +74,7 @@
|
||||
//#include <GeomLib_IsIso.hxx>
|
||||
//#include <GeomLib_CheckSameParameter.hxx>
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
#ifdef DRAW
|
||||
#include <DrawTrSurf.hxx>
|
||||
#endif
|
||||
@@ -1302,7 +1302,7 @@ Handle(Adaptor2d_HCurve2d)
|
||||
//////////////////////////////////////////
|
||||
Geom2dAdaptor_Curve GAC(myBSpline);
|
||||
Handle(Adaptor2d_HCurve2d) IC2d = new Geom2dAdaptor_HCurve(GAC);
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
// char name [100];
|
||||
// sprintf(name,"%s_%d","build",compteur++);
|
||||
// DrawTrSurf::Set(name,myBSpline);
|
||||
@@ -1598,7 +1598,7 @@ Handle(Geom2d_BSplineCurve)
|
||||
ProjLib_PolarFunction F(Curve, Surf, InitCurve2d, Tol3d) ; //OCC217
|
||||
//ProjLib_PolarFunction F(Curve, Surf, InitCurve2d, myTolerance) ;
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Integer Nb = 50;
|
||||
|
||||
Standard_Real U, U1, U2;
|
||||
@@ -1717,7 +1717,7 @@ Handle(Geom2d_BSplineCurve)
|
||||
OK = OK && Dummy->RemoveKnot(ij,MaxDeg-1,Tol3d); //OCC217
|
||||
//OK = OK && Dummy->RemoveKnot(ij,MaxDeg-1,myTolerance);
|
||||
}
|
||||
#ifdef PROJLIB_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
if (!OK) {
|
||||
cout << "ProjLib_ComputeApproxOnPolarSurface : Smoothing echoue"<<endl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user