It looks like you're moving a single vertex without influencing the neighbors (but that will lead to straight edges). I've attached a sample gh def with a script that will do this. I'm happy to help further if you can provide more details about what you need to do (including locating the vertex to move by closest point).
Hi
thank you for the quick answer, but what I would like is that the points where the distance is bigger, will be atracted infuencing the sorrounding points.
This will create a stretching mesh.
I'm still not quite sure if you are trying to emulate the Rhino function softmove with the mesh and the adjacent points.
It would be great if you can isolate a sample of your model and either post (or email it to me) with a before and after. The images do asssist but it's still difficult (for me at least) to see exactly what you need. I can take a look at whether there is a simple (immediate) or short term (ie next week) answer to help achieve what you need with this.