<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#b8d3c9>
<DIV><FONT face=Arial size=2>Hello Vtk Users!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have a problem using vtkRenderer (or 
vtkCamera??): when I am trying to zoom the active camera, after a a 
ResetCamera() call, it works, but only a few times.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If I call repeatedly these operations the zoom 
doesn't seem to work anymore. This happens usually after the 30th call of the 
code below (for example when I want to visualize repeatedly consecutive 
images):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;m_Renderer-&gt;ResetCameraClippingRange();<BR>&nbsp;m_Renderer-&gt;ResetCamera();<BR>&nbsp;m_Renderer-&gt;GetActiveCamera()-&gt;Zoom(2);&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; //Works only for the first 30-32 times. 
Why?<BR>&nbsp;m_RenderWindow-&gt;Render();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm using VTK 4-4-latestRelease, Windows XP, Visual 
C++6. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Why does this happen? How can I fix the problem? 
That is, how can I keep the camera always zoomed?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2>Istvan</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>