scad-rs icon indicating copy to clipboard operation
scad-rs copied to clipboard

Let users define their own functions

Open Michael-F-Bryan opened this issue 3 years ago • 0 comments

It'd be nice if we could define their own functions.

From the Functions section of the manual:

function func0() = 5;
function func1(x=3) = 2*x+1;
function func2() = [1,2,3,4];
function func3(y=7) = (y==7) ? 5 : 2 ;
function func4(p0,p1,p2,p3) = [p0,p1,p2,p3];

Michael-F-Bryan avatar Aug 11 '22 20:08 Michael-F-Bryan