#include <vtkPassThroughFilter.h>
#include <vtkDoubleArray.h>
+#ifdef WNT
+#include <float.h>
+#define isnan _isnan
+#endif
//----------------------------------------------------------------------------
VISU_ColoredPL
VISU_ColoredPL
::SetScalarRange( vtkFloatingPointType theRange[2] )
{
+ if (isnan(theRange[0]) || isnan(theRange[1]))
+ throw std::runtime_error("NAN values in the presentation");
+
if ( theRange[0] > theRange[1] )
return;
myExtractor->GetOutput()->GetScalarRange( theRange );
if (isnan(theRange[0]) || isnan(theRange[1]))
- throw std::runtime_error("Arithmetic exception detected");
+ throw std::runtime_error("NAN values in the presentation");
}
void