blob: 428d06053a3efecedca3106bdbe50d15817aeba8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use <design.scad>
$tiny_padding = 0.01;
// calculate cylinder/circle "Fragments Number" based on diameter
function diameterToFn(d, mult = 4) = (d * PI * mult);
function dToFn(d, mult = 4) = diameterToFn(d, 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;
|