Whatever to my point of view you better use Clipper2 in a C# component (don’t know if python is possible)
Polytree class is very useful to make a tree with all your curves. It will sort them for you. There are some tools to make on the beginning but then it will be more easy to grow your gcode tool.
didn’t check your gh file because it has many plugins I’m not using, but speaking of clay printing, what I usually do is to leave a couple of outer contours “as they are”, in such a way the machine will print a neat outline for that layer
if for instance these are the toolpaths for a given layer, which are offsets of the external curve (done by hand so a bit uneven… but still)
this ensures you have a single curve as “third zone”
applied to your specific case, it could be something like this, first two external curves printed first to get a nice outer boundary, then third zone as a whole single closed curve:
there are a few components in the awesome Nautilus plugin that allow for infill calculation to be performed in different styles, like zig-zag, offset… I would give those a try!
You are right sir, there are many plugins in one script.
( Actually I installed lot’s of plugin to learn something new and some of them has many useful components, so I forgot that it can be long process to just open a .gh file)
But your idea gave me new way of thinking to,
Connect internal curves in one .
Or try some ways to infill area, it can solve infill steps,
I don’t know what particular type of clay you are using, the water content, and how much experience you already have with 3D printing that material
for me, the main issue with printing many different closed lines in the very same layer usually comes with the printing head stop extruding, then raise, move to the next location, move down, and start extruding again
the stop extrusion + raise + move away is one of those things that doesn’t always work very well: the extruded material sometimes does not stick to the previous layer and preferes to be pulled away by the printing head to the new location, actually displacing the last few centimeters of snake
for that reason I generally tend to raise my printing head just the bare minimum needed times, and try to create one continuous shape anywhere else -when/if possible-
another approach I sometimes use, expecially when there will be a double external wall that will continue for the whole length of the print, is to apply the bridge thing also on the first two external curves, to merge those into one
it’s very difficult to find a slicer that gives you good results with clay (I was not able to find one )
but I think you’ll be very happy of the results you can get with Grasshopper and 3D printing clay, by coding your own toolpaths