vtkMPASReader.cxx defines global variable PI
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
vtk-5.8.0-source/IO/vtkMPASReader.cxx, line 104 defines a global variable PI. double PI = 3.141592;
This global variable (of very limited precision) can easily clash with other definitions of PI, as in our case with a global PI in OpenCascade. This can easily lead to very hard to detect bugs: we spent roughly 5 man days until we found this ...
It looks like the variable declaration can safely be changed into a static declaration, hiding the variable from the global namespace.