Joining and exploding a curve shifts the internal order of lines

When I join a collection of lines that form a closed polyline, then explode the polyline and do the same thing again each time the order of the lines in the curve is shifting.

So the last one instead of being joined to the previous segment is joined to the first one and becomes the first instead. I tried the Preserve direction toggle but it had no effect.

I also tried writing a custom sequential joining script but in the end, it again joins the last segment to the beginning.

Is this the way it should be?

Join curve (9.8 KB)

I don’t understand what you need exactly , try that

Thanks. But what if the segments are aligned and there is no discontinuity? I need to have all the segments exploded and after joining I need to preserve the initial order.

you can sort the segments along the original curve, using “sort along curve” component

1 Like

You can use start points after exploding than closest point to the original curve to find t and change seam

1 Like

Thanks for the suggestions. I solved it through grouping actually.

Can you share your solution i want understand

Join curve shifting (7.3 KB)

Here you go. This is a simplified thing just to show the difference. I needed the segments in the end not the polyline in the exact order as before. The grouping did it.

1 Like