[vtkusers] Display ID labels starting at 1
Amy Squillacote
ahs at cfdrc.com
Mon Jan 12 09:59:58 EST 2009
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.
- Amy
Arve Knudsen wrote:
> Do you think you could post a brief example of how to set up the
> calculator?
>
> Thanks!
> Arve
>
> On Wed, Jan 7, 2009 at 3:31 PM, Amy Squillacote <ahs at cfdrc.com
> <mailto:ahs at cfdrc.com>> wrote:
>
> Hi Arve,
>
> You could do this without subclassing vtkIdFilter by using
> vtkArrayCalculator
> (http://www.vtk.org/doc/nightly/html/classvtkArrayCalculator.html)
> to add 1 to the values in the id array.
>
> - Amy
>
> Arve Knudsen wrote:
>
>
> Hi
>
> In our application we'd like to display point and cell ID
> labels starting at 1 instead of 0, what's the best way of
> going about this? One solution I thought about was to subclass
> vtkIdFilter, to return IDs offset by +1. Good idea?
>
> Arve
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> --
> Amy Squillacote Phone: (256) 726-4839
> Sr. Computer Scientist Fax: (256) 726-4806
> CFD Research Corporation Web: http://www.cfdrc.com
> 215 Wynn Drive, Suite 501
> Huntsville, AL 35805
>
>
>
--
Amy Squillacote Phone: (256) 726-4839
Sr. Computer Scientist Fax: (256) 726-4806
CFD Research Corporation Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL 35805
More information about the vtkusers
mailing list