[vtkusers] Modifying vtkPolyData

David Gobbi david.gobbi at gmail.com
Sun Feb 28 11:01:38 EST 2010


On Sun, Feb 28, 2010 at 7:18 AM, David Doria <daviddoria+vtk at gmail.com> wrote:
>
> Trying to update the points of a sphere each 500ms:
> http://www.vtk.org/Wiki/VTK/Examples/Utilities/DataAnimation
> The programmable filter is not updated every timer update. What is supposed
> to cause the filter to need to be updated? Does there need to be a
> Modified() call somewhere?
> Thanks,

Yes, it will be necessary to call Modified on the programmable filter.
 Normally, Modified() is automatically called on a VTK filter when its
Set methods are called, but for the vtkProgrammableFilter it is
necessary to can Modified manually.

Also, generally you should let the VTK pipeline execute the filter
(which it will do when Render is called), instead of calling Update
manually.

   David



More information about the vtkusers mailing list