[gl2ps] Nan filtering?

David Lonie david.lonie at kitware.com
Thu May 9 23:14:08 CEST 2013


This bit is also needed to get this working on windows.

diff --git a/ThirdParty/gl2ps/vtkgl2ps/gl2ps.c
b/ThirdParty/gl2ps/vtkgl2ps/gl2ps.c
index 6c98d81..d256bde 100644
--- a/ThirdParty/gl2ps/vtkgl2ps/gl2ps.c
+++ b/ThirdParty/gl2ps/vtkgl2ps/gl2ps.c
@@ -55,6 +55,10 @@
 #include <vtk_png.h>
 #endif

+#ifdef _MSC_VER
+#define isfinite _finite
+#endif
+
 /*********************************************************************
  *
  * Private definitions, data structures and prototypes

On Thu, May 9, 2013 at 4:57 PM, David Lonie <david.lonie at kitware.com> wrote:
> Hi list,
>
> We've run into an issue exporting plots that contain Nan values.
> OpenGL seems to handle these gracefully on most implementations by
> discarding the primitive and moving on. The attached patch does the
> same for GL2PS.
>
> Can this be included in the next release?
>
> Thanks,
>
> Dave