#include <TopTools_DataMapOfShapeShape.hxx>
#include <NCollection_Array1.hxx>
-#ifdef DEB
+#ifdef OCCT_DEBUG
#define DEBUG
#endif
}
if(aResWires.Length()>1) {
-#ifdef SHAPEFIX_DEB
+#ifdef OCCT_DEBUG
cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
#endif
}
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
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
}
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
}
}
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
w1.Nullify();
w2.Nullify();
i = 0;
-#ifdef SHAPEFIX_DEB
+#ifdef OCCT_DEBUG
cout << "Warning: ShapeFix_Face::FixMissingSeam(): open degenerated wire removed" << endl;
#endif
continue;
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 );
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
}
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;