[vtkusers] How do I label points in 3d space with arbitrary strings?

J. babybishops at gmail.com
Thu Jul 5 06:11:40 EDT 2018


I have some particles moving around in 3d space, and I want to draw labels
next to them that can display arbitrary data. The behavior in this example
seems like what I need:

https://github.com/Kitware/VTK/blob/master/Examples/Annotation/Python/labeledMesh.py

I tried having a look at vtkLabeledDataMapper, but I don't see any way to
tell it what to display. It just seems to automatically display...
coordinates? Or "field data", whatever that is? In any case I couldn't see
any way to just directly assign strings to point IDs or something like
that. Is this not the right class for the job? How can I get the behavior
I'm looking for?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180705/43a1e470/attachment.html>


More information about the vtkusers mailing list