<font size="2"><font face="verdana,sans-serif">Hi Christian,<br></font></font><div><font class="Apple-style-span" face="verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="verdana, sans-serif">new examples are welcome. Can you add this one on the example page?<br>

</font></div><div><div class="gmail_quote"><br></div><div class="gmail_quote">Regards,</div><div class="gmail_quote">Dženan</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Jul 28, 2011 at 20:11, Christian Lackas <span dir="ltr">&lt;<a href="mailto:lackas@invicro.com">lackas@invicro.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">* yanqiao zhu &lt;<a href="mailto:yanqiao.zhu@gmail.com">yanqiao.zhu@gmail.com</a>&gt; [110727 01:28]:<br>
<br>
Hi Yanqiao,<br>
<br>
I believe the only part missing is where I actually build the LUT with<br>
useful colors:<br>
<br>
        lut-&gt;SetTableValue(0,1.0,0.0,0.0);<br>
        [...]<br>
<div class="im">        lut-&gt;SetTableRange(0.0, 7.0);<br>
</div>        lut-&gt;Build();<br>
<br>
You can find the complete example here (the one I used to produce the<br>
image in the posting):<br>
<br>
    <a href="http://www.invicro.com/vtk/ROIRendering2.zip" target="_blank">http://www.invicro.com/vtk/ROIRendering2.zip</a><br>
<br>
Hope this helps you.<br>
 Christian<br>
<font color="#888888"><br>
--<br>
Dr. Christian Lackas, Managing Partner<br>
inviCRO, LLC -- In Imaging Yours<br>
P: <a href="tel:%2B1%20617%20933%208733" value="+16179338733">+1 617 933 8733</a>, F: <a href="tel:%2B49%202203%209034722" value="+4922039034722">+49 2203 9034722</a>, E: <a href="mailto:lackas@invicro.com">lackas@invicro.com</a><br>


<a href="http://www.invicro.com/" target="_blank">http://www.invicro.com/</a>  <a href="http://www.spect-ct.com/" target="_blank">http://www.spect-ct.com/</a><br>
</font><div><div></div><div class="h5">&gt; Hi Christian,<br>
&gt;<br>
&gt; I downloaded the code and data you provided in the previous post and changed<br>
&gt; the code as you told in this post by adding lut-&gt;SetTableRange(0.0, 7.0);<br>
&gt; and changed mapper-&gt;SetScalarModeToUsePointData(); to<br>
&gt; mapper-&gt;SetScalarModeToUseCellData(); But what I get after running the<br>
&gt; program is shown in the image<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/file/n4636845/result.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n4636845/result.png</a> , which is far<br>
&gt; from your result. So I am wondering maybe something is wrong. Could please<br>
&gt; check it. The source code is also attached.<br>
&gt;<br>
&gt; Thanks very much!<br>
&gt; Best,<br>
&gt; Yanqiao Zhu<br>
&gt;<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/file/n4636845/ROIRendering.cxx" target="_blank">http://vtk.1045678.n5.nabble.com/file/n4636845/ROIRendering.cxx</a><br>
&gt; ROIRendering.cxx<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Surface-rendering-of-multiple-objects-tp3391687p4636845.html" target="_blank">http://vtk.1045678.n5.nabble.com/Surface-rendering-of-multiple-objects-tp3391687p4636845.html</a><br>


&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><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>