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:
@@ -133,7 +133,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
ChamfRad = Spine.Radius() - Dis;
|
||||
if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
|
||||
if( ChamfRad < 0 ) {
|
||||
#ifdef CHFIKPART_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -147,7 +147,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
if (ouvert) {
|
||||
if (Abs(angCon) - Abs(SemiAngl) > -Precision::Confusion() ) {
|
||||
#ifdef CHFIKPART_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"wrong choice of angle for the chamfer"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -161,7 +161,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
SemiAngl = Abs(angCon) + Angle;
|
||||
|
||||
if ( (M_PI / 2. - SemiAngl) < Precision::Confusion() ) {
|
||||
#ifdef CHFIKPART_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout <<"wrong choice of angle for the chamfer"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -195,7 +195,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
|
||||
if( ChamfRad < 0 ) {
|
||||
#ifdef CHFIKPART_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
@@ -149,7 +149,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
Rad = Cyl.Radius() - dis1;
|
||||
if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
|
||||
if(Rad < 0 ) {
|
||||
#ifdef CHFIKPART_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -405,7 +405,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
dis2 = temp2 + temp1 * (cosAhOC - temp1);
|
||||
|
||||
if (dis2 < -1.E-09) {
|
||||
#ifdef CHFIKPART_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"too great angle of chamfer"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
@@ -86,7 +86,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
gp_Pnt Or = Con.Location();
|
||||
Standard_Real u,v;
|
||||
ElSLib::PlaneParameters(PosPl,Or,u,v);
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Pnt2d pt2dPln(u,v);
|
||||
#endif
|
||||
ElSLib::PlaneD0(u,v,PosPl,Or);
|
||||
@@ -94,7 +94,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
gp_Pnt PtSp;
|
||||
gp_Vec DSp;
|
||||
ElCLib::D1(First,Spine,PtSp,DSp);
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Dir Dx(gp_Vec(Or,PtSp));
|
||||
#endif
|
||||
//compute the normal to the cone in PtSp
|
||||
@@ -188,7 +188,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
ChamfRad = Spine.Radius() - Dis1;
|
||||
if ( Abs(ChamfRad)<=Precision::Confusion() ) pointu = Standard_True;
|
||||
if( ChamfRad < 0 ) {
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"le chanfrein ne passe pas"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
@@ -131,7 +131,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
Rad = Cyl.Radius()- Dis1;
|
||||
if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
|
||||
if(Rad < 0 ) {
|
||||
#ifdef CHFIKPART_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
@@ -124,7 +124,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
Rad = Maxrad - Rabio;
|
||||
if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
|
||||
else if(Rad < 0){
|
||||
#ifdef CHFIKPART_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"the fillet does not pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
@@ -85,7 +85,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
ROff-=Radius;
|
||||
}
|
||||
else {
|
||||
#ifdef CHFIKPART_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"the fillet does not pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -293,7 +293,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
Rad = cylrad - Radius;
|
||||
if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
|
||||
else if(Rad < 0){
|
||||
#ifdef CHFIKPART_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"the fillet can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
@@ -84,7 +84,7 @@ Standard_Boolean ChFiKPart_Sphere(TopOpeBRepDS_DataStructure& DStr,
|
||||
pp.Z()-delta*di.Z());
|
||||
dz = gp_Dir(gp_Vec(p1,cen));
|
||||
if(Abs(ds1.Dot(dz)-1.)>ptol){
|
||||
#ifdef CHFIKPART_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"center of the spherical corner not found"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
Reference in New Issue
Block a user