How to pick a point closest from the mouse cursor?

Hi, Paulo.
Thank you for your help.
But I have an additional question…

Do I need a preparation step to use the vtkPointLocator?

I have written the code that picking a point from the GetEventPosition() function on OnMouseMove() event.

I referred to the following examples:
https://lorensen.github.io/VTKExamples/site/Cxx/Interaction/Picking/
https://lorensen.github.io/VTKExamples/site/Cxx/Interaction/PointPicker/

I added the vtkPointLocator and call the FindClosestPoint() function, but it always returns -1.
I referred to the following examples:
https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/PointLocator/
https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/PointLocatorVisualization/

Could you please advise for me?

Thank you.

Best regards,
William Kim