MantisBT - VTK
View Issue Details
0000962VTK(No Category)public2004-06-28 12:472016-08-12 09:54
Mathieu Malaterre 
Kitware Robot 
lowfeaturealways
closedmoved 
 
 
0000962: Bug in vtkPicker
Hi,
 
The pick function in VTK is some unstable. I tried to do some programming to
pick a vtkProp in a vtkAssembly.
it turned out to crash after i picked several times. I tried to track the
code in VTK, and found vtkPicker has some suspicious codes.
in version(4.2.1) line 300 of vtkPicker.cxx:
      this->Prop3Ds->AddItem((vtkProp3D *)prop);
I guess something is wrong there. it will collect the assembly many times.
now I found it was updated with
the codes in CVS :
                                  if ( ! this->Prop3Ds->IsItemPresent(prop)
)
368 {
369 this->Prop3Ds->AddItem((vtkProp3D *)prop);
370 }
 
I think it is better to change as:
                                   if ( !
this->Prop3Ds->IsItemPresent(propCandidate) )
368 {
369 this->Prop3Ds->AddItem((vtkProp3D
*)propCandidate);
370 }
 
As i read the code, I think prop is a vtkAssembly and propCandidate is a
vtkProp composited in the assembly.
before we add this item to Props3Ds, propCandidate's bounding box is checked
for the intersection test. So i think it
is rational to add propCandidate to Props3Ds.
 
Do we have some serious picking test with vtkAssembly involved?
 
I'm not sure my opinion is correct or wrong. anyway, i hope vtk has a robust
picking function.
any hints will be helpful.
 
Thanks
 
Dennis
No tags attached.
Issue History
2008-11-30 09:26Mathieu MalaterreAssigned ToMathieu Malaterre => François Bertel
2008-11-30 20:24François BertelAssigned ToFrançois Bertel =>
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036738
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved
2016-08-12 09:54Kitware RobotAssigned To => Kitware Robot

Notes
(0036738)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.