<meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote">On Fri, Aug 19, 2011 at 9:39 AM, Liam Kurmos <span dir="ltr"><<a href="mailto:quantum.leaf@gmail.com">quantum.leaf@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm creating an example to colour the surface of a sphere using a<br>
lookup table, where the scalar value is just the value of one of the<br>
vertex coords.<br>
The code below essentially works but only shows 2 colors.<br>
<br>
2Qs:<br>
<br>
-why dont i see a range of colors from the lookup table?<br>
<br>
-i thought i should be able to get the coordinates of a vertex from<br>
the vtkPointData but i couldnt do this or find an example and had to<br>
use vtkPolyData->getPoint(i). Is it straight forward to get down to<br>
the points for pointdata?<br>
<br>
<br>
any thoughts appreciated,<br>
<br>
<br>
Liam<br></blockquote><div><br></div><div>Did you see this example?<br> </div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Color_a_mesh_by_height">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Color_a_mesh_by_height</a><br clear="all">
<br><div>David </div></div>