aboutsummaryrefslogtreecommitdiff
path: root/lib/utils.scad
blob: 62417122396e192fe2974efd17bcb59a9e8db9e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)));

function s2s_d20(size) = circ_rad(size)*4/(sqrt(10+2*sqrt(5)));