[vtkusers] expected behavior of ResetCameraClippingRange()

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Jun 24 12:59:41 EDT 2004


You'll find a patch here:

http://vtk.org/Bug/bug.php?op=show&bugid=794&pos=10

Unfortunately there is very few chance it will make into VTK

Mathieu

Matt Schmiermund wrote:
> I am having a problem with
> ctkRenderer::ResetCameraClippingRange(). 
> 
> My code is:
> 
> float *bounds = gridActor->GetBounds();
> ren1->ResetCamera();
> ren1->ResetCameraClippingRange( bounds );
> 
> I would expect that this would make sure all of
> gridActor fit within the vtk window.
> 
> It works great when viewing the small end of a
> rectangular object, but if it is set to view one of
> the long sides or in an isometric view the ends are
> out of the window. Parallel projection mode is turned
> on.
> 
> I am using vtk 4.2 , windows xp , vtkQtRenderWindow
> (but we are having the same problem with the standard
> vtkRenderWindow).
> 
> If anyone knows what I might be doing wrong here I
> would appreciate the help.
> 
> -Matt
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 






More information about the vtkusers mailing list