Polyline not joining sequentially based on contour point order

I’m generating a continuous spiral toolpath from contour curves. The issue is that once I try to create the single continuous polyline the connecting segments join at random vertices rather than follow the sequential point order around each contour. This does not happen with regular geometries, only with irregular geometries. I am using this for 3D printing, so the vertex order must remain consistent but I keep running into a wall on fixing the order.

I’m wondering if there is a better way to create the continuous spiral toolpath for irregular shapes without reordering the vertices.

I’ve attached screenshots + a Rhino and GH.

Any suggestions or alternatives would be greatly appreciated!

Contour Geometries.3dm (542.2 KB)

Contour Geometries.gh (24.5 KB)


No geometry

Here is the GH with the geometry internalised.

Contour Geometries_internal.gh (131.2 KB)

Contour Geometries_internal a.gh (137.4 KB)

Without plugins.

Contour Geometries_internal b.gh (141.9 KB)

you can also use something like this to align curves and move the Seam around:

so that it doesn’t hit those bubbles (when the 3D model allows for that):

Contour Geometries_internal_inno.gh (155.1 KB)

Thank you! This fixed the issue.

Thank you! This also works.