[vtkusers] VTK-JS: How to visualize numbers

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed Nov 29 12:59:01 EST 2017


The example you mention is the right approach for what you are looking for.

The reason why you don't need vtkFollowers+vtkTextActors, is that we have a
2D layer on top of the 3D for which it is trivial to render text that is
always facing the camera. ;-)
And we have a mechanism that can convert a set of location in the 3D world
into the screen space so those label could be printed.

Let us know if you the example is not enough to get you started.

Seb

On Wed, Nov 29, 2017 at 10:51 AM, Cristina Oyarzun via vtkusers <
vtkusers at vtk.org> wrote:

> Hello,
>
> I would like to visualize some numbers next to my actors. I saw an example
> (Spheres and Labels) where a canvas is created for this purpose. I remember
> doing this using vtkFollowers in the past. Is there currently some easy way
> to do this with vtk-js? I mean something similar to vtkFollowers or
> vtkTextActors?
>
> Thank you!
> Cristina
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171129/353678ca/attachment.html>


More information about the vtkusers mailing list