aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-09-08 15:53:08 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-09-08 15:53:08 +0200
commit24c61f008c912f21125d612f4e0761c058ee53ed (patch)
tree146689f7445fa4bf09b0ff3838885831d790e050
parent3044ea4b601ea11aec08ab05ae73dd3776d21247 (diff)
downloadoscad_gridfinity-24c61f008c912f21125d612f4e0761c058ee53ed.tar.gz
new helper functions
-rw-r--r--gridfinity.scad4
1 files changed, 4 insertions, 0 deletions
diff --git a/gridfinity.scad b/gridfinity.scad
index 39a13ec..cb6d8c4 100644
--- a/gridfinity.scad
+++ b/gridfinity.scad
@@ -17,6 +17,10 @@ function gf_top(units_z) =
function gf_top_vec(units_z) =
[0,0,gf_top(units_z)];
+function gf_inner_bottom() = (4.75 + minimal_thickness);
+function gf_inner_bottom_vec() = [0,0,gf_inner_bottom()];
+
+
// Get center of GridFinity object
function gf_center(units_x, units_y) = [
(units_x * width - 0.5) / 2 - width/2,