List: discuss@lists.openscad.org
From: Jordan Brown
Re: Restrictions on functions and modules or .other alternative
Mon, Mar 28, 2022 4:39 PM
angles[1])]]
> )
> ) points;
>
> radius = 10;
> angles = [0, 90];
>
> echo(sector(radius, angles));
Simplifying a little - the concat isn't necessary; you can just directly
create the list:
function sector(radius, angles, fn = 24) =
let(
r = radius / cos(180 / fn),
step = -360 / fn,
points = [