1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)

This commit is contained in:
DBV
2011-12-16 08:50:03 +00:00
committed by bugmaster
parent bc650d4170
commit c6541a0c86
438 changed files with 2142 additions and 2188 deletions

View File

@@ -395,7 +395,7 @@ static Standard_Integer lintang (Draw_Interpretor& di,Standard_Integer n, const
di << "Second argument must be a line";
return 1;
}
Standard_Real ang = atof(a[4]) * PI180;
Standard_Real ang = atof(a[4]) * (M_PI / 180.0);
Geom2dGcc_Lin2dTanObl ct3(Geom2dGcc::Unqualified(C1),
L->Lin2d(),
Precision::Angular(),

View File

@@ -58,8 +58,8 @@ BattenCurve(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
if (! DrawTrSurf::GetPoint2d(cp2, P2) ) return 1;
FairCurve_Batten* Bat = new FairCurve_Batten (P1, P2, h);
Bat->SetAngle1(a1*PI/180);
Bat->SetAngle2(a2*PI/180);
Bat->SetAngle1(a1*M_PI/180);
Bat->SetAngle2(a2*M_PI/180);
Ok = Bat->Compute(Iana);
@@ -102,8 +102,8 @@ MVCurve(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
if (! DrawTrSurf::GetPoint2d(cp2, P2) ) return 1;
FairCurve_MinimalVariation* MVC = new FairCurve_MinimalVariation (P1, P2, h);
MVC->SetAngle1(a1*PI/180);
MVC->SetAngle2(a2*PI/180);
MVC->SetAngle1(a1*M_PI/180);
MVC->SetAngle2(a2*M_PI/180);
Ok = MVC->Compute(Iana);