Squircle script
From:
bemfarmer
2 Jan 2013 (1 of 44)
5616.1
Here is a simple script to make a squircle, also superellipses.
Had trouble getting the curve to close, probably due to sine, cosine, or power javascript (?), so had to add the first point to the end of the
curve factory.
// References:
//
http://paulbourke.net/geometry/superellipse/
//
http://mathworld.wolfram.com/Superellipse.html
Rebuild can reduce the point count a lot, without much change in the curve.
Attachments:
SuperEllipse.7z
Squircle.PNG