mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -24,7 +24,7 @@
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <gp_Vec2d.hxx>
|
||||
|
||||
#ifndef DEB
|
||||
#ifndef OCCT_DEBUG
|
||||
#define No_Standard_RangeError
|
||||
#define No_Standard_OutOfRange
|
||||
#endif
|
||||
|
@@ -96,7 +96,7 @@ Standard_Boolean IntersectionWithAnArc(gp_Pnt& PSurf,
|
||||
const Standard_Real u1alin,
|
||||
Standard_Real& actualdist) {
|
||||
Standard_Real dtheta,theta;
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
//Standard_Real u,v,A,B,C,cost,sint,sign;
|
||||
#endif
|
||||
//-- recherche bete du point le plus proche de thearc->Value(...)
|
||||
@@ -1081,7 +1081,7 @@ Standard_Boolean FindLine (gp_Pnt& Psurf,
|
||||
//-- le point n a pas ete trouve par bete projection.
|
||||
//-- on essaie l intersection avec la restriction en 2d
|
||||
Standard_Real theparamonarc = theparameteronarc;
|
||||
//#ifdef DEB
|
||||
//#ifdef OCCT_DEBUG
|
||||
// Standard_Real anpara=para;
|
||||
//#endif
|
||||
gp_Pnt CopiePsurf=Psurf;
|
||||
@@ -1687,7 +1687,7 @@ void ProcessRLine (IntPatch_SequenceOfLine& slin,
|
||||
gp_Vec2d d2d;
|
||||
gp_Vec d1u,d1v,tgrest,tgarc,norm;
|
||||
IntSurf_Transition TRest,TArc;
|
||||
#ifndef DEB
|
||||
#ifndef OCCT_DEBUG
|
||||
Standard_Real U =0.,V =0.;
|
||||
#else
|
||||
Standard_Real U,V;
|
||||
|
@@ -36,7 +36,7 @@
|
||||
#include <IntPatch_WLine.hxx>
|
||||
#include <IntPatch_ArcFunction.hxx>
|
||||
#include <IntPatch_RstInt.hxx>
|
||||
#ifndef DEB
|
||||
#ifndef OCCT_DEBUG
|
||||
#define No_Standard_RangeError
|
||||
#define No_Standard_OutOfRange
|
||||
#endif
|
||||
|
@@ -895,7 +895,7 @@ static Standard_Boolean TestIfWLineIsRestriction(const IntPatch_SequenceOfLine&
|
||||
break;
|
||||
}
|
||||
if(allon1==NbPnts || allon2==NbPnts) {
|
||||
#ifdef INTPATCH_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<" IntPatch_LineConstructor.gxx : CC**ONS"<<(allon1==NbPnts?1:2)<<"** Traitement WLIne + ARC CLASS "<<endl;
|
||||
#endif
|
||||
Standard_Real tol2d = Max(tol2d1,tol2d2);
|
||||
@@ -1056,7 +1056,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
|
||||
if (!arc1.IsNull() && arc1 == arc) iv2 = iv;
|
||||
}
|
||||
if (!iv1 || !iv2) {
|
||||
#ifdef INTPATCH_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<" Pb getting vertices linked with arc"<<endl;
|
||||
#endif
|
||||
continue;
|
||||
@@ -1067,7 +1067,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
|
||||
Standard_Real par2 = (arcsResolved(iv2).IsNull()
|
||||
? (WLine->Vertex(iv2).*pParOnArc)()
|
||||
: paramsResolved(iv2));
|
||||
#ifdef INTPATCH_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"****** Parameters on arc on S"<<is+1<<": "<<par1<<" "<<par2<<endl;
|
||||
#endif
|
||||
|
||||
@@ -1081,7 +1081,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
|
||||
}
|
||||
Standard_Real par,dist;
|
||||
if (!ProjectOnArc(utst,vtst,arc,surf,TolArc,par,dist)) {
|
||||
#ifdef INTPATCH_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<" Pb en projection ds IntPatch_LineConstructor"<<endl;
|
||||
#endif
|
||||
continue;
|
||||
|
@@ -1727,7 +1727,7 @@ void IntPatch_PrmPrmIntersection::Perform(const Handle(Adaptor3d_HSurface)& S
|
||||
|
||||
// Standard_Real nIncrement=Increment;
|
||||
// if(MaxOscill>10) {
|
||||
// #ifdef DEB
|
||||
// #ifdef OCCT_DEBUG
|
||||
// cout<<"\n IntPatch_PrmPrmIntersection.gxx : Increment:"<<Increment<<" -> "<<Increment/(0.5*MaxOscill)<<endl;
|
||||
// #endif
|
||||
// nIncrement/=0.5*MaxOscill;
|
||||
|
Reference in New Issue
Block a user