aboutsummaryrefslogtreecommitdiff
path: root/lib/utils.scad
blob: 7661b2f1569ad92d13e1acc1e7257846dd147763 (plain)
1
2
3
4
5
6
7
8
9
10
11
function circ_rad(size) = size * sqrt(3) / 2;

function s2s_d4(size) = circ_rad(size)*4/sqrt(6);

function s2s_d6(size) = size;

function s2s_d8(size) = circ_rad(size)*2/sqrt(2);

function s2s_d12(size) = circ_rad(size)*4/(sqrt(3)*(1+sqrt(5)));