1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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

@@ -250,7 +250,7 @@ void TopOpeBRepBuild_Builder::End()
gp_Pnt P2(aXmax, aYmax, aZmax);
Standard_Real d = P1.Distance(P2);
if (d > newtol) {
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
cout<<"\npoint P"<<iv<<" "<<Pv.X()<<" "<<Pv.Y()<<" "<<Pv.Z()<<endl;
cout<<"TopOpeBRepBuild_Builder::End BOX newtol "<<newtol<<" -> "<<d<<endl;
#endif

View File

@@ -784,7 +784,7 @@ Standard_Boolean TopOpeBRepBuild_Builder::GParamOnReference(const TopoDS_Vertex&
Handle(Geom_Surface) su = BRep_Tool::Surface(myFaceReference);
Handle(Geom_Plane) suplan = Handle(Geom_Plane)::DownCast(su);
if ( suplan.IsNull() ) {
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
cout<<"NYI : GParamOnReference : not planar"<<endl;
#endif
return Standard_False;
@@ -810,7 +810,7 @@ Standard_Boolean TopOpeBRepBuild_Builder::GParamOnReference(const TopoDS_Vertex&
case GeomAbs_Parabola:
P = ElCLib::Parameter(AC.Parabola(),p2); break;
default :
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
cout<<"NYI : GParamOnReference : OtherCurve on planar surface"<<endl;
#endif
return Standard_False;

View File

@@ -802,7 +802,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
Standard_Boolean so = Standard_True;
Standard_Boolean ok = FUN_tool_curvesSO(newE,par,TopoDS::Edge(EOR),so);
if (!ok) {
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<endl;
#endif
//return; // nyiFUNRAISE
@@ -925,7 +925,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
Standard_Boolean so = Standard_True;
Standard_Boolean ok = FUN_tool_curvesSO(newE,par,TopoDS::Edge(EOR),so);
if (!ok) {
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<endl;
#endif
}

View File

@@ -473,7 +473,7 @@ void TopOpeBRepBuild_HBuilder::MakeCurveAncestorMap()
for(;itloe.More();itloe.Next()) {
TopoDS_Shape& E = *((TopoDS_Shape*)(&itloe.Value()));
if(mySectEdgeDSCurve.IsBound(E)) {
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
cout<<"BRepAlgo_DSAccess::MakeEdgeAncestorFromCurve : program error"<<endl;
#endif
}

View File

@@ -779,7 +779,7 @@ void TopOpeBRepBuild_Builder::MergeKPartisdisj()
return;
}
else {
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
cout<<"TopOpeBRepBuild_MergeKPart soldisj : ires = "<<ires<<endl;
#endif
return;

View File

@@ -162,7 +162,7 @@ void TopOpeBRepBuild_Builder::MergeShapes(const TopoDS_Shape& S1,const TopAbs_St
{
Standard_Boolean lesmemes = S1.IsEqual(S2);
if (lesmemes) {
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
cout<<"TopOpeBRepBuild : S1 == S2"<<endl;
#endif
return;

View File

@@ -136,7 +136,7 @@ const TopoDS_Shape& TopOpeBRepBuild_Pave::Shape() const
void TopOpeBRepBuild_Pave::Dump() const
{
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
cout<<Parameter()<<" ";TopAbs::Print(Vertex().Orientation(),cout);
#endif
}

View File

@@ -447,7 +447,7 @@ const Standard_Real PAR_T = 0.43213918;
if (!anAvoidSubshMap.Contains (aSubshMap(i)) )
aSubsh = aSubshMap(i);
if (aSubsh.IsNull()) {
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
cout<<"FindStateThroughVertex: warning: all vertices are avoided"<<endl;
#endif
return TopAbs_UNKNOWN; // failure

View File

@@ -187,7 +187,7 @@ void TopOpeBRepBuild_Builder::GFillCurveTopologyWES(const TopOpeBRepDS_CurveIter
myBuildTool.PCurve(WESF,E,C2D);
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
EhasPConWESF = FC2D_HasCurveOnSurface(E,WESF);
if (!EhasPConWESF) cout<<"TopOpeBRepBuild_Builder::GFillCurveTopologyWES : Null PCurve on F"<<iWESF<<endl;
#endif

View File

@@ -330,7 +330,7 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole()
} // === fin RESNEWSHE
else {
#ifdef DEB
#ifdef TOPOPEBREPBUILD_DEB
cout<<"MergeKPartiskole : ires = "<<ires<<endl;
#endif
}

View File

@@ -317,7 +317,6 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
cout<<endl;GdumpSHA(FF,(char *) "#--- GFABUMakeFaces ");cout<<endl;
GdumpFABU(FABU);debgfabu(iF);
}
Standard_Boolean strange = TopOpeBRepDS_GettraceSTRANGE();
#endif
TopTools_ListOfShape lnewFace;
@@ -560,8 +559,9 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
Standard_Boolean topurge = FUN_purgeFon1nonoriE(newFace);
if (topurge) {
#ifdef DEB
if (strange) cout<<"Builder::GFABUMakeFaces -> purgeFon1nonoriE\n";
#ifdef TOPOPEBREPBUILD_DEB
if (TopOpeBRepDS_GettraceSTRANGE())
cout<<"Builder::GFABUMakeFaces -> purgeFon1nonoriE\n";
#endif
continue;
}