<div> </div>
<div>Hello David,</div>
<div> </div>
<div>Thanks for the tip, but I don't believe this is the source of my issue in this case. I perform a shift and scale on the incoming data to effectively make everything a 16-bit unsigned integer and the Opacity function I am using is adjustable by the user, so you can make the air section transparent. The clipping still occurs regardless of the opacity applied to the volume though.</div>
<div> </div>
<div>Thanks,</div>
<div>Mark Ostroot</div>
<blockquote class="threadBlockQuote" style="border-left: 2px solid #C2C2C2; padding-left: 3px; margin-left: 4px;">--------- Original Message ---------
<div>Subject: Re: [vtkusers] 3D volume camera clipping help<br />From: "David Gobbi" <david.gobbi@gmail.com><br />Date: 6/27/18 12:50 pm<br />To: mark.ostroot@lickenbrocktech.com<br />Cc: "VTK Users" <vtkusers@vtk.org><br /><br />
<div dir="ltr">
<div>Hi Mark,</div>
<div> </div>
<div>One possible cause of this issue is that the background (or air) value in CT is -1000 while the default background value for vtkImageReslice is zero.  Try using SetBackgroundLevel(-1000.0) when you reslice the data to see if that fixes the problem. </div>
<div> </div>
<div> - David</div>
<br />
<div class="gmail_extra"><br />
<div class="gmail_quote">On Wed, Jun 27, 2018 at 1:39 PM, <span dir="ltr"><<a href="mailto:mark.ostroot@lickenbrocktech.com" target="_blank">mark.ostroot@lickenbrocktech.com</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
<div>Hello,</div>
<div> </div>
<div>I have a 3D volume of some CT Data that works fine at the original aspect Ratio. I have some code that adjusts the aspect ratio of the volume by using the VtkReSlicer. Which works well for applying a new aspect ratio. My issue is that whenever my aspect ratio is non-Cubic I get some clipping of my volume at certain angles when it is being rotated around. I have tried using the "ResetCameraClippingRange" function, but this seems to have no effect on my Rendered volume. I know that the clipping range bounds are computed from the actor dimensions and they don't seem to change when I change the aspect ratio. Does anyone have any ideas on what I may be missing?</div>
<div> </div>
<div> </div>
<div>Some noteworthy information:</div>
<div>C++ application</div>
<div>VTK version 8.1.1</div>
<div>Render window is a QT openGL Widget</div>
<div> </div>
<div>Thanks in advance,</div>
<div>Mark O</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>