How to detect if the mouse is over an actor?

I can do this by checking if the actor can be picked during mouse moving. But I don’t think this is an efficient way. So, can any VTK experts give me some suggestions? Thanks a lot.

I think the prop picker might be the most efficient way. From the documentation,

This class uses graphics hardware/rendering system to pick rapidly (as compared to using ray casting as does vtkCellPicker and vtkPointPicker).

I doubt you’ll be able to beat the performance of the hardware prop picker by any other means.

1 Like