vtkLookupTable does not handle NaN values with Log10 scale
It seems like vtkLookupTable does not handle correclty NaN values when the Log10 scale is used. In this case, all the NaNs in the input are not mapped to NanColor but to the minimum range color.
Unless there is a reason for this, I believe the bug is in vtkLookupTable::vtkApplyLogScale().
Here is a patch that might fix it (VTK 6.3.0)
--- old/vtkLookupTable.cxx Wed Jul 13 15:11:08 2016
+++ new/vtkLookupTable.cxx Wed Sep 21 10:54:24 2016
@@ -358,6 +358,11 @@
inline double vtkApplyLogScale(double v, const double range[2],
const double logRange[2])
{
+ if (vtkMath::IsNan(v))
+ {
+ return v;
+ }
+
// is the range set for negative numbers?
if (range[0] < 0)
{