12th September 2004 19:31 UTC
Creating a 3 Looped SSC Curve
So there is the circle that is basicly one loop.
x=cos(i*2*$PI);
y=sin(i*2*$PI)
Then there is the figure eight which is two.
x=cos(i*2*$PI);
y=sin(i*4*$PI)
Does anyone know how to make the curve that is 3 loops that are each identical and each equidistant from the origin? The shape I am thinking of looks similar to the Mercedes Benz logo, but instead of three radiating lines, there are three radiating loops. It is often seen in Celtic artwork.
I'd like to use this as the path for a particle, but just can't seem to figure it out.
Thanks for any help.
EDIT --
Ok, I figured it out while using the restroom. Funny how that tends to happen. If you add aspect correction, each loop is then identical to the others.
3 Loops:
d=sin(i*6*$PI);
x=cos(i*2*$PI)*d;
y=sin(i*2*$PI)*d
4 Loops:
d=cos(i*4*$pi);
x=cos(i*2*$PI)*d;
y=sin(i*2*$PI)*d
Perhaps someone else will find these simple curves of use.