mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -104,7 +104,7 @@ Standard_Integer DNaming_BooleanOperationDriver::Execute(TFunction_Logbook& theL
|
||||
Handle(TNaming_NamedShape) anObjectNS;
|
||||
aLab.FindAttribute(TNaming_NamedShape::GetID(), anObjectNS);
|
||||
if (anObjectNS.IsNull() || anObjectNS->IsEmpty()) {
|
||||
#ifdef DNAMING_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"BooleanOperationDriver:: Object is empty"<<endl;
|
||||
#endif
|
||||
aFunction->SetFailure(WRONG_ARGUMENT);
|
||||
@@ -115,7 +115,7 @@ Standard_Integer DNaming_BooleanOperationDriver::Execute(TFunction_Logbook& theL
|
||||
Handle(TNaming_NamedShape) aToolNS = DNaming::GetObjectValue(aToolObj);
|
||||
|
||||
if (aToolNS.IsNull() || aToolNS->IsEmpty()) {
|
||||
#ifdef DNAMING_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"BooleanOperationDriver:: Tool is empty"<<endl;
|
||||
#endif
|
||||
aFunction->SetFailure(WRONG_ARGUMENT);
|
||||
@@ -125,7 +125,7 @@ Standard_Integer DNaming_BooleanOperationDriver::Execute(TFunction_Logbook& theL
|
||||
TopoDS_Shape aTOOL = aToolNS->Get();
|
||||
TopoDS_Shape anOBJECT = anObjectNS->Get();
|
||||
if (aTOOL.IsNull() || anOBJECT.IsNull()) {
|
||||
#ifdef DNAMING_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"BooleanOperationDriver:: Tool is null"<<endl;
|
||||
#endif
|
||||
aFunction->SetFailure(WRONG_ARGUMENT);
|
||||
@@ -205,7 +205,7 @@ static Standard_Boolean IsValidSurfType(const TopoDS_Face& theFace) {
|
||||
return Standard_True;
|
||||
}
|
||||
*/
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
//ModDbgTools_Write(theFace, "Surf");
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -262,7 +262,7 @@ void DNaming_BooleanOperationDriver::LoadNamingDS (const TDF_Label& theResultLab
|
||||
const TopoDS_Shape& ObjSh = MS.Shape1();
|
||||
const TopoDS_Shape& ToolSh = MS.Shape2();
|
||||
if (ResSh.IsNull()) {
|
||||
#ifdef DNAMING_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"LoadFuseNamingDS: The result of the boolean operation is null"<<endl;
|
||||
#endif
|
||||
return;
|
||||
@@ -337,7 +337,7 @@ void DNaming_BooleanOperationDriver::LoadSectionNDS (const TDF_Label& theResultL
|
||||
const TopoDS_Shape& ObjSh = MS.Shape1();
|
||||
const TopoDS_Shape& ToolSh = MS.Shape2();
|
||||
if (ResSh.IsNull()) {
|
||||
#ifdef DNAMING_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"LoadSectionNamingDS: The result of the boolean operation is null"<<endl;
|
||||
#endif
|
||||
return;
|
||||
@@ -368,10 +368,6 @@ Standard_Boolean DNaming_BooleanOperationDriver::CheckAndLoad
|
||||
{
|
||||
|
||||
if (theMkOpe.IsDone() && !theMkOpe.Shape().IsNull()) {
|
||||
#ifdef MDTV_DEB
|
||||
Standard_CString aFileName = "BoolOp.brep";
|
||||
Write(theMkOpe.Shape(), aFileName);
|
||||
#endif
|
||||
if (theMkOpe.Shape().ShapeType() == TopAbs_COMPOUND) {
|
||||
TopoDS_Iterator anItr(theMkOpe.Shape());
|
||||
if(!anItr.More()) {
|
||||
|
Reference in New Issue
Block a user