mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -76,7 +76,7 @@
|
||||
{
|
||||
if (i == 1) aFMulDiff = aCurrentVal - Deg - 1;
|
||||
if (i == NbKnots) aLMulDiff = aCurrentVal - Deg - 1;
|
||||
#ifdef DEB
|
||||
#ifdef STEPTOGEOM_DEB
|
||||
cout << "\nWrong multiplicity " << aCurrentVal << " on " << i
|
||||
<< " knot!" << "\nChanged to " << Deg + 1 << endl;
|
||||
#endif
|
||||
@@ -134,9 +134,6 @@
|
||||
// force periodicity on closed curves
|
||||
if ( SC->ClosedCurve() && CC->Degree() >1 && CC->IsClosed() ) {
|
||||
CC->SetPeriodic();
|
||||
//#ifdef DEB
|
||||
// cout << "Warning: "__FILE__": Closed curve made periodic" << endl;
|
||||
//#endif
|
||||
}
|
||||
return Standard_True;
|
||||
}
|
||||
|
@@ -81,9 +81,6 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
|
||||
return StepToGeom_MakeBSplineCurve::Convert(BSPL,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_UniformCurve))) {
|
||||
//#ifdef DEBUG
|
||||
// cout << "Warning : converting UniformCurve onto BSplineCurveWithKnots" << endl;
|
||||
//#endif
|
||||
const Handle(StepGeom_UniformCurve) UC = Handle(StepGeom_UniformCurve)::DownCast(SC);
|
||||
const Handle(StepGeom_BSplineCurveWithKnots) BSPL = new StepGeom_BSplineCurveWithKnots;
|
||||
BSPL->SetDegree(UC->Degree());
|
||||
@@ -104,9 +101,6 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
|
||||
return StepToGeom_MakeBSplineCurve::Convert(BSPL,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformCurve))) {
|
||||
//#ifdef DEBUG
|
||||
// cout << "Warning : converting QuasiUniformCurve onto BSplineCurveWithKnots" << endl;
|
||||
//#endif
|
||||
const Handle(StepGeom_QuasiUniformCurve) QUC =
|
||||
Handle(StepGeom_QuasiUniformCurve)::DownCast(SC);
|
||||
const Handle(StepGeom_BSplineCurveWithKnots) BSPL = new StepGeom_BSplineCurveWithKnots;
|
||||
@@ -130,9 +124,6 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
|
||||
return StepToGeom_MakeBSplineCurve::Convert(BSPL,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_UniformCurveAndRationalBSplineCurve))) {
|
||||
//#ifdef DEBUG
|
||||
// cout << "Warning : converting Rational UniformCurve onto BSplineCurveWithKnots" << endl;
|
||||
//#endif
|
||||
const Handle(StepGeom_UniformCurveAndRationalBSplineCurve) RUC =
|
||||
Handle(StepGeom_UniformCurveAndRationalBSplineCurve)::DownCast(SC);
|
||||
const Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve) RBSPL =
|
||||
@@ -152,9 +143,6 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
|
||||
return StepToGeom_MakeBSplineCurve::Convert(RBSPL,*((Handle(Geom_BSplineCurve)*)&CC));
|
||||
}
|
||||
if (SC->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformCurveAndRationalBSplineCurve))) {
|
||||
//#ifdef DEBUG
|
||||
// cout << "Warning : converting Rational QuasiUniformCurve onto BSplineCurveWithKnots" << endl;
|
||||
//#endif
|
||||
const Handle(StepGeom_QuasiUniformCurveAndRationalBSplineCurve) RQUC =
|
||||
Handle(StepGeom_QuasiUniformCurveAndRationalBSplineCurve)::DownCast(SC);
|
||||
const Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve) RBSPL =
|
||||
|
@@ -96,9 +96,6 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BSPL,*((Handle(Geom_BSplineSurface)*)&CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_UniformSurface))) {
|
||||
//#ifdef DEBUG
|
||||
// cout << "Warning : converting UniformSurface onto BSplineSurfaceWithKnots" << endl;
|
||||
//#endif
|
||||
const Handle(StepGeom_UniformSurface) US = Handle(StepGeom_UniformSurface)::DownCast(SS);
|
||||
const Handle(StepGeom_BSplineSurfaceWithKnots) BSPL = new StepGeom_BSplineSurfaceWithKnots;
|
||||
BSPL->SetUDegree(US->UDegree());
|
||||
@@ -131,9 +128,6 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BSPL,*((Handle(Geom_BSplineSurface)*)&CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformSurface))) {
|
||||
//#ifdef DEBUG
|
||||
// cout << "Warning : converting QuasiUniformSurface onto BSplineSurfaceWithKnots" << endl;
|
||||
//#endif
|
||||
const Handle(StepGeom_QuasiUniformSurface) QUS =
|
||||
Handle(StepGeom_QuasiUniformSurface)::DownCast(SS);
|
||||
const Handle(StepGeom_BSplineSurfaceWithKnots) BSPL = new StepGeom_BSplineSurfaceWithKnots;
|
||||
@@ -171,9 +165,6 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
|
||||
return StepToGeom_MakeBSplineSurface::Convert(BSPL,*((Handle(Geom_BSplineSurface)*)&CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_UniformSurfaceAndRationalBSplineSurface))) {
|
||||
//#ifdef DEBUG
|
||||
// cout << "Warning : converting Rational UniformSurface onto BSplineSurfaceWithKnots" << endl;
|
||||
//#endif
|
||||
const Handle(StepGeom_UniformSurfaceAndRationalBSplineSurface) RUS =
|
||||
Handle(StepGeom_UniformSurfaceAndRationalBSplineSurface)::DownCast(SS);
|
||||
const Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) RBSPL =
|
||||
@@ -203,9 +194,6 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
|
||||
return StepToGeom_MakeBSplineSurface::Convert(RBSPL,*((Handle(Geom_BSplineSurface)*)&CS));
|
||||
}
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface))) {
|
||||
//#ifdef DEBUG
|
||||
// cout << "Warning : converting Rational QuasiUniformSurface onto BSplineSurfaceWithKnots" << endl;
|
||||
//#endif
|
||||
const Handle(StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface) RQUS =
|
||||
Handle(StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface)::DownCast(SS);
|
||||
const Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) RBSPL =
|
||||
|
@@ -56,9 +56,6 @@ Standard_Boolean StepToGeom_MakeSurface::Convert (const Handle(StepGeom_Surface)
|
||||
{
|
||||
// sln 01.10.2001 BUC61003. If entry shell is NULL do nothing
|
||||
if(SS.IsNull()) {
|
||||
//#ifdef DEB
|
||||
// cout<<"Warning: StepToGeom_MakeSurface: Null Surface:";
|
||||
//#endif
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
@@ -125,7 +122,7 @@ Standard_Boolean StepToGeom_MakeSurface::Convert (const Handle(StepGeom_Surface)
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
// ShapeTool_DB ?
|
||||
#ifdef DEB //:s5
|
||||
#ifdef STEPTOGEOM_DEB //:s5
|
||||
cout<<"Warning: StepToGeom_MakeSurface: Exception:";
|
||||
Standard_Failure::Caught()->Print(cout); cout << endl;
|
||||
#endif
|
||||
|
@@ -259,9 +259,6 @@ Standard_Boolean StepToGeom_MakeTrimmedCurve::Convert (const Handle(StepGeom_Tri
|
||||
}
|
||||
}
|
||||
else {
|
||||
//#ifdef DEBUG
|
||||
// cout << "Trimming Failed" << endl;
|
||||
//#endif
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
|
@@ -97,8 +97,5 @@ Standard_Boolean StepToGeom_MakeTrimmedCurve2d::Convert (const Handle(StepGeom_T
|
||||
CC = Geom2dConvert::CurveToBSplineCurve(theTrimmed);
|
||||
return Standard_True;
|
||||
}
|
||||
//#ifdef DEB
|
||||
// else cout << "Warning: TrimmedCurve2d not translated" << endl;
|
||||
//#endif
|
||||
return Standard_False;
|
||||
}
|
||||
|
Reference in New Issue
Block a user