mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +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:
@@ -337,7 +337,7 @@ static Standard_Integer triangles(Draw_Interpretor& ,
|
||||
|
||||
if (n == 1) {
|
||||
disptriangles = !disptriangles;
|
||||
#ifdef DBREP_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
if (disptriangles) cout <<"Triangulations are always displayed"<<endl;
|
||||
else cout <<"Triangulations are displayed only if there is no geometric representation"<<endl;
|
||||
#endif
|
||||
@@ -387,7 +387,7 @@ static Standard_Integer polygons(Draw_Interpretor& ,
|
||||
|
||||
if (n == 1) {
|
||||
disppolygons = !disppolygons;
|
||||
#ifdef DBREP_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
if (disppolygons) cout <<"Polygons are always displayed"<<endl;
|
||||
else cout <<"Polygons are displayed only if there is no geometric representation"<<endl;
|
||||
#endif
|
||||
|
@@ -428,7 +428,7 @@ void DBRep_DrawableShape::DrawOn(Draw_Display& dis) const
|
||||
GeomAbs_SurfaceType SurfType = S.GetType();
|
||||
|
||||
// If the type of the surface is GeomAbs_SurfaceOfExtrusion or GeomAbs_SurfaceOfRevolution
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
GeomAbs_CurveType CurvType;
|
||||
#else
|
||||
GeomAbs_CurveType CurvType = GeomAbs_OtherCurve;
|
||||
|
@@ -108,14 +108,14 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
|
||||
|
||||
if (PCurve.IsNull())
|
||||
{
|
||||
#ifdef DBREP_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "DBRep_IsoBuilder : PCurve is null\n";
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
else if (U1 == U2)
|
||||
{
|
||||
#ifdef DBREP_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "DBRep_IsoBuilder PCurve : U1==U2\n";
|
||||
#endif
|
||||
return;
|
||||
@@ -140,7 +140,7 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
|
||||
U2 - TrimPCurve->BasisCurve()->LastParameter() > Precision::PConfusion())
|
||||
{
|
||||
AddElement (PCurve, TopologicalEdge.Orientation());
|
||||
#ifdef DBREP_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "DBRep_IsoBuilder TrimPCurve : parameters out of range\n";
|
||||
cout << " U1(" << U1 << "), Umin(" << PCurve->FirstParameter()
|
||||
<< "), U2(" << U2 << "), Umax(" << PCurve->LastParameter() << ")\n";
|
||||
@@ -152,7 +152,7 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
|
||||
{
|
||||
if (PCurve->FirstParameter() - U1 > Precision::PConfusion())
|
||||
{
|
||||
#ifdef DBREP_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
|
||||
cout << " U1(" << U1 << "), Umin(" << PCurve->FirstParameter() << ")\n";
|
||||
#endif
|
||||
@@ -160,7 +160,7 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
|
||||
}
|
||||
if (PCurve->FirstParameter() - U2 > Precision::PConfusion())
|
||||
{
|
||||
#ifdef DBREP_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
|
||||
cout << " U2(" << U2 << "), Umin(" << PCurve->FirstParameter() << ")\n";
|
||||
#endif
|
||||
@@ -168,7 +168,7 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
|
||||
}
|
||||
if (U1 - PCurve->LastParameter() > Precision::PConfusion())
|
||||
{
|
||||
#ifdef DBREP_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
|
||||
cout << " U1(" << U1 << "), Umax(" << PCurve->LastParameter() << ")\n";
|
||||
#endif
|
||||
@@ -176,7 +176,7 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
|
||||
}
|
||||
if (U2 - PCurve->LastParameter() > Precision::PConfusion())
|
||||
{
|
||||
#ifdef DBREP_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
|
||||
cout << " U2(" << U2 << "), Umax(" << PCurve->LastParameter() << ")\n";
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user