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

@@ -413,7 +413,7 @@ static Standard_Boolean IsInside(const TopoDS_Shape& S1,
return Standard_False;
}
}
#ifdef DEB
#ifdef LOCOPE_DEB
cout << "Classification impossible sur vertex " << endl;
#endif

View File

@@ -152,7 +152,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
}
else {
// Cas non traite : on est a cheval
#ifdef DEB
#ifdef LOCOPE_DEB
cout <<" cas a cheval."<< endl;
#endif
@@ -204,7 +204,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
}
else {
// Cas non traite : on est a cheval
#ifdef DEB
#ifdef LOCOPE_DEB
cout <<" cas a cheval."<< endl;
#endif
// myLFrom.Append(edgf);
@@ -287,7 +287,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
}
if (IsSame) {
#ifdef DEB
#ifdef LOCOPE_DEB
cout <<"memes bsplines."<< endl;
#endif
myLFrom.Append(edgf);
@@ -347,7 +347,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
}
if (IsSame) {
#ifdef DEB
#ifdef LOCOPE_DEB
cout <<"memes beziers."<< endl;
#endif
myLFrom.Append(edgf);

View File

@@ -1253,7 +1253,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
for (itl.Initialize(itdmsls.Value());itl.More(); itl.Next()) {
if (theSubs.IsCopied(itl.Value())) {
if (theSubs.Copy(itl.Value()).Extent() != 1) {
#ifdef DEB
#ifdef LOCOPE_DEB
cout << "Invalid number of descendant" << endl;
#endif
return;

View File

@@ -559,7 +559,7 @@ void LocOpe_SplitShape::Add(const TopoDS_Wire& W,
AddClosedWire(W,F);
}
} catch (Standard_Failure ) {
#ifdef DEB
#ifdef LOCOPE_DEB
cout << "Warning: SpliShape internal problem detected, some faces may be lost. Check input edges/wires" <<endl;
#endif
return;
@@ -1168,7 +1168,7 @@ const TopTools_ListOfShape& LocOpe_SplitShape::DescendantShapes
Rebuild(myShape);
myDone = Standard_True;
}
#ifdef DEB
#ifdef LOCOPE_DEB
if (!myDblE.IsEmpty()) {
cout << "Le shape comporte des faces invalides" << endl;
}
@@ -1286,7 +1286,7 @@ static Standard_Boolean IsInside(const TopoDS_Face& F,
Standard_Real f,l;
Handle(Geom2d_Curve) C2d = BRep_Tool::CurveOnSurface(edg,F,f,l);
if(C2d.IsNull()) {
#ifdef DEB
#ifdef LOCOPE_DEB
cout << "Edge is not on surface" <<endl;
#endif
return Standard_False;

View File

@@ -293,7 +293,7 @@ void LocOpe_Spliter::Perform(const Handle(LocOpe_WiresOnShape)& PW)
theSubs.Substitute(ebase.Oriented(TopAbs_FORWARD),lsubs);
}
else {
#ifdef DEB
#ifdef LOCOPE_DEB
cout << "Pb pour substitution" << endl;
#endif
}