1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-24 13:50:49 +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

@@ -105,9 +105,9 @@ HLRBRep::PolyHLRAngleAndDeflection (const Standard_Real InAngl,
Standard_Real& OutAngl,
Standard_Real& OutDefl)
{
static Standard_Real HAngMin = 1*PI/180;
static Standard_Real HAngLim = 5*PI/180;
static Standard_Real HAngMax = 35*PI/180;
static Standard_Real HAngMin = 1*M_PI/180;
static Standard_Real HAngLim = 5*M_PI/180;
static Standard_Real HAngMax = 35*M_PI/180;
OutAngl = InAngl;
if (OutAngl < HAngMin) OutAngl = HAngMin;

View File

@@ -439,7 +439,7 @@ static Standard_Integer IndexPlusOnePerCentThree [] = { 1 , 2 , 0 };
HLRBRep_PolyAlgo::HLRBRep_PolyAlgo () :
myDebug (Standard_False),
myAngle (5 * PI / 180.),
myAngle (5 * M_PI / 180.),
myTolSta (0.1),
myTolEnd (0.9),
myTolAngular(0.001)
@@ -475,7 +475,7 @@ HLRBRep_PolyAlgo::HLRBRep_PolyAlgo (const Handle(HLRBRep_PolyAlgo)& A)
HLRBRep_PolyAlgo::HLRBRep_PolyAlgo (const TopoDS_Shape& S) :
myDebug (Standard_False),
myAngle (5 * PI / 180.),
myAngle (5 * M_PI / 180.),
myTolSta (0.1),
myTolEnd (0.9),
myTolAngular(0.001)