<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"><<a href="mailto:lackas@invicro.com">lackas@invicro.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">* yanqiao zhu <<a href="mailto:yanqiao.zhu@gmail.com">yanqiao.zhu@gmail.com</a>> [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->SetTableValue(0,1.0,0.0,0.0);<br>
[...]<br>
<div class="im"> lut->SetTableRange(0.0, 7.0);<br>
</div> lut->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">> Hi Christian,<br>
><br>
> I downloaded the code and data you provided in the previous post and changed<br>
> the code as you told in this post by adding lut->SetTableRange(0.0, 7.0);<br>
> and changed mapper->SetScalarModeToUsePointData(); to<br>
> mapper->SetScalarModeToUseCellData(); But what I get after running the<br>
> program is shown in the image<br>
> <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>
> from your result. So I am wondering maybe something is wrong. Could please<br>
> check it. The source code is also attached.<br>
><br>
> Thanks very much!<br>
> Best,<br>
> Yanqiao Zhu<br>
><br>
> <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>
> ROIRendering.cxx<br>
><br>
> --<br>
> 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>
> 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>
_______________________________________________<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>