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

@@ -804,18 +804,18 @@ void BRepOffsetAPI_DraftAngle::CorrectWires()
Pmid = bc2d.Value( (bc2d.FirstParameter()+bc2d.LastParameter())/2. );
gp_Vec2d offset;
Standard_Boolean translate = Standard_False;
if (Pfirst.X()-2.*PI > Precision::Confusion() ||
Plast.X()-2.*PI > Precision::Confusion() ||
Pmid.X()-2.*PI > Precision::Confusion())
if (Pfirst.X()-2.*M_PI > Precision::Confusion() ||
Plast.X()-2.*M_PI > Precision::Confusion() ||
Pmid.X()-2.*M_PI > Precision::Confusion())
{
offset.SetCoord( -2.*PI, 0 );
offset.SetCoord( -2.*M_PI, 0 );
translate = Standard_True;
}
if (Pfirst.X() < -Precision::Confusion() ||
Plast.X() < -Precision::Confusion() ||
Pmid.X() < -Precision::Confusion())
{
offset.SetCoord( 2.*PI, 0 );
offset.SetCoord( 2.*M_PI, 0 );
translate = Standard_True;
}
if (translate)