Moving Line to Points

Hello
I want to move a line in the z axis. The closed line should be moved to points. The problem is that all points to which is moved have a different z-coordinate. The geometry of the axis should be preserved as much as possible. In screenshot 1 you can see what I mean.
“Curve closest points” shows me the points I would like to move. But after several tries I don’t get any further. In principle I should be able to tell grasshopper somehow that these points should all be moved to the closest point (similar to moving a control point in the z-axis).
Do you have a solution for this? Thanks already

grafik

Hello Jens,

first of all it often helps if you upload your file (or at least a reduced version of your problem if you have some NDA around) , so people wanting to help don’t have to guess and create their own scenario.

If you already have what appears to be the corner points, why would you not just make a polyline with these points?

If you prefer proceeding with your way up to now, you would create a vector by subtracting goal point from start point and then use the move node with this vector. However, as start and end have different Z values, it won’t really make a closed polyline from what I see in the screenshot.

Another idea would be to create a plane through the points and pull or project the curves on that plane.

Hope that helps

Ben