<div dir="ltr">Simplest way to do it is probably two threshold filters. One on x, the the other on y (either order). Then specify the color as normal with y as the input to the lookup table. Another alternative that comes to mind is using a vtkArrayCalculator with an <span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19px">if(condition,true_expression,false_expression) to make a derived attribute that you cull off of directly.</span><div style>

<br></div><div style><br></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div>
<br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 2:45 AM, Perryn Fowler <span dir="ltr">&lt;<a href="mailto:pezlists@gmail.com" target="_blank">pezlists@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">

<div dir="ltr"><br clear="all"><div>I have some volume data that has 2 scalar values (x and y) at each voxel.</div><div><br></div><div>I want to be able to render the volume where the colour is determined by the x value.</div>


<div>I also want to be able to show only parts of the volume that meet range criteria on both values. I don&#39;t mind if this is done via thresholding or opacity.<br></div><div><br></div><div>For example, I want to be able to say thing like:</div>


<div><br></div><div>&quot;Only show voxels for which the x value is between 10 and 20 AND the y value is between 0.5 and 0.6. Set the colour of the shown voxels based on the x value&quot;</div><div><br></div><div>I have confused myself looking through the documentation to see if this can be done - any pointers would be greatly appreciated :)</div>


<div><br></div><div>cheers</div><span class="HOEnZb"><font color="#888888"><div>Perryn</div><div><br></div></font></span></div>
<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>
<br></blockquote></div><br></div>