Print "NAN values in the presentation" error message to the terminal window in case of NAN values detection.
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;
::SetScalarRange(vtkFloatingPointType theRange[2])
{
if (isnan(theRange[0]) || isnan(theRange[1]))
- throw std::runtime_error("Arithmetic exception detected");
+ throw std::runtime_error("NAN values in the presentation");
if(VISU::CheckIsSameRange(theRange, GetScalarRange()))
return;