0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)
[occt.git] / src / ChFiKPart / ChFiKPart_ComputeData_Rotule.cxx
index 078eb13..1ca5319 100755 (executable)
@@ -89,7 +89,7 @@ Standard_Boolean ChFiKPart_MakeRotule(TopOpeBRepDS_DataStructure& DStr,
   //------------------------------------------------------------
   gp_Pnt pp;
   gp_Vec du,dv;
-  ElSLib::TorusD1(0.,PI/2,ppos,r,r,pp,du,dv);
+  ElSLib::TorusD1(0.,M_PI/2,ppos,r,r,pp,du,dv);
   gp_Dir drot(du.Crossed(dv));
   Standard_Boolean reversecur = ( drot.Dot(dplnat) <= 0. );
   Standard_Boolean reversefil = ( drot.Dot(dfpl) <= 0. );
@@ -113,7 +113,7 @@ Standard_Boolean ChFiKPart_MakeRotule(TopOpeBRepDS_DataStructure& DStr,
                ppos.YDirection().Dot(pl.Position().YDirection()));
   gp_Ax22d circ2dax(p2dcirc,dx2d,dy2d);
   Handle(Geom2d_Circle) GC2d = new Geom2d_Circle(circ2dax,r);
-  gp_Pnt2d p2dlin(0.,PI/2);
+  gp_Pnt2d p2dlin(0.,M_PI/2);
   Handle(Geom2d_Line) GL2d = new Geom2d_Line(p2dlin,gp::DX2d());
   TopAbs_Orientation trans = TopAbs_REVERSED; 
   if (reversecur) trans = TopAbs_FORWARD; 
@@ -124,7 +124,7 @@ Standard_Boolean ChFiKPart_MakeRotule(TopOpeBRepDS_DataStructure& DStr,
   //--------------
   Handle(Geom_Curve) bid;
   Handle(Geom2d_Curve) bid2d;
-  p2dlin.SetCoord(0.,PI);
+  p2dlin.SetCoord(0.,M_PI);
   Handle(Geom2d_Line) GL2dcoin = new Geom2d_Line(p2dlin,gp::DX2d());
   Data->ChangeInterferenceOnS2().
     SetInterference(ChFiKPart_IndexCurveInDS(bid,DStr),trans,bid2d,GL2dcoin);
@@ -132,7 +132,7 @@ Standard_Boolean ChFiKPart_MakeRotule(TopOpeBRepDS_DataStructure& DStr,
   //et les points
   //-------------
   Data->ChangeVertexFirstOnS1().SetPoint(pp);
-  ElSLib::TorusD0(alpha,PI/2,ppos,r,r,pp);
+  ElSLib::TorusD0(alpha,M_PI/2,ppos,r,r,pp);
   Data->ChangeVertexLastOnS1().SetPoint(pp);
   Data->ChangeInterferenceOnS1().SetFirstParameter(0.);
   Data->ChangeInterferenceOnS1().SetLastParameter(alpha);