scad-rs
scad-rs copied to clipboard
Let users define their own functions
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];