<div dir="ltr"><div><div><div><div><br>Scalar may have can components, but I always displayed  1 component at a time.<br></div></div><br></div><div>At the same time if you work with vector you should be able to display magnitude without computing it yourself.<br>
</div>It might be enough just to call SetVectorModeToMagnitude for your look up table (defined in vtkScalarsToColors:).<br></div><div><br></div><div>I have not tried this and quick search did not show any example.<br></div>
<div>So hope somebody else can help you with it.<br><br></div><div>Regards,<br></div><div>    Alex<br></div><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 25, 2013 at 4:49 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">Thank you, but unfortunately It looks like the other examples i found. Tied<br>
to every point is one and only one value and regardless of colormap or<br>
lookuptable they only map one value to one color.<br>
<br>
Say that i tie value 1 to a color, then i still have the ability of [1,0,0],<br>
[0,1,0] and [0,0,1] if my structuredPoints have 3 separate values to them<br>
(and even more possibilities if the mapping is done with absolute values)<br>
Instead of<br>
AddRGBPoint(value,R,G,B) or SetTableValue(value, R,G,B,alpha)<br>
i would like to have some way of specifying<br>
AddRGBPoint(val1,val2,val3,R,G,B) or SetTableValue(val1,val2,val3,<br>
R,G,B,alpha)<br>
<br>
This makes sense to me since vtkStructuredPoints have the method<br>
SetNumberOfScalarComponents()<br>
(Mathematically speaking it is &quot;just&quot; a question of interpolating piecewise<br>
functions in 3-space instead of 1-space)<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-tp5722091p5722239.html" target="_blank">http://vtk.1045678.n5.nabble.com/creating-colortables-and-opacity-with-3-scalars-rather-than-1-tp5722091p5722239.html</a><br>

<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div>