[vtkusers] Selecting a vertex in a vtkPolyData object?

David E DeMarle dave.demarle at kitware.com
Fri Sep 28 08:45:06 EDT 2007


Use either vtkPointPicker or vtkVisibleCellSelector's new vertex selection
mode to find the vertex. Then access the point and cell data arrays to get
the information for that vertex.

cheers
Dave DeMarle


On 9/28/07, Giff <zibalmail at gmail.com> wrote:
>
> Hello,
>
> could you suggest the easiest way to retrieve the information about a
> single vertex in a vtkPolyData? I would like to be able to click close to a
> vertex and get as output the vertex ID and 3D position.
>
> Thanks a lot in advance.
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070928/a9522fb5/attachment.htm>


More information about the vtkusers mailing list