mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0025266: Debug statements in the source are getting flushed on to the console
Output to cout activated previously in Debug mode by #ifdef DEB is suppressed by using macro <PACKAGE>_DEB instead of DEB
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 DEB
|
||||
#ifdef CHFIKPART_DEB
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -147,7 +147,9 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
if (ouvert) {
|
||||
if (Abs(angCon) - Abs(SemiAngl) > -Precision::Confusion() ) {
|
||||
#ifdef CHFIKPART_DEB
|
||||
cout<<"wrong choice of angle for the chamfer"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
@@ -159,7 +161,9 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
SemiAngl = Abs(angCon) + Angle;
|
||||
|
||||
if ( (M_PI / 2. - SemiAngl) < Precision::Confusion() ) {
|
||||
#ifdef CHFIKPART_DEB
|
||||
cout <<"wrong choice of angle for the chamfer"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
Dis1 = move * Tan(SemiAngl) - Dis * Abs(Sin(angCon));
|
||||
@@ -191,7 +195,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
|
||||
if( ChamfRad < 0 ) {
|
||||
#ifdef DEB
|
||||
#ifdef CHFIKPART_DEB
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
@@ -149,7 +149,9 @@ 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
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
@@ -403,7 +405,9 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
dis2 = temp2 + temp1 * (cosAhOC - temp1);
|
||||
|
||||
if (dis2 < -1.E-09) {
|
||||
#ifdef CHFIKPART_DEB
|
||||
cout<<"too great angle of chamfer"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
else if (dis2 < 1.E-09) {
|
||||
|
@@ -131,7 +131,9 @@ 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
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
|
@@ -124,7 +124,9 @@ 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
|
||||
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 DEB
|
||||
#ifdef CHFIKPART_DEB
|
||||
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 DEB
|
||||
#ifdef CHFIKPART_DEB
|
||||
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 DEB
|
||||
#ifdef CHFIKPART_DEB
|
||||
cout<<"center of the spherical corner not found"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
Reference in New Issue
Block a user