<div dir="ltr">Thanks David,<br><br>Now I got the point, center of the cube is (0,0,0).This should be set as focal point.<br><br>Added a python version in the wiki under visualization.<br><br><br>Jothy<br><br><div class="gmail_quote">
On Wed, Apr 14, 2010 at 5:26 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Wed, Apr 14, 2010 at 12:13 PM, Jothybasu K Selvaraj<br>
&lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>&gt; wrote:<br>
&gt; Hi Guys,<br>
&gt;<br>
&gt; I am trying to view some objects from a certain distance, let&#39;s say 50cm<br>
&gt; from the centre of the objects (for instance:cube of 128,128,128).<br>
&gt;<br>
&gt; Now how to set the camera 50 cm away from the centre of the cube.Confused of<br>
&gt; the coordinate system in this 3D view.<br>
&gt;<br>
&gt; Any hints?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Jothy<br>
<br>
</div></div>I just threw this together:<br>
<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/vtkCamera" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/vtkCamera</a><br>
<br>
Is that what you were looking for?<br>
<br>
Thanks,<br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br></div>