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;
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
::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;
myScalarsExtractor->GetUnstructuredGridOutput()->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");
}