[vtkusers] Bug in picking?
Tim Hutton
T.Hutton at eastman.ucl.ac.uk
Wed Jul 10 06:52:13 EDT 2002
Hello vtkusers,
I have a problem with my picking. The point returned is sometimes wrong
unless I do the following:
...
int in[2];
interactor->GetEventPosition(in);
// correct for bug (interactor hasn't updated its size unlike the renderer)
in[1] += ren->GetSize()[1] - interactor->GetSize()[1];
// see if anything was picked
if(interactor->GetPicker()->Pick(in[0],in[1],0,ren))
{
float p[3];
interactor->GetPicker()->GetPickPosition(p);
...
This happens when I have resized my MFC window (vtk 20/6/2002, win2k) - has
anyone else come across this?
I'm assuming it's a bug somewhere.
Thanks,
Tim.
More information about the vtkusers
mailing list