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:
@@ -116,7 +116,7 @@ TopoDS_Shape XSAlgo_AlgoContainer::ProcessShape (const TopoDS_Shape& shape,
|
||||
TCollection_AsciiString str ( seq );
|
||||
str += ".exec.op";
|
||||
if ( ! rsc->Find ( str.ToCString() ) ) {
|
||||
#ifdef XSALGO_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
{
|
||||
static Standard_Integer time = 0;
|
||||
if ( ! time )
|
||||
@@ -146,7 +146,7 @@ TopoDS_Shape XSAlgo_AlgoContainer::ProcessShape (const TopoDS_Shape& shape,
|
||||
}
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
#ifdef XSALGO_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: XSAlgo_AlgoContainer::ProcessShape(): Exception in ShapeFix::Shape" << endl;
|
||||
Standard_Failure::Caught()->Print(cout); cout << endl;
|
||||
#endif
|
||||
@@ -236,7 +236,7 @@ TopoDS_Shape XSAlgo_AlgoContainer::PerformFixShape(const TopoDS_Shape& S,
|
||||
}
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: XSAlgo_AlgoContainer::PerformFixShape(): Exception in ShapeFix::Shape" << endl;
|
||||
#endif
|
||||
}
|
||||
@@ -298,7 +298,7 @@ Standard_Boolean XSAlgo_AlgoContainer::CheckPCurve (const TopoDS_Edge& E,
|
||||
Standard_Real DV = Abs (PUV1.Y() - PUV2.Y());
|
||||
if ( DU/8. > (UL/6. - UF/6.) || DV/8. > (VL/6. - VF/6.) ) {
|
||||
ShapeBuild_Edge().RemovePCurve(E,face);
|
||||
#ifdef XSALGO_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Removing pcuve periodic"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -323,7 +323,7 @@ Standard_Boolean XSAlgo_AlgoContainer::CheckPCurve (const TopoDS_Edge& E,
|
||||
|
||||
if (!((Dist11 <= preci) && (Dist22 <= preci))) {
|
||||
ShapeBuild_Edge().RemovePCurve(E,face);
|
||||
#ifdef XSALGO_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Removing pcurve points"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -496,7 +496,7 @@ void XSAlgo_AlgoContainer::MergeTransferInfo(const Handle(Transfer_FinderProcess
|
||||
else if ( TransientListBinder->NbTransients() > 1 ) {
|
||||
resBinder->AddResult(TransientListBinder);
|
||||
// resBinder->SetNext(TransientListBinder, Standard_True);
|
||||
#ifdef XSALGO_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Info: TransientListBinder created for splitted shape"<<endl;
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user