[vtkusers] How to determine wether a given point is visible or not?

Malcolm Drummond malcolm at geovision.co.za
Fri Apr 25 15:55:18 EDT 2003


Hi Jonathan

You can use vtkSelectVisiblePoints. There's a labeledMesh example in
examples/annotation that does pretty much what you want.

HTH
Malcolm

----- Original Message -----
From: "Jonathan Bailleul" <Jonathan.Bailleul at greyc.ismra.fr>
To: "VTK-User" <vtkusers at public.kitware.com>
Sent: Friday, April 25, 2003 5:46 PM
Subject: [vtkusers] How to determine wether a given point is visible or not?


> Dear all,
>
> I am looking for a way to visualize a 3d shape whose vertices would be
> annotated by their respective number in the vtk file. The way I
> implemented this feature consisted in retrieving the 3d world
> coordinates of every point, then their 2d projections, and to finally
> display 2d actors labels at every location when a key is pressed.
>
> There are 2 major drawbacks of this approach:
> - labels do not move with the object actor: they are not glyphs. But
> that's ok anyway.
> - I get the labels of points from the other side of the object, wich
> tends to make the display hard to read.
>
>
> To overcome the latter drawback, is there a way to determine wether a
> given point is visible or not?
> I've looked over the documentation without result until now...
>
> Thanks in advance!
>
>
> --
> -----------------------------------
> Jonathan BAILLEUL, Doctorant
> GREYC Image - Université de Caen
> http://www.greyc.ismra.fr/~bailleul
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list