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:
@@ -783,7 +783,7 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve ,
|
||||
}
|
||||
|
||||
type = curve->DynamicType();
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Pnt2d Point(asecondpoint->Pnt2d());
|
||||
#else
|
||||
asecondpoint->Pnt2d();
|
||||
@@ -915,7 +915,7 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve ,
|
||||
case 2 : {
|
||||
GccAna_LinPnt2dBisec Bisector(line,asecondpoint->Pnt2d());
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Vec2d V(line.Direction());
|
||||
#else
|
||||
line.Direction();
|
||||
|
@@ -427,7 +427,7 @@ void Bisector_BisecPC::Values(const Standard_Real U,
|
||||
//purpose :
|
||||
//=============================================================================
|
||||
// Unused :
|
||||
#ifdef DEB_CUR
|
||||
#ifdef OCCT_DEBUG_CUR
|
||||
static Standard_Real Curvature (const Handle(Geom2d_Curve)& C,
|
||||
Standard_Real U,
|
||||
Standard_Real Tol)
|
||||
@@ -488,7 +488,7 @@ Standard_Real Bisector_BisecPC::Distance (const Standard_Real U) const
|
||||
else {
|
||||
Standard_Real A = 0.5*SquareMagPPC/Prosca;
|
||||
Standard_Real Dist = A*A*NorNor;
|
||||
#ifdef DEB_CUR
|
||||
#ifdef OCCT_DEBUG_CUR
|
||||
//----------------------------------------
|
||||
// Test Curvature if the curve is concave.
|
||||
//----------------------------------------
|
||||
|
@@ -332,7 +332,7 @@ void Bisector_Inter::NeighbourPerform(const Handle(Bisector_BisecCC)& Bis1,
|
||||
// Change guiedline on Bis2.
|
||||
BisTemp = Bis2->ChangeGuide();
|
||||
Guide = Bis2->Curve(2);
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Pnt2d P2S = Bis2->ValueAndDist(D2.FirstParameter(),U1,UMax,Dist);
|
||||
gp_Pnt2d P2E = Bis2->ValueAndDist(D2.LastParameter() ,U1,UMin,Dist);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user