aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-01-24 16:38:51 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-01-24 16:38:51 +0100
commit2bfc0ea3fc556856159a6fe9d3083983053a60df (patch)
tree2dcac690634627cb1a6dde3677c48a844770ff45
parente962c204f3949829614c8445c5c93150e615607f (diff)
downloadoscad_gridfinity-2bfc0ea3fc556856159a6fe9d3083983053a60df.tar.gz
variable names, comments
-rw-r--r--bitstorage.scad19
1 files changed, 13 insertions, 6 deletions
diff --git a/bitstorage.scad b/bitstorage.scad
index aa443df..59081a3 100644
--- a/bitstorage.scad
+++ b/bitstorage.scad
@@ -1,15 +1,21 @@
use <gridfinity.scad>
-mm_1_4_inch = 6.35;
+// wrenchsize of the bits. Default is 6.35, which is
+// for standard 1/4 inch bits. Smaller bits are mostly 4mm.
+wrench_size = 6.35;
-diam = mm_1_4_inch;
-wall = 1.5;
+// size in GF units
+ux = 1;
+uy = 1;
+// depth of the hexagon
bit_depth = 5;
-// size in GF units
-ux = 2;
-uy = 2;
+// Wall between bits
+wall = 1.5;
+
+tolerance = 0.5;
+diam = wrench_size + tolerance;
function r_from_d(d) = d/2 / sin(60);
function staggered_offset(d, w) = r_from_d(d)*1.5 + sin(60) * w;
@@ -54,6 +60,7 @@ module honeycomb_fit_center(x, y, d, w) {
difference() {
gridfinity(ux, uy, 3, lip=true, magnets=false, fill = false, bottom_height = bit_depth);
+
translate(gf_inner_origin()) translate(gf_top_vec(0))
linear_extrude(bit_depth + 0.01)
honeycomb_fit_center(gf_inner(ux), gf_inner(uy), diam,wall);