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