How can I produce a celtic knot pattern in grasshopper

I am seeking to generate a Celtic knot pattern, I need to know if there is a specific plugin for this aim
or any other ideas?


Here’s something I made a while back for converting a planar curve with self intersections into an alternating knot, by finding the crossings and replacing them with up/down arcs.
You’d probably need to tweak it a bit depending on the curve.
As for generating the starting curve, here I’ve shown it with an epicycle, but for more general celtic knot types it might be better to do something like make a short section of braid, then bend and array it into a loop. (13.7 KB)


See also this discussion