That’s a classic recursion thingy. Recursion is a freaky situation where something calls itself and then calls itself again … until something happens and the loop is over.
See attached. Bad news: solution done with C# code only … meaning that is not the right thing for you [but who knows? maybe in the future … blah, blah].
Recursion_PolyInscribe_V1.gh (131.7 KB)
You can get plain stuff like this:
Or twisted in 3d space LOL stuff like that:
Tip: try it with polys from a faceted dome (LOL*2).