[vtkusers] Modifying vtkPolyData

David Doria daviddoria+vtk at gmail.com
Sun Feb 28 09:18:59 EST 2010


On Sun, Feb 28, 2010 at 9:01 AM, David Gobbi <david.gobbi at gmail.com> wrote:

> On Sun, Feb 28, 2010 at 6:46 AM, David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>>
> wrote:
> >
> > Here is an example of vtkProgrammableFilter in c++:
> > http://www.vtk.org/Wiki/VTK/Examples/ProgrammableFilter
> > David G, maybe you can verify that it looks reasonable?
>
> Looks good, except for one point.  In your callback, you have this:
>
> params* input = ...
>
> That is a very poor choice of name for this variable.  The example
> would be much more clear if you called the variable params, and then
> used a more descriptive name for the struct.
>
>   David
>

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,

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


More information about the vtkusers mailing list