Merging data problem

Hi everyone

I’m stuck in this script

I’m trying to join these points while maintaining an order that allows me to create a closed polyline. I think my problem is in the correct use of merge or entwine. i know i got to use weave at the and of th script to combine the two list that i have created at the beginning.

the goal would be to obtain many closed polylines like a contour. then i will try to make a single one but for now it’s already a lot if I can do this

prob.gh (125.4 KB)

any help is gratefully received

P:S: Could replacing the original pt with the moved ones be a solution? (i dont know how to do it)

as unsaid

think i solved it just by my self

Is this what you’re trying to do?

prob_v2.gh (126.4 KB)

yea thank u for your help

I’m probably creating too much confusion on this post because I’m continuing to write and experiment simultaneously so it’s understandable that I continue with errors and solutions but I thank you for the help that allows me to see and understand also the use of shift paths that you used and that I hadn’t yet