On Mon, Jan 12, 2009 at 3:59 PM, Amy Squillacote <span dir="ltr">&lt;<a href="mailto:ahs@cfdrc.com">ahs@cfdrc.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
There is an example called FinancialField.py in the VTK/Examples/DataManipulation/Python directory. The same example is also available in Tcl in the VTK/Examples/DataManipulation/Tcl directory.<br>
</blockquote><div><br>I&#39;ve already seen the Python example, but I don&#39;t think it translates directly what I need to do. I don&#39;t know VTK very well .. In any case I wasn&#39;t able to implement your suggestion :|<br>
<br>Arve<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
- Amy<br>
<br>
Arve Knudsen wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Do you think you could post a brief example of how to set up the calculator?<br>
<br>
Thanks!<br>
Arve<br>
<br></div><div><div></div><div class="Wj3C7c">
On Wed, Jan 7, 2009 at 3:31 PM, Amy Squillacote &lt;<a href="mailto:ahs@cfdrc.com" target="_blank">ahs@cfdrc.com</a> &lt;mailto:<a href="mailto:ahs@cfdrc.com" target="_blank">ahs@cfdrc.com</a>&gt;&gt; wrote:<br>
<br>
 &nbsp; &nbsp;Hi Arve,<br>
<br>
 &nbsp; &nbsp;You could do this without subclassing vtkIdFilter by using<br>
 &nbsp; &nbsp;vtkArrayCalculator<br>
 &nbsp; &nbsp;(<a href="http://www.vtk.org/doc/nightly/html/classvtkArrayCalculator.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkArrayCalculator.html</a>)<br>
 &nbsp; &nbsp;to add 1 to the values in the id array.<br>
<br>
 &nbsp; &nbsp;- Amy<br>
<br>
 &nbsp; &nbsp;Arve Knudsen wrote:<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Hi<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;In our application we&#39;d like to display point and cell ID<br>
 &nbsp; &nbsp; &nbsp; &nbsp;labels starting at 1 instead of 0, what&#39;s the best way of<br>
 &nbsp; &nbsp; &nbsp; &nbsp;going about this? One solution I thought about was to subclass<br>
 &nbsp; &nbsp; &nbsp; &nbsp;vtkIdFilter, to return IDs offset by +1. &nbsp;Good idea?<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Arve<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;------------------------------------------------------------------------<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;_______________________________________________<br>
 &nbsp; &nbsp; &nbsp; &nbsp;This is the private VTK discussion list.<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Please keep messages on-topic. Check the FAQ at:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp;Follow this link to subscribe/unsubscribe:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp; <br>
<br>
 &nbsp; &nbsp;--  &nbsp; &nbsp;Amy Squillacote &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Phone: (256) 726-4839<br>
 &nbsp; &nbsp;Sr. Computer Scientist &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax: (256) 726-4806<br>
 &nbsp; &nbsp;CFD Research Corporation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
 &nbsp; &nbsp;215 Wynn Drive, Suite 501<br>
 &nbsp; &nbsp;Huntsville, AL &nbsp;35805<br>
<br>
<br>
<br>
</div></div></blockquote><div><div></div><div class="Wj3C7c">
<br>
-- <br>
Amy Squillacote &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Phone: (256) 726-4839<br>
Sr. Computer Scientist &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax: (256) 726-4806<br>
CFD Research Corporation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>
Huntsville, AL &nbsp;35805<br>
<br>
<br>
</div></div></blockquote></div><br>