[vtk-developers] vtkPicker picking "visible" parts of assemblies marked as invisible

Rostislav Khlebnikov rostislav.khlebnikov at kcl.ac.uk
Thu May 21 12:22:26 EDT 2015

Dear VTK developers,

I am using vtkCellPicker (and consequently vtkPicker) to pick cells on 
objects. However, apparently, if a prop assembly is marked as invisible, 
it is still possible to pick the parts of assembly marked invisible if 
these parts are not explicitly marked invisible themselves. This happens 
in case a pick list is used, i.e. line vtkPicker.cxx:L278 is executed 
(not sure whether the same would happen if pick lists are not used). In 
any case, checking whether prop obtained in line 294 of vtkPicker.cxx is 
visible and pickable before initializing path traversal, should fix the 

So my question is:
   - is it supposed to behave like this? (I doubt it as it is rather 
   - should I make a fix for this?
     - If yes - is it possible to make such a small fix (probably two 
lines of code) in some simple way?

All best,

More information about the vtk-developers mailing list