[vtkusers] vtkPointPicker picks 'wrong' ...
de Boer Ingo
I.deBoer at polytec.de
Mon Jun 7 07:02:43 EDT 2004
Hi all,
I have a problem with the picking stuff.
I have some points, some of them are far away, some very close.
Now, I want to pick a point using the vtkPointPicker.
If I choose a small tolerance I have to be very close to
the point to pick it. For points which are wide spread it is
not acceptable for my program. It should choose the closest one.
So, if I choose a larger tolerance, I have this effect. BUT,
the picker picks the 'wrong' point in the region where the
points are very close. EVEN when I am directly over the point
and I have even parallel projection on. The picked point is
always next to the one I actually have my mouse over.
I know, that there is a list of vtkPoints which tells me
the selected points.. But it is a list, I still don't know
which is the correct one...
Now for my question(s) ;)
Shouldn't the GetPointID()/GetPickedPosition() of vtkPointPicker
return the closest point to the mouse point ?? For me, it does
not do it. Is there something I have to consider ? Do I have to
find the closed point myself ?
greets
Ingo
---
Dr.-Ing. Ingo H. de Boer
Polytec GmbH
Polytec-Platz 1-7, 76337 Waldbronn, Germany
phone: ++49 7243 604 106
fax : ++49 7243 604 255
More information about the vtkusers
mailing list