If you remove the cropping, do you see the entire volume?<br><br><div class="gmail_quote">On Thu, Sep 6, 2012 at 8:18 AM, qlizhi <span dir="ltr">&lt;<a href="mailto:qlizhi@gmail.com" target="_blank">qlizhi@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"><u></u>





<div style="MARGIN:10px">
<div>
<div>Hi All,</div>
<div>I&#39;m trying to take a vtkImageData volume and crop it with the below codes: 
(the volume data is headsq/quarter)</div>
<div> </div>
<div></div>
<div>
<div>vtkSmartPointer&lt;vtkVolumeRayCastMapper&gt; volumeMapper =</div>
<div>vtkSmartPointer&lt;vtkVolumeRayCastMapper&gt;::New();</div>
<div>volumeMapper-&gt;SetInput(v16-&gt;GetOutput());</div>
<div>volumeMapper-&gt;SetVolumeRayCastFunction(rayCastFunction);</div>
<div>volumeMapper-&gt;CroppingOn();</div>
<div>volumeMapper-&gt;SetCroppingRegionPlanes(10,33,10,33,10,33);</div>
<div>volumeMapper-&gt;SetCroppingRegionFlagsToSubVolume();</div></div>
<div></div>
<div>But what i get is an black widget ???</div>
<div>Best Regards,</div></div>
<div> </div>
<hr style="WIDTH:210px;min-height:1px" align="left" color="#b5c4df" size="1"><span class="HOEnZb"><font color="#888888">

<div><span>qlizhi</span></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><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>