Hi, I’m having issues with a formula I input into Grasshopper in which I combined the formula for an elliptic cone with the method to produce epicyclic curves.

According to my own knowledge and consulting with my lecturer, the resultant pattern should be closed and not broken as shown in the pictures attached below.

I’ve tried adjusting the range and other parameters, but so far no success, and the polyline remains broken instead of continuous. Any help would be greatly appreciated. Thanks!

PS: The formula I used for the elliptic cone is from this website: Elliptic Cone -- from Wolfram MathWorld