[vtkusers] How to adjust the object's size?

Dennis Jen jen at email.unc.edu
Thu Feb 26 21:55:17 EST 2004


Maybe after you've loaded your object, try calling
vtkRenderer::ResetCamera().
 
-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of Yan Pingkun
Sent: Thursday, February 26, 2004 9:28 PM
To: vtkusers at vtk.org
Subject: [vtkusers] How to adjust the object's size?
 
Hi all,
 
I read a 3D object from file and then visualize it. I developed the
program under Windows. Initially, I used console application. Everything
is Ok. Then I move the code into a SDI program. It works. But the
problem is that the object is always too big and I have to zoom it to
fit the window. Anybody can tell me why and how to deal with it?
 
Thanks!
 
Regards,
Pingkun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040226/689174c7/attachment.htm>


More information about the vtkusers mailing list