<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 10.00.9200.16736"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN
class=547243813-09122013>Hi,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=547243813-09122013></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=547243813-09122013>Im trying to
visualize a grid of datapoints , and have been unble to disable the liniear
intrpolation of the color values.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=547243813-09122013></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=547243813-09122013><FONT size=2>The grid of
points is generated using <FONT face=Consolas>the
chain: </FONT></FONT><FONT face=Consolas><FONT size=2>vtkActor<SPAN
class=547243813-09122013> -> </SPAN></FONT></FONT><FONT size=2><FONT
face=Consolas>pvtkPolyDataMapper<SPAN class=547243813-09122013> ->
</SPAN></FONT><FONT face=Consolas>pvtkProbeFilter<SPAN class=547243813-09122013>
-> </SPAN></FONT><FONT face=Consolas>pvtkPlaneSource ->
</FONT></FONT><FONT face=Consolas><FONT size=2>pvtkDelaunay2D<SPAN
class=547243813-09122013> -> <FONT size=2 face=Consolas><FONT size=2
face=Consolas>pvtkPolyData.</FONT></FONT></SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=547243813-09122013><FONT face=Consolas><FONT
size=2><SPAN class=547243813-09122013>Where the polydata points are placed in a
rectangular grid, and set in the following
manner:</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=547243813-09122013><FONT face=Consolas><FONT
size=2><SPAN class=547243813-09122013><FONT size=2 face=Consolas><FONT size=2
face=Consolas>
<P>pvtkPolyData->SetPoints(pvtkPoints);</P>
<P>pvtkPolyData->GetPointData()->SetScalars(pvtkFloatArray);</P>
<P>pvtkPolyData->SetVerts(pvtkCellArray);</P></FONT></FONT></SPAN></FONT></FONT></SPAN></FONT><FONT
face=Arial><SPAN class=547243813-09122013><FONT face=Consolas><FONT size=2><SPAN
class=547243813-09122013></SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=547243813-09122013><FONT size=2>setting the
</FONT><FONT face=Consolas><FONT size=2>SetInterpolationToFlat() on the actor
does not have the desired effect.</FONT></FONT></SPAN></FONT></DIV>
<DIV><SPAN class=547243813-09122013><FONT size=2 face=Consolas>neither does
<FONT size=2 face=Consolas><FONT size=2
face=Consolas>InterpolateScalarsBeforeMappingOff on the
pvtkPolyDataMapper.</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=547243813-09122013><FONT size=2
face=Consolas></FONT></SPAN> </DIV>
<DIV><SPAN class=547243813-09122013><FONT size=2 face=Consolas>Is it possible to
do a nearest neighbour lookup of the values?</FONT></SPAN></DIV>
<DIV><SPAN class=547243813-09122013><FONT size=2
face=Consolas></FONT></SPAN> </DIV>
<DIV><SPAN class=547243813-09122013><FONT size=2 face=Consolas>Best
regards</FONT></SPAN></DIV>
<DIV><SPAN class=547243813-09122013><FONT size=2
face=Consolas>Jesper</FONT></SPAN></DIV>
<DIV><SPAN class=547243813-09122013><FONT size=2
face=Consolas></FONT></SPAN> </DIV>
<DIV><FONT size=2 face=Consolas><SPAN
class=547243813-09122013></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Consolas><SPAN
class=547243813-09122013></SPAN></FONT> </DIV></BODY></HTML>