[vtkusers] vtkPointPicker -- Getting the tuple of a point that's not a vtk point

Amy Squillacote ahs at cfdrc.com
Wed Apr 9 09:43:25 EDT 2008


Hi Bill,

Have you tried setting the tolerance of the picker (using the 
SetTolerance method in vtkPicker)? It's specified as a fraction of the 
width of the render window.

- Amy

William E Lucarell wrote:
> -->
>
> I have a mesh with different scalar values. If I press P when I’m on a 
> point, I will get the corresponding node number and scalar value. I 
> turned pickable off on all actors but the contour actor so that there 
> wouldn’t be any erroneous nodes. However, oftentimes, if I press P 
> when I’m in the middle of a cell but not on a point, a nonexistent 
> node number and nonexistent scalar value will appear on my “query 
> window”. Is there a way to get the nearest point or get the value of 
> the nearest contour line when picking?
>
> Thanks!
>
> */Bill Lucarell/*
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>   

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list