0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)
[occt.git] / src / gce / gce_MakeCone.cxx
index 566bdd7..696e440 100755 (executable)
@@ -18,7 +18,7 @@ gce_MakeCone::gce_MakeCone(const gp_Ax2&       A2    ,
 {
   if (Radius < 0.0) { TheError = gce_NegativeRadius; }
   else {
-    if (Ang <= gp::Resolution() || PI/2-Ang <= gp::Resolution()) {
+    if (Ang <= gp::Resolution() || M_PI/2-Ang <= gp::Resolution()) {
       TheError = gce_BadAngle;
     }
     else {
@@ -58,7 +58,7 @@ gce_MakeCone::gce_MakeCone(const gp_Pnt& P1 ,
   Standard_Real Dist4 = L1.Distance(P4);
   Standard_Real DifRad = Dist3-Dist4;
   Standard_Real angle = Abs(ATan(DifRad/(Dist13-Dist14)));
-  if(Abs(PI/2.-angle) < RealEpsilon() || Abs(angle) < RealEpsilon()) { TheError = gce_NullRadius; return; }
+  if(Abs(M_PI/2.-angle) < RealEpsilon() || Abs(angle) < RealEpsilon()) { TheError = gce_NullRadius; return; }
   Standard_Real R1 = PP3.Distance(P3);
   Standard_Real R2 = PP4.Distance(P4);
   if (R1 < 0.0 || R2 < 0.0) { TheError = gce_NegativeRadius; return; }
@@ -165,7 +165,7 @@ gce_MakeCone::gce_MakeCone(const gp_Pnt&       P1   ,
     }
     else {
       Standard_Real Angle = Abs(atan((R1-R2)/dist));
-      if (Abs(PI/2.-Angle)<RealEpsilon() || Abs(Angle)<RealEpsilon()) {
+      if (Abs(M_PI/2.-Angle)<RealEpsilon() || Abs(Angle)<RealEpsilon()) {
        TheError = gce_NullAngle;
       }
       else {