[vtkusers] Display ID labels starting at 1

Arve Knudsen arve.knudsen at gmail.com
Tue Jan 13 03:45:11 EST 2009


On Mon, Jan 12, 2009 at 3:59 PM, Amy Squillacote <ahs at cfdrc.com> wrote:

> 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.
>

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 :|

Arve


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


More information about the vtkusers mailing list