<div class="gmail_quote"><div>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-&gt;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&#39;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&#39;m wrong.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Set it as the ClientData for the callback.</div>
<br></blockquote><div>Got it - it&#39;s working.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Another option is to make a subclass of vtkCommand and override the<br>
Execute() method.  Using a subclass of vtkCommand provides more<br>
flexibility than using a callback function.<br><font color="#888888"><br></font></blockquote><div><br></div><div>I tried to do this here:<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Utilities/DataAnimationSubclass" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Utilities/DataAnimationSubclass</a> </div>

<div><br></div><div>But I get:</div><div><span style="font-family:sans-serif;font-size:15px;line-height:22px">error: &#39;vtkCommand&#39; is an inaccessible base of &#39;CommandSubclass&#39;</span></div><div><span style="font-family:sans-serif;font-size:15px;line-height:22px"><br>
</span></div><div><span style="font-family:sans-serif;font-size:15px;line-height:22px">What does this mean?</span></div>
</div>