<div dir="ltr"><div style>On Wed, Apr 17, 2013 at 6:01 PM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>&gt;</span> wrote:<br></div><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Props can be anywhere.  But if you want them to be visible, they must lie between the near clipping plane and the far clipping plane, which are set with camera-&gt;SetClippingRange(double dNear, double dFar).  These are set as distances from your camera position.  In order for things to be visible, they must be at least &quot;dNear&quot; distance from the camera, and must not be further than &quot;dFar&quot; distance from the camera.</div>




<div><br></div><div>&quot;Position&quot; is always the camera position in world coordinates.<br></div></div></blockquote><div><br></div><div>Just to be clear - &quot;the camera position&quot; is the green dot in the diagram? </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div>&quot;FocalPoint&quot; must lie between the green point and the purple point that are shown on your diagram. I recommend that it be within the grey blob (i.e. within the &quot;patient&quot;).</div>
</div></blockquote><div><br></div><div style>This is one part of the vtkCamera geometry that is not totally clear to me - why do you recommend that the focal point be within the grey blob? As long as the Position, ViewAngle, and ClippingRange are set correctly, what would be the difference with using some other point on the green-point-to-purple-point vector? I bring this up partly because I forgot to mention that, in addition to the grey blob, I also want to view the 2D image plane which I have positioned and oriented in 3D world space.</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">



<div><br></div><div>And of course I highly recommend that you set the ClippingRange as well.  The dNear can be set to half of the distance from the camera position to the focal point, and the dFar should be set to the distance from the camera position to the detector.</div>
</div></blockquote><div><br></div><div style>dFar makes sense to me, but how do you come up with &quot;half the distance from the camera position to the focal point&quot; for dNear? Is this just a rough heuristic?</div><div style>
<br></div><div style>Thanks again,</div><div style><br></div><div style>Taylor</div></div></div></div>