<div dir="ltr"><div><div></div>VTK has 2 ways to color datasets.<br></div>You can directly specify color  or you can make the mapper to use look up table to color according to point or cell scalar array.<br><div><div><div>
<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCells">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCells</a><br><br></div><div>Does this answer your question?<br></div></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Jul 20, 2013 at 2:44 AM, Ruff <span dir="ltr">&lt;<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I would like some way to rewrite the current color- and opacity settings.<br>
I have a structuredPoints-set and I am currently using one scalar value and<br>
the following settings for volume rendering:<br>
<br>
opacity = vtk.vtkPiecewiseFunction()<br>
opacity.AddPoint(&#39;scalar&#39;, &#39;opacity&#39;) #repeated a bunch of times<br>
colors = vtk.vtkColorTransferFunction()<br>
colors.AddRGBPoint(&#39;scalar&#39;,&#39;red&#39;,&#39;green&#39;,&#39;blue&#39;) #repeated a bunch of times<br>
<br>
(the opacity and colors goes into -&gt;vtkVolumeProperty-&gt;vtkVolume)<br>
Is there some easy way to rewrite this so I can color structuredPoints with<br>
3 scalars in it?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/creating-colortables-and-opacity-with-3-scalars-rather-than-1-tp5722091.html" target="_blank">http://vtk.1045678.n5.nabble.com/creating-colortables-and-opacity-with-3-scalars-rather-than-1-tp5722091.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>