[vtkusers] picking faces, edges, vertices
Affolter Martin
martin.affolter at ntb.ch
Tue Apr 24 04:36:46 EDT 2012
Hi
I've created a cube with as in the example Cube.cxx, using the triangle-cells rather than quads. I also added edges (12 one-dim cells) and vertices (8 zero-dim cells) to the polydata, which are displayed as expected. When picking the cells using vtkCellPicker I get a triangle-cell most of the time. Edges and vertices are hard to pick, since they are all adjoint. So far, I have found a solution for picking the vertices using the vtkPointPicker, getting the cells sharing the picked point and filtering out the zero-dim cells (which are the vertices).
How would I go about picking the cube's edges?
Thanks for any ideas...
Cheers,
Martin Affolter
Dipl. Ing FH
Wissenschaftlicher Mitarbeiter
___________________________________________
NTB Interstaatliche Hochschule für Technik Buchs
Institut für Ingenieurinformatik
Schönauweg 4
CH-9013 St. Gallen
Tel: +41 81 755 32 49
Web: http://www.ntb.ch<http://www.ntb.ch/>
[cid:image001.png at 01CD2206.25DB2740]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120424/932f31f2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 16338 bytes
Desc: image001.png
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120424/932f31f2/attachment.png>
More information about the vtkusers
mailing list