Wall location curve

If it’s all lines, you could try the LineLoopMerge node:

6 Likes