When click the mouse, vtkPropPicker can decide whether a actor is selected. I wonder whether can we set a threshold to decide whether the actor is selected?
For example, if the distance between the mouse click position and actor is less than
threshold, the actor is selected. If the distance is larger than
threshold, the actor is not selected. Can we set such a
I’m not sure there is a built-in mechanism to specify tolerance to pickers. Have a look at the hardware picking code and see where you could introduce this tolerance, for example by rendering actors slightly larger when the selector renders them. If you want to use this for picking widgets that’s a different mechanism - in that case you need to dig into widgets picking code (which I think can pick in a specified radius).
@lassoan， I find the
vtkCellPicker has the set tolerance method. But, the world point from
vtkPropPicker is not equal. And there is more details. Is there any thing wrong with my code?
I’ve answered your question at the topic you referred to above.