[vtkusers] Display ID labels starting at 1

Amy Squillacote ahs at cfdrc.com
Wed Jan 7 09:31:42 EST 2009


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





More information about the vtkusers mailing list