On Mon, Jan 12, 2009 at 3:59 PM, Amy Squillacote <span dir="ltr"><<a href="mailto:ahs@cfdrc.com">ahs@cfdrc.com</a>></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've already seen the Python example, but I don't think it translates directly what I need to do. I don't know VTK very well .. In any case I wasn't able to implement your suggestion :|<br>
<br>Arve<br> </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 <<a href="mailto:ahs@cfdrc.com" target="_blank">ahs@cfdrc.com</a> <mailto:<a href="mailto:ahs@cfdrc.com" target="_blank">ahs@cfdrc.com</a>>> wrote:<br>
<br>
Hi Arve,<br>
<br>
You could do this without subclassing vtkIdFilter by using<br>
vtkArrayCalculator<br>
(<a href="http://www.vtk.org/doc/nightly/html/classvtkArrayCalculator.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkArrayCalculator.html</a>)<br>
to add 1 to the values in the id array.<br>
<br>
- Amy<br>
<br>
Arve Knudsen wrote:<br>
<br>
<br>
Hi<br>
<br>
In our application we'd like to display point and cell ID<br>
labels starting at 1 instead of 0, what's the best way of<br>
going about this? One solution I thought about was to subclass<br>
vtkIdFilter, to return IDs offset by +1. Good idea?<br>
<br>
Arve<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at:<br>
<a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
-- Amy Squillacote Phone: (256) 726-4839<br>
Sr. Computer Scientist Fax: (256) 726-4806<br>
CFD Research Corporation Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>
Huntsville, AL 35805<br>
<br>
<br>
<br>
</div></div></blockquote><div><div></div><div class="Wj3C7c">
<br>
-- <br>
Amy Squillacote Phone: (256) 726-4839<br>
Sr. Computer Scientist Fax: (256) 726-4806<br>
CFD Research Corporation Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>
Huntsville, AL 35805<br>
<br>
<br>
</div></div></blockquote></div><br>