Approximating Surface using Kangaroo

I have a surface which I have meshed. I am then doing some stuff on it with kangaroo. I want to add a new Goal; the mesh approximates the surface. I have tried addiding a distance goal between the vertices of the mesh and the cloeest point on the surface but then the solver did not converge. Does anyone know of how to include a goal of this sort?

You can use the OnMesh goal for this (it also accepts Breps and surfaces as input).

Many thanks