mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)
This commit is contained in:
@@ -3304,8 +3304,8 @@ void CorrectTolR3D(BOPTools_PaveFiller& aPF,
|
||||
//
|
||||
aA=aDN[0].Angle(aDN[1]);
|
||||
aA=fabs(aA);
|
||||
if (aA>0.5*PI) {
|
||||
aA=PI-aA;
|
||||
if (aA>0.5*M_PI) {
|
||||
aA=M_PI-aA;
|
||||
}
|
||||
//
|
||||
if (aA<aAmin || aA>aAmax) {
|
||||
|
@@ -674,7 +674,7 @@ static
|
||||
Standard_Real BOPTools_Tools2D::IntermediatePoint (const Standard_Real aFirst,
|
||||
const Standard_Real aLast)
|
||||
{
|
||||
//define parameter division number as 10*e^(-PI) = 0.43213918
|
||||
//define parameter division number as 10*e^(-M_PI) = 0.43213918
|
||||
const Standard_Real PAR_T = 0.43213918;
|
||||
Standard_Real aParm;
|
||||
aParm=(1.-PAR_T)*aFirst + PAR_T*aLast;
|
||||
|
@@ -1022,7 +1022,7 @@ static void GetApproxNormalToFaceOnEdgeEx(const TopoDS_Edge& aE,
|
||||
{
|
||||
Standard_Real d12, d1, anAlfa12, anAlfa1, aTwoPI;
|
||||
|
||||
aTwoPI=Standard_PI+Standard_PI;
|
||||
aTwoPI = M_PI + M_PI;
|
||||
|
||||
gp_Vec aVx1(aPx, aPx1);
|
||||
gp_Dir aDBx1 (aVx1);
|
||||
|
Reference in New Issue
Block a user