[vtkusers] deleting a polydata from my RenderWindow, is it possible!!!

David Doria daviddoria at gmail.com
Fri Nov 2 07:28:42 EDT 2012


On Fri, Nov 2, 2012 at 7:22 AM, Tasnim <hanene-jeder at hotmail.fr> wrote:
> Hi vtkUsers,
> is it possible to delete a vtkpolydata from my RenderWindow. I mean, for
> example, if i have two vtkPolydata in my vtkRenderWindow, the first is a
> sphere and the second is an apple, is it possible that when i pick on the
> sphere, it will disappear from my RenderWindow ( delete it from the
> renderWindow) or it is not???? if it is possible, small explanation about
> how to do it please.
>
> Regards,
> Tasnim

You can use VisibilityOff():

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/HideActor

David



More information about the vtkusers mailing list