[vtkusers] Rendered scene bounds

David Doria daviddoria at gmail.com
Mon Oct 25 08:29:30 EDT 2010


On Mon, Oct 25, 2010 at 2:30 AM, Nicola Creati <ncreati at inogs.it> wrote:
>
> Hello,
> I'm looking for a way to get the bounds of the scene rendered in the main
window. If I draw a sphere and I zoom a portion of it, is it possible to get
the bounds of that portion of the sphere that is currently rendered
(visible) ?
>
> Thanks,
>
> Nicola

You could probably use

double bounds[6];
this->VisibleFilter->GetOutput()->GetBounds(bounds) ;

In the following:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/SelectVisiblePoints

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101025/5a9ca277/attachment.htm>


More information about the vtkusers mailing list