Hi,
vtkProbeFilter
does what you need. Please, read about it here: https://vtk.org/doc/nightly/html/classvtkProbeFilter.html#details (there is also a link to some examples).
There is also an in-depth discussion and code snippets about a similar issue here: How to project points to Polydata? - #3 by scotsman60
regards,
PC