List: discuss@lists.openscad.org
From: mikeonenine@web.de
Re: Squircle 4 sun & planet
Sat, Aug 5, 2023 3:17 AM
The corrected module is:
module polycle(n, R, r)
{
rotate(\[0,0,90/n\])
polygon(\[
for(i = \[0:5:355\])
\[R\*sin(i)+r\*cos((n-1)\*i), R\*cos(i)+r\*sin((n-1)\*i)\],
\]);
}
Where:
n = number of sides
R = pitch circle radius
r = half-height of lobes
(Of course, it won’t work in the carrier script now as it stands.)