[vtkusers] Help about refreshing of vtk window

David Doria daviddoria at gmail.com
Sun Oct 2 21:50:59 EDT 2011


> I mean I use the following codes to initialize these variables again.
>
> m_ren = vtkSmartPointer<vtkRenderer>::New();
> m_renWin = vtkSmartPointer<vtkRenderWindow>::New();
> m_iren = vtkSmartPointer<vtkRenderWindowInteractor>::New();

You should probably not be recreating the variables. Instead just
change the content of the renderer and then call Render().

David



More information about the vtkusers mailing list