[vtkusers] Rendered scene bounds

Nicola Creati ncreati at inogs.it
Tue Oct 26 01:45:35 EDT 2010


David Doria wrote:
> On Mon, Oct 25, 2010 at 2:30 AM, Nicola Creati <ncreati at inogs.it 
> <mailto: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

Thank you David It works as I need.

Nicola



More information about the vtkusers mailing list