<div><div class="gmail_quote">On Sun, Feb 28, 2010 at 9:01 AM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sun, Feb 28, 2010 at 6:46 AM, David Doria &lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Here is an example of vtkProgrammableFilter in c++:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/ProgrammableFilter" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/ProgrammableFilter</a><br>
&gt; David G, maybe you can verify that it looks reasonable?<br>
<br>
</div>Looks good, except for one point.  In your callback, you have this:<br>
<br>
params* input = ...<br>
<br>
That is a very poor choice of name for this variable.  The example<br>
would be much more clear if you called the variable params, and then<br>
used a more descriptive name for the struct.<br>
<font color="#888888"><br>
   David<br>
</font></blockquote></div><br></div><div>Trying to update the points of a sphere each 500ms:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Utilities/DataAnimation">http://www.vtk.org/Wiki/VTK/Examples/Utilities/DataAnimation</a><div>
<br></div><div>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?</div><div><br clear="all">Thanks,<br>
<br>David</div></div>