Problem with creating a printpath

Hello everyone, I am trying to create a printpath using contours + divide curve + polyline, but the polyline that results has some open spaces which shouldn’t be there. Has anyone encountered this problem? Do you know how to fix it?
Thanks a lot,


This works, thank you so much :slight_smile:
I am still getting a very weird printpath though - it should be a continous spiral.

Do you maybe know why this could be? I am following the script from the book “Advanced 3D printing with Grasshopper”.

without a script it will be hard to help. There is probably a DataTree mismatch (8.4 KB)
spiral.3dm (2.5 MB)

Here are the scripts :slight_smile:

More simple with a script
You need to flatten the data in order to have a list and put false at closed because it is an open path

spiral (1).gh (7.4 KB)

Thank you so much!! :slight_smile: