[vtkusers] Display ID labels starting at 1

Arve Knudsen arve.knudsen at gmail.com
Mon Jan 12 09:24:53 EST 2009


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> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090112/666a8932/attachment.htm>


More information about the vtkusers mailing list