1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0025266: Debug statements in the source are getting flushed on to the console

Output to cout activated previously in Debug mode by #ifdef DEB is suppressed by using macro <PACKAGE>_DEB instead of DEB
This commit is contained in:
dbv
2014-10-08 19:00:20 +04:00
committed by abv
parent 7aa1b65c2a
commit 63c629aa3a
370 changed files with 1634 additions and 1639 deletions

View File

@@ -287,7 +287,7 @@ static
Standard_Real par1 = CPI1->Parameter();
Standard_Real par2; Standard_Boolean ok = FUN_tool_parE(e1,par1,e2,par2);
if (!ok) {
#ifdef DEB
#ifdef TOPOPEBREP_DEB
cout<<"**********TopOpeBRep FUN_shareNOG**********"<<endl;
#endif
return Standard_False;
@@ -882,7 +882,7 @@ Standard_Boolean TopOpeBRep_DSFiller::IsMadeOf1d(const TopoDS_Shape& aS) const
Standard_Boolean TopOpeBRep_DSFiller::IsContext1d(const TopoDS_Shape& aS) const
{
Standard_Boolean is1d = IsMadeOf1d(aS);
#ifdef DEB
#ifdef TOPOPEBREP_DEB
if ( is1d ) cout<<"TopOpeBRep_DSFiller : 1d"<<endl;
#endif
if ( !is1d ) return Standard_False;
@@ -940,7 +940,7 @@ void TopOpeBRep_DSFiller::Insert1d
Standard_Boolean TopOpeBRep_DSFiller::CheckInsert(const TopoDS_Shape& aS1,const TopoDS_Shape& aS2) const
{
if (aS1.IsEqual(aS2)) {
#ifdef DEB
#ifdef TOPOPEBREP_DEB
cout<<"TopOpeBRep_DSFiller : CheckInsert : S1 == S2"<<endl;
#endif
return Standard_False;

View File

@@ -154,15 +154,13 @@ void TopOpeBRep_EdgesFiller::Insert(const TopoDS_Shape& E1,const TopoDS_Shape& E
if (!found) MakeGeometry(P2D,G,K);
Standard_Boolean foundpoint = (found) && (K == TopOpeBRepDS_POINT);
#ifdef DEB
Standard_Boolean foundvertex = (found) && (K == TopOpeBRepDS_VERTEX);
#endif
Standard_Boolean isnewpoint = (!found) && (K == TopOpeBRepDS_POINT);
Standard_Boolean isnewvertex = (!found) && (K == TopOpeBRepDS_VERTEX);
Standard_Boolean faulty = (isvertex && isnewpoint) || (!isvertex && isnewvertex);
if (faulty) {
#ifdef DEB
#ifdef TOPOPEBREP_DEB
Standard_Boolean foundvertex = (found) && (K == TopOpeBRepDS_VERTEX);
cout<<"- - - faulty EdgesFiller : G "<<G<<" K ";TopOpeBRepDS::Print(K,cout);cout.flush();
cout<<" isvertex="<<isvertex;cout.flush();
cout<<" isop="<<foundpoint<<" isov="<<foundvertex;cout.flush();

View File

@@ -214,7 +214,7 @@ Standard_Boolean TopOpeBRep_FacesFiller::CheckLine(TopOpeBRep_LineInter& L) cons
if ( t == TopOpeBRep_WALKING ) {
if ( nbvp < 2 ) {
#ifdef DEB
#ifdef TOPOPEBREP_DEB
cout<<"\n=== Nb de IntPatch_Point sur WL incorrect : "<<nbvp<<" ===\n";
#endif
check = Standard_False;
@@ -346,7 +346,7 @@ Standard_Boolean TopOpeBRep_FacesFiller::CheckLine(TopOpeBRep_LineInter& L) cons
}
}
#ifdef DEB
#ifdef TOPOPEBREP_DEB
if (!check) { cout<<"# DEB CheckLine : rejet de ";TopOpeBRep::Print(t,cout);cout<<" a "<<nbvp<<" points"<<endl; }
#endif

View File

@@ -448,7 +448,7 @@ void TopOpeBRep_FacesFiller::ProcessVPnotonR(const TopOpeBRep_VPointInter& VP)
Standard_Boolean CPIfound = GetGeometry(itCPIL,VP,PVIndex,PVKind);
if ( !CPIfound ) {
if (iVP != iINON1 && iVP != iINONn) {
#ifdef DEB
#ifdef TOPOPEBREP_DEB
cout<<"VP "<<iVP<<" on "<<0<<" : point d'intersection anormal : rejet"<<endl;
#endif
return;
@@ -743,7 +743,7 @@ void TopOpeBRep_FacesFiller::ProcessRLine()
Standard_Integer obOO = TopOpeBRepTool_TOOL::OnBoundary(OOpar,OOE); //vertex can be missed
if ((obRest == EXTERNAL)||(obOO == EXTERNAL)){
#ifdef DEB
#ifdef TOPOPEBREP_DEB
if(obRest==EXTERNAL) cout<<"***********ProcessRLine : faulty parameter on Erest"<<endl;
if(obOO==EXTERNAL) cout<<"***********ProcessRLine : faulty parameter on OOE"<<endl;
#endif

View File

@@ -1177,7 +1177,7 @@ static void MergeWLinesIfAllSegmentsAlongRestriction(IntPatch_SequenceOfLine&
Handle(IntPatch_WLine) anWLine = NULL;
anWLine = GetMergedWLineOnRestriction(theSlin,TolVrtx,aLineOn2S);
#ifdef DEB
#ifdef TOPOPEBREP_DEB
cout << "*** TopOpeBRep_FaceIntersector: Merge WLines on Restriction S1 to WLine ***" << endl;
#endif
theSlin.Clear();
@@ -1193,7 +1193,7 @@ static void MergeWLinesIfAllSegmentsAlongRestriction(IntPatch_SequenceOfLine&
Handle(IntPatch_WLine) anWLine = NULL;
anWLine = GetMergedWLineOnRestriction(theSlin,TolVrtx,aLineOn2S);
#ifdef DEB
#ifdef TOPOPEBREP_DEB
cout << "*** TopOpeBRep_FaceIntersector: Merge WLines on Restriction S2 to WLine***" << endl;
#endif
theSlin.Clear();

View File

@@ -1184,7 +1184,7 @@ static Standard_Integer OneShapeIsHalfSpace(const TopoDS_Shape& S1,const TopoDS_
// so this suggestion must be developed carefully. while we don't classify it!
// *****************************************************************************
}
#ifdef DEB
#ifdef TOPOPEBREP_DEB
if( result != 0 )
cout << "# one of the SOLIDs probably is a HALF SPACE" << endl;
#endif