mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -386,7 +386,7 @@ parcen3(1,8)
|
||||
NbrSol++;
|
||||
cirsol(NbrSol) = gp_Circ2d(gp_Ax2d(Center,dirx),Radius);
|
||||
// =======================================================
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Dir2d dc1(center1.XY()-Center.XY());
|
||||
#endif
|
||||
gp_Dir2d dc2(origin2.XY()-Center.XY());
|
||||
|
@@ -389,7 +389,7 @@ Geom2dGcc_Circ2d2TanOnIter (const GccEnt_QualifiedCirc& Qualified1 ,
|
||||
gp_Vec2d Tan1,Tan2,Nor2;
|
||||
ElCLib::D2(Ufirst(1),C1,point1,Tan1,Nor2);
|
||||
Geom2dGcc_CurveTool::D1(Cu2,Ufirst(2),point2,Tan2);
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Vec2d Tan3(OnLine.Direction().XY());
|
||||
#else
|
||||
OnLine.Direction().XY();
|
||||
@@ -496,7 +496,7 @@ Geom2dGcc_Circ2d2TanOnIter (const GccEnt_QualifiedCirc& Qualified1 ,
|
||||
gp_Vec2d Tan1,Tan2;
|
||||
ElCLib::D1(Ufirst(1),C1,point1,Tan1);
|
||||
Geom2dGcc_CurveTool::D1(Cu2,Ufirst(2),point2,Tan2);
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Vec2d Tan3(-Sin(Ufirst(3)),Cos(Ufirst(3)));
|
||||
#endif
|
||||
point3 = ElCLib::Value(Ufirst(3),OnCirc);
|
||||
@@ -600,7 +600,7 @@ Geom2dGcc_Circ2d2TanOnIter (const GccEnt_QualifiedLin& Qualified1 ,
|
||||
gp_Vec2d Tan1,Tan2;
|
||||
ElCLib::D1(Ufirst(1),L1,point1,Tan1);
|
||||
Geom2dGcc_CurveTool::D1(Cu2,Ufirst(2),point2,Tan2);
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Vec2d Tan3(-Sin(Ufirst(3)),Cos(Ufirst(3)));
|
||||
#endif
|
||||
point3 = ElCLib::Value(Ufirst(3),OnCirc);
|
||||
@@ -704,7 +704,7 @@ Geom2dGcc_Circ2d2TanOnIter (const Geom2dGcc_QCurve& Qualified1 ,
|
||||
gp_Vec2d Tan1,Tan2;
|
||||
Geom2dGcc_CurveTool::D1(Cu1,Ufirst(1),point1,Tan1);
|
||||
Geom2dGcc_CurveTool::D1(Cu2,Ufirst(2),point2,Tan2);
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Vec2d Tan3(-Sin(Ufirst(3)),Cos(Ufirst(3)));
|
||||
#endif
|
||||
point3 = gp_Pnt2d(OnCirc.Location().XY()+
|
||||
|
@@ -376,7 +376,7 @@ pararg2(1,16)
|
||||
gp_Pnt2d Center(Intp.Point(i).Value());
|
||||
cirsol(NbrSol) = gp_Circ2d(gp_Ax2d(Center,dirx),Radius);
|
||||
// =======================================================
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Dir2d dir1(Center.XY()-center1.XY());
|
||||
#else
|
||||
Center.XY() ;
|
||||
@@ -859,7 +859,7 @@ pararg2(1,16)
|
||||
Adaptor3d_OffsetCurve C1(HCu1,cote1(jcote1));
|
||||
firstparam = Max(Geom2dGcc_CurveToolGeo::FirstParameter(C1),thefirst);
|
||||
lastparam = Min(Geom2dGcc_CurveToolGeo::LastParameter(C1),thelast);
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
IntRes2d_Domain D2(Geom2dGcc_CurveToolGeo::Value(C1,firstparam),firstparam,Tol,
|
||||
Geom2dGcc_CurveToolGeo::Value(C1,lastparam),lastparam,Tol);
|
||||
#else
|
||||
@@ -871,7 +871,7 @@ pararg2(1,16)
|
||||
Adaptor3d_OffsetCurve C2(HCu2,cote2(jcote2));
|
||||
firstparam = Max(Geom2dGcc_CurveToolGeo::FirstParameter(C2),thefirst);
|
||||
lastparam = Min(Geom2dGcc_CurveToolGeo::LastParameter(C2),thelast);
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
IntRes2d_Domain D2(Geom2dGcc_CurveToolGeo::Value(C2,firstparam),firstparam,Tol,
|
||||
Geom2dGcc_CurveToolGeo::Value(C2,lastparam),lastparam,Tol);
|
||||
#else
|
||||
|
@@ -157,7 +157,7 @@ Derivatives (const math_Vector& X ,
|
||||
InitDerivative(X,Point1,Point2,Vect11,Vect21,Vect12,Vect22);
|
||||
Standard_Real NormeD11 = Vect11.Magnitude();
|
||||
Standard_Real NormeD21 = Vect21.Magnitude();
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Vec2d V2V1(Vect11.XY(),Vect21.XY());
|
||||
#else
|
||||
Vect11.XY();
|
||||
@@ -193,7 +193,7 @@ Values (const math_Vector& X ,
|
||||
InitDerivative(X,Point1,Point2,Vect11,Vect21,Vect12,Vect22);
|
||||
Standard_Real NormeD11 = Vect11.Magnitude();
|
||||
Standard_Real NormeD21 = Vect21.Magnitude();
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Vec2d V2V1(Vect11.XY(),Vect21.XY());
|
||||
#else
|
||||
Vect11.XY();
|
||||
|
Reference in New Issue
Block a user