How to position sphere on VtkActor on mouse click?

Hey,

I’m using ResliceCursorWidget to update the positon of a 3dSphere (the red sphere) in the VtkActor (it is working fine),

I’m wondering, is it possible to update the position of the sphere (setCenter()) after mouse clicking in the vtkActor, (for example if I click in the eye of the vtkActor, it positions the sphere in the eye of the vtkActor)

Thank you

You can use vtkCellPicker grab coordinates of a click on geometry.

1 Like

Thank you!