summaryrefslogtreecommitdiff
path: root/body/helpers.scad
diff options
context:
space:
mode:
Diffstat (limited to 'body/helpers.scad')
-rw-r--r--body/helpers.scad5
1 files changed, 5 insertions, 0 deletions
diff --git a/body/helpers.scad b/body/helpers.scad
index 2ad4a47..b4de246 100644
--- a/body/helpers.scad
+++ b/body/helpers.scad
@@ -1,5 +1,10 @@
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;