mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -105,7 +105,7 @@
|
||||
#include <TopTools_DataMapOfShapeShape.hxx>
|
||||
#include <NCollection_Array1.hxx>
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
#define DEBUG
|
||||
#endif
|
||||
|
||||
@@ -348,7 +348,7 @@ static Standard_Boolean SplitWire(const TopoDS_Face &face, const TopoDS_Wire& wi
|
||||
}
|
||||
|
||||
if(aResWires.Length()>1) {
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
|
||||
#endif
|
||||
}
|
||||
@@ -992,7 +992,7 @@ Standard_Boolean ShapeFix_Face::FixAddNaturalBound()
|
||||
BRepTools::Update(myFace);
|
||||
|
||||
/**/
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Natural bound on sphere or torus with holes added"<<endl; // mise au point !
|
||||
#endif
|
||||
SendWarning ( myFace, Message_Msg ( "FixAdvFace.FixOrientation.MSG0" ) );// Face created with natural bounds
|
||||
@@ -1103,7 +1103,7 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
|
||||
ws.SetValue ( 1, sbdw->Wire() );
|
||||
SendWarning ( sbdw->Wire(), Message_Msg ( "FixAdvFace.FixOrientation.MSG5" ) );// Wire on face was reversed
|
||||
done = Standard_True;
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Wire reversed"<<endl; // mise au point !
|
||||
#endif
|
||||
}
|
||||
@@ -1390,7 +1390,7 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
|
||||
Standard_Integer k =1;
|
||||
for( ; k <= aSeqReversed.Length(); k++ )
|
||||
{
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Wire no "<<aSeqReversed.Value(k)<<" of "<<nb<<" reversed"<<endl; // mise au point !
|
||||
#endif
|
||||
}
|
||||
@@ -1554,18 +1554,18 @@ Standard_Boolean ShapeFix_Face::FixMissingSeam()
|
||||
}
|
||||
else {
|
||||
w2.Reverse();
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( ! isdeg2 ) cout << "Warning: ShapeFix_Face::FixMissingSeam(): wire reversed" << endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
else cout << "Warning: ShapeFix_Face::FixMissingSeam(): incompatible open wires" << endl;
|
||||
#endif
|
||||
}
|
||||
// else return Standard_False; // abort
|
||||
else {
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Face::FixMissingSeam(): more than two open wires detected!" << endl;
|
||||
#endif
|
||||
//:abv 30.08.09: if more than one open wires and more than two of them are
|
||||
@@ -1575,7 +1575,7 @@ Standard_Boolean ShapeFix_Face::FixMissingSeam()
|
||||
w1.Nullify();
|
||||
w2.Nullify();
|
||||
i = 0;
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Face::FixMissingSeam(): open degenerated wire removed" << endl;
|
||||
#endif
|
||||
continue;
|
||||
@@ -1875,12 +1875,12 @@ Standard_Boolean ShapeFix_Face::FixSmallAreaWire()
|
||||
if ( nbRemoved <=0 ) return Standard_False;
|
||||
|
||||
if ( nbWires <=0 ) {
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Face: All wires on a face have small area; left untouched" << endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Face: " << nbRemoved << " small area wire(s) removed" << endl;
|
||||
#endif
|
||||
if ( ! Context().IsNull() ) Context()->Replace ( myFace, face );
|
||||
@@ -2095,7 +2095,7 @@ Standard_Boolean ShapeFix_Face::FixLoopWire(TopTools_SequenceOfShape& aResWires)
|
||||
Standard_Boolean isDone =(aResWires.Length() && isClosed);
|
||||
if(isDone && aResWires.Length() >1)
|
||||
{
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
|
||||
#endif
|
||||
}
|
||||
@@ -2370,7 +2370,7 @@ Standard_Boolean ShapeFix_Face::FixSplitFace(const TopTools_DataMapOfShapeListOf
|
||||
V1=sae.FirstVertex(E1);
|
||||
V2=sae.LastVertex(E2);
|
||||
if(!V1.IsSame(V2)) {
|
||||
#ifdef SHAPEFIX_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"wire not closed --> stop split"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
Reference in New Issue
Block a user