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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user