<div>I don'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't want, but I don't think you can do this in the mapper.</div><div>
<br></div><div>Though someone else may have another idea. Honestly, this isn't something I'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"><<a href="mailto:6dgis@163.com">6dgis@163.com</a>></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 "hole" effect while cliping thevolume?<br>
<div class="im"><br>
Hi,<br>
<br>
I haven'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> <<a href="mailto:6dgis@163.com">6dgis@163.com</a>> wrote:<br>
<br>
</div><div><div></div><div class="h5">> Hi, all<br>
> I have a series of CT Images and render them in Volume by<br>
> vtkVolumeRayCastMapper. Now given a polygon by user clicking<br>
> on the screen, how to clip the volume with the inner objects removed?<br>
> I just want the "hole" effect for displaying. Any suggestion?<br>
><br>
><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<br>
> <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:<br>
> <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>
<br>
<br>
</div></div></blockquote></div><br></div>