summaryrefslogtreecommitdiff
path: root/body/helpers.scad
blob: b4de246c87a287f2194708e483e190d118645e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use <design.scad>

$tiny_padding = 0.1;

// calculate cylinder/circle "Fragments Number" based on diameter
function diameterToFn(d, mult = 4) = (d * PI * mult);

function hole_z(h) =
    assert(h > 0, "hole_z: h should be greater than 0")
    -h * 0.001;

function hole_h(h) =
    assert(h > 0, "hole_h: h should be greater than 0")
    h * 1.002;