mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -76,7 +76,7 @@
|
||||
{
|
||||
if (i == 1) aFMulDiff = aCurrentVal - Deg - 1;
|
||||
if (i == NbKnots) aLMulDiff = aCurrentVal - Deg - 1;
|
||||
#ifdef STEPTOGEOM_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "\nWrong multiplicity " << aCurrentVal << " on " << i
|
||||
<< " knot!" << "\nChanged to " << Deg + 1 << endl;
|
||||
#endif
|
||||
|
@@ -157,12 +157,6 @@ Standard_Boolean StepToGeom_MakeBSplineSurface::Convert
|
||||
((SumMult - UMult.Value(1))== NUPoles)) {
|
||||
shouldBeUPeriodic = Standard_True;
|
||||
}
|
||||
/*else { // --- What is that ??? ---
|
||||
shouldBeUPeriodic = Standard_False;
|
||||
#ifdef DEBUG
|
||||
cout << "Strange BSpline Surface Descriptor" << endl;
|
||||
#endif
|
||||
}*/
|
||||
|
||||
// --- V Periodic ? ---
|
||||
|
||||
@@ -180,12 +174,6 @@ Standard_Boolean StepToGeom_MakeBSplineSurface::Convert
|
||||
((SumMult - VMult.Value(1)) == NVPoles)) {
|
||||
shouldBeVPeriodic = Standard_True;
|
||||
}
|
||||
/*else { // --- What is that ??? ---
|
||||
shouldBeVPeriodic = Standard_False;
|
||||
#ifdef DEBUG
|
||||
cout << "Strange BSpline Surface Descriptor" << endl;
|
||||
#endif
|
||||
}*/
|
||||
|
||||
if (SS->IsKind(STANDARD_TYPE(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface))) {
|
||||
const Handle(TColStd_HArray2OfReal)& aWeight = BSR->WeightsData();
|
||||
|
@@ -125,7 +125,7 @@ Standard_Boolean StepToGeom_MakeSurface::Convert (const Handle(StepGeom_Surface)
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
// ShapeTool_DB ?
|
||||
#ifdef STEPTOGEOM_DEB //:s5
|
||||
#ifdef OCCT_DEBUG //:s5
|
||||
cout<<"Warning: StepToGeom_MakeSurface: Exception:";
|
||||
Standard_Failure::Caught()->Print(cout); cout << endl;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user