<div>I don&#39;t think this is possible without modifying the input volume data itself. You can use an image stencil and zero out the portion you don&#39;t want, but I don&#39;t think you can do this in the mapper.</div><div>
<br></div><div>Though someone else may have another idea. Honestly, this isn&#39;t something I&#39;ve ever tried.</div><div><br></div><div>Regards,</div><div>Shash<br><br><div class="gmail_quote">On Thu, Jul 15, 2010 at 10:48 PM, <a href="mailto:6dgis@163.com">6dgis@163.com</a> <span dir="ltr">&lt;<a href="mailto:6dgis@163.com">6dgis@163.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
        Thanks for your message!<br>
<br>
        The CroppingRegionPlanes in vtkVolumeMapper is defined in volume coordinates, which must be parallel to axis.<br>
However the clip region is an arbitrary shape here.<br>
<br>
Best Regards!<br>
------------------<br>
<a href="mailto:6dgis@163.com">6dgis@163.com</a><br>
2010-07-16<br>
<br>
-------------------------------------------------------------<br>
FROM:Shashwath T.R.<br>
DATE:2010-07-14 15:15:24<br>
<a href="mailto:TO%3A6dgis@163.com">TO:6dgis@163.com</a><br>
CC:vtkusers<br>
SUBJECT:Re: [vtkusers] How to display the &quot;hole&quot; effect while cliping thevolume?<br>
<div class="im"><br>
Hi,<br>
<br>
I haven&#39;t done this myself, but you can take a look at the<br>
CroppingRegionFlags ivar in vtkVolumeMapper. One of those flags should help<br>
you out, I think.<br>
<br>
Regards,<br>
Shash<br>
<br>
On Mon, Jul 12, 2010 at 9:16 PM, <a href="mailto:6dgis@163.com">6dgis@163.com</a> &lt;<a href="mailto:6dgis@163.com">6dgis@163.com</a>&gt; wrote:<br>
<br>
</div><div><div></div><div class="h5">&gt; Hi, all<br>
&gt;        I have a series of CT Images and render them in Volume by<br>
&gt; vtkVolumeRayCastMapper. Now given a polygon by user clicking<br>
&gt; on the screen, how to clip the volume with the inner objects removed?<br>
&gt; I just want the &quot;hole&quot; effect for displaying. Any suggestion?<br>
&gt;<br>
&gt;<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<br>
&gt; <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:<br>
&gt; <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>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br></div>