[vtkusers] Modifying vtkPolyData

David Doria daviddoria+vtk at gmail.com
Sun Feb 28 12:14:36 EST 2010


The reason I did the shallow copy is that I wanted the point to continue to
move away from the sphere. If I used filter->GetPolyDataInput(), the
sphereSource would keep generating the same points every time and the point
would only be moved away from the sphere once, resulting in a static
deformed sphere, instead of an animation. That's why I made the struct with
the pointer to the data we want to keep changing and the filter. Please
correct this if I'm wrong.


> Set it as the ClientData for the callback.
>
> Got it - it's working.


> Another option is to make a subclass of vtkCommand and override the
> Execute() method.  Using a subclass of vtkCommand provides more
> flexibility than using a callback function.
>
>
I tried to do this here:
http://www.vtk.org/Wiki/VTK/Examples/Utilities/DataAnimationSubclass

But I get:
error: 'vtkCommand' is an inaccessible base of 'CommandSubclass'

What does this mean?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100228/f7fc7880/attachment.htm>


More information about the vtkusers mailing list