Richard, have a look at Examples/DataManipulation/Cxx/Cube.cxx<br>
<br>
&nbsp;&nbsp; Luca<br>
&nbsp;&nbsp;&nbsp; <br><br><div><span class="gmail_quote">On 3/13/07, <b class="gmail_sendername">Richard A Rowe</b> &lt;<a href="mailto:rar109@york.ac.uk">rar109@york.ac.uk</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div bgcolor="#ffffff">
<div><font face="Arial" size="2">
<div><font face="Arial" size="2">Dear all vtk users,</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">I am new to vtk. I&#39;m using Python to write my 
applications. Currently I&#39;m exploring color mapping with vtk. To become familiar 
with color mapping I&#39;d like to color the surface of a sphere. I have values for 
each point&nbsp;on the sphere.&nbsp;I have an&nbsp;idea of how to&nbsp;go about 
this but I&#39;m not sure how to write the code. I believe I need to put my values 
into an array and then some how use these values&nbsp;with a lookup table and 
then map the corresponding colors to the points on sphere. </font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">If someone could give me an idea of how to do this 
I would be very grateful. </font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Kind regards,</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Richard 
Rowe.</font>&nbsp;</div></font></div></div>
<br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br></blockquote></div><br>