[vtkusers] Fw: text in 3D

David Doria daviddoria+vtk at gmail.com
Fri Sep 10 07:51:34 EDT 2010


2010/9/10 oka <oka at bpe.es.osaka-u.ac.jp>:
> Dear VTK users,
>
> My problem is to attach text (number, pointid) to unstructuredgrid
> points. So, text should be small but clearly seen when zooming the
> grid. vtkTextActor(3D) can't set such a small font size.
> vtkScaledTextActor is suitable for such requirement and is it possible
> to assign it to 3D grid points ? Gmsh can do it and vtk also can do it ?
>
> Best regards,
>
> Oka

To your first post - if you use this:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/VectorText

you can apply whatever 3D vtkTransform you want to it.

To your second post, this should do what you want:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/LabeledDataMapper

David



More information about the vtkusers mailing list