[vtkusers] vtkPointPicker problem

Dominik Szczerba dominik at itis.ethz.ch
Tue Apr 21 11:27:39 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There is some tolerance in this method that you can tweek.
- - Dominik

Xavier Planes wrote:
> 
> 
> Hi to all,
> 
>  
> 
>                 I need to select a point of a vtkPolyData. This polydata
> is composed of points and lines. I’ve tried with vtkPointPicker but it
> doesn’t work for all the cases. When I click with the mouse pointer
> close to one point of the vtkPolyData it selects another point. I attach
> you a screenshot with the selected point in red and the mouse pointer is
> in the text (cellID). I modified a little bit the annotatePick.tcl.
> 
>  
> 
> http://picasaweb.google.com/xplanes78/Vtk#5327146377240066946
> 
>  
> 
>                 I think the problem is that vtkPointPicker “select a
> point by shooting a ray into a graphics window” and sometimes the ray is
> very close to another point of the 3D geometry very different from the
> one that is close to the mouse pointer in the screen. Perhaps the
> solution could be to project the geometry to the screen and find the
> closest point from the mouse pointer to the projected geometry in the
> screen (2D). What do you think?
> 
>  
> 
> Thanks!
> 
> Xavi       
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers


- --
Dominik Szczerba, PhD
Computational Physics Group
IT'IS Foundation for Research
www.itis.ethz.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAknt5eoACgkQ/EBMh9bUuzKRwQCgg5D5DStZwaQ88FYozVUo7lkS
a08AoL9t1EmiG6jGUjAngR2bF8xFqV7W
=i6sO
-----END PGP SIGNATURE-----



More information about the vtkusers mailing list