mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -74,7 +74,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
|
||||
myAlong.SetValue(2,IsQPunctual(BS,V2,GeomAbs_IsoV,TolMin,Tol));
|
||||
myAlong.SetValue(3,IsQPunctual(BS,U1,GeomAbs_IsoU,TolMin,Tol));
|
||||
myAlong.SetValue(4,IsQPunctual(BS,U2,GeomAbs_IsoU,TolMin,Tol));
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<myAlong(1)<<endl<<myAlong(2)<<endl<<myAlong(3)<<endl<<myAlong(4)<<endl;
|
||||
#endif
|
||||
if (myAlong(1) || myAlong(2) || myAlong(3) || myAlong(4))
|
||||
@@ -107,7 +107,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
|
||||
{
|
||||
InitSurf = Handle(Geom_BSplineSurface)::DownCast(myBasisSurf);
|
||||
}
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"UDEG: "<<InitSurf->UDegree()<<endl;
|
||||
cout<<"VDEG: "<<InitSurf->VDegree()<<endl;
|
||||
#endif
|
||||
@@ -135,7 +135,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
|
||||
OsculSurf = BuildOsculatingSurface(V1,UKnot,VKnot,S,L);
|
||||
if(!OsculSurf) break;
|
||||
k++;
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"1.k = "<<k<<endl;
|
||||
#endif
|
||||
IsQPunc=IsQPunctual(L,V1,GeomAbs_IsoV,0.,Tol);
|
||||
@@ -159,7 +159,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
|
||||
OsculSurf = BuildOsculatingSurface(V2,UKnot,VKnot,S,L);
|
||||
if(!OsculSurf) break;
|
||||
k++;
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"2.k = "<<k<<endl;
|
||||
#endif
|
||||
IsQPunc=IsQPunctual(L,V2,GeomAbs_IsoV,0.,Tol);
|
||||
@@ -185,7 +185,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
|
||||
OsculSurf = BuildOsculatingSurface(V2,UKnot,VKnot,S,L);
|
||||
if(!OsculSurf) break;
|
||||
k++;
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"2.k = "<<k<<endl;
|
||||
#endif
|
||||
IsQPunc=IsQPunctual(L,V2,GeomAbs_IsoV,0.,Tol);
|
||||
@@ -218,7 +218,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
|
||||
OsculSurf = BuildOsculatingSurface(U1,UKnot,VKnot,S,L);
|
||||
if(!OsculSurf) break;
|
||||
k++;
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"1.k = "<<k<<endl;
|
||||
#endif
|
||||
IsQPunc=IsQPunctual(L,U1,GeomAbs_IsoU,0.,Tol);
|
||||
@@ -240,7 +240,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
|
||||
OsculSurf = BuildOsculatingSurface(U2,UKnot,VKnot,S,L);
|
||||
if(!OsculSurf) break;
|
||||
k++;
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"2.k = "<<k<<endl;
|
||||
#endif
|
||||
IsQPunc=IsQPunctual(L,U2,GeomAbs_IsoU,0.,Tol);
|
||||
@@ -265,7 +265,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
|
||||
OsculSurf = BuildOsculatingSurface(U2,UKnot,VKnot,S,L);
|
||||
if(!OsculSurf) break;
|
||||
k++;
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"2.k = "<<k<<endl;
|
||||
#endif
|
||||
IsQPunc=IsQPunctual(L,U2,GeomAbs_IsoU,0.,Tol);
|
||||
@@ -443,7 +443,7 @@ Standard_Boolean Geom_OsculatingSurface::BuildOsculatingSurface
|
||||
{
|
||||
Standard_Integer i, j;
|
||||
Standard_Boolean OsculSurf=Standard_True;
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"t = "<<Param<<endl;
|
||||
cout<<"======================================"<<endl<<endl;
|
||||
#endif
|
||||
@@ -456,7 +456,7 @@ Standard_Boolean Geom_OsculatingSurface::BuildOsculatingSurface
|
||||
vdeg = BS->VDegree();
|
||||
if( (IsAlongU() && vdeg <=1) || (IsAlongV() && udeg <=1))
|
||||
{
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<" surface osculatrice nulle "<<endl;
|
||||
#endif
|
||||
//Standard_ConstructionError::Raise("Geom_OsculatingSurface");
|
||||
@@ -499,7 +499,7 @@ Standard_Boolean Geom_OsculatingSurface::BuildOsculatingSurface
|
||||
Standard_Integer OscUNumCoeff=0, OscVNumCoeff=0;
|
||||
if (IsAlongU())
|
||||
{
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<">>>>>>>>>>> AlongU"<<endl;
|
||||
#endif
|
||||
OscUNumCoeff = (Standard_Integer ) udeg + 1;
|
||||
@@ -507,7 +507,7 @@ Standard_Boolean Geom_OsculatingSurface::BuildOsculatingSurface
|
||||
}
|
||||
if (IsAlongV())
|
||||
{
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<">>>>>>>>>>> AlongV"<<endl;
|
||||
#endif
|
||||
OscUNumCoeff = (Standard_Integer ) udeg;
|
||||
@@ -646,7 +646,7 @@ Standard_Boolean Geom_OsculatingSurface::BuildOsculatingSurface
|
||||
Data.UDegree(),
|
||||
Data.VDegree(),
|
||||
0, 0);
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"^====================================^"<<endl<<endl;
|
||||
#endif
|
||||
|
||||
@@ -683,7 +683,7 @@ Standard_Boolean Geom_OsculatingSurface::IsQPunctual
|
||||
D1NormMax=Max(D1NormMax,D1U.Magnitude());
|
||||
}
|
||||
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << " D1NormMax = " << D1NormMax << endl;
|
||||
#endif
|
||||
if (D1NormMax >TolMax || D1NormMax < TolMin )
|
||||
@@ -698,7 +698,7 @@ Standard_Boolean Geom_OsculatingSurface::IsQPunctual
|
||||
S->D1(Param,T,P,D1U,D1V);
|
||||
D1NormMax=Max(D1NormMax,D1V.Magnitude());
|
||||
}
|
||||
#if defined(DEB) && defined(OCCT_DEVELOPMENT)
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << " D1NormMax = " << D1NormMax << endl;
|
||||
#endif
|
||||
if (D1NormMax >TolMax || D1NormMax < TolMin )
|
||||
|
Reference in New Issue
Block a user