1
0
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:
abv
2014-10-28 12:41:04 +03:00
committed by bugmaster
parent a507ffd9d7
commit 0797d9d30a
700 changed files with 3932 additions and 4250 deletions

View File

@@ -36,7 +36,7 @@ void TopClass_Classifier3d::Reset(const gp_Lin& L,
void TopClass_Classifier3d::Compare(const TopoDS_Face& Face,
const TopAbs_Orientation) {
if(!isSet) {
#ifdef TOPCLASS_DEB
#ifdef OCCT_DEBUG
cout<<" Call to TopClass_Classifier3d::Compare without a Reset ! ";
#endif
return;
@@ -52,7 +52,7 @@ void TopClass_Classifier3d::Compare(const TopoDS_Face& Face,
myFace = myIntersector.Face();
if(Abs(myParam)<=myTolerance) {
//-- #########################################
#ifdef TOPCLASS_DEB
#ifdef OCCT_DEBUG
cout<<" myParam = "<<myParam<<" ds TopClass_Classifier3d.gxx "<<endl;
#endif
//-- #########################################
@@ -68,7 +68,7 @@ void TopClass_Classifier3d::Compare(const TopoDS_Face& Face,
else if(myIntersector.Transition() == IntCurveSurface_In) {
myState = TopAbs_OUT;
}
#ifdef TOPCLASS_DEB
#ifdef OCCT_DEBUG
else {
cout<<" -------- Probleme ds TopClass_Classifier3d.gxx "<<endl;
}

View File

@@ -14,7 +14,7 @@
//-- TopClass_SolidClassifier.gxx
#ifdef DEB
#ifdef OCCT_DEBUG
Standard_EXPORT Standard_Boolean TopClass_GettraceFC();
#endif
@@ -38,7 +38,7 @@ TopClass_SolidClassifier::TopClass_SolidClassifier(TheSolidExplorer& S,
void TopClass_SolidClassifier::Perform(TheSolidExplorer& SolidExplorer,
const gp_Pnt& P,
const Standard_Real Tol) {
#ifdef DEB
#ifdef OCCT_DEBUG
Standard_Boolean trace = TopClass_GettraceFC();
#endif
@@ -79,7 +79,7 @@ void TopClass_SolidClassifier::Perform(TheSolidExplorer& SolidExplorer,
parmin = Intersector.WParameter();
if(Abs(parmin)<=Tol) {
#ifdef DEB
#ifdef OCCT_DEBUG
if (trace) {
//-- #########################################
cout<<" parmin = "<<parmin<< " avec Par = "<<Par;
@@ -104,7 +104,7 @@ void TopClass_SolidClassifier::Perform(TheSolidExplorer& SolidExplorer,
myState = 4; //-- OUT --
}
else {
#ifdef TOPCLASS_DEB
#ifdef OCCT_DEBUG
cout<<"*Probleme ds TopClass_SolidClassifier.gxx"<<endl;
#endif
}
@@ -123,11 +123,11 @@ void TopClass_SolidClassifier::Perform(TheSolidExplorer& SolidExplorer,
myState = 4; //-- OUT --
}
else {
#ifdef TOPCLASS_DEB
#ifdef OCCT_DEBUG
cout<<"*Probleme ds TopClass_SolidClassifier.gxx "<<endl;
#endif
}
#ifdef DEB
#ifdef OCCT_DEBUG
//-- #########################################
// cout<<" Intersector.State() == TopAbs_ON";
// cout<<" ds TopClass_SolidClassifier.gxx "<<endl;
@@ -162,7 +162,7 @@ void TopClass_SolidClassifier::Perform(TheSolidExplorer& SolidExplorer,
}
} //-- Exploration of the shells
#ifdef DEB
#ifdef OCCT_DEBUG
//#################################################
SolidExplorer.DumpSegment(P,L,parmin,State());
//#################################################