Created
February 22, 2024 19:45
-
-
Save smkent/67c8f7654785e6965a552ee1bbd2ec2d to your computer and use it in GitHub Desktop.
Rugged gridfinity box top half-size interior grid patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- rugged-box-gridfinity.scad 2024-02-21 18:04:50.445034885 -0800 | |
+++ rugged-box-gridfinity-HalfBinLidV2-edited.scad 2024-02-22 11:43:20.765247693 -0800 | |
@@ -195,8 +195,8 @@ | |
} | |
} | |
-module gridfinity_base(w=Width, l=Length, hole=false, off=0) { | |
- gridfinityBase(w, l, l_grid, 0, 0, hole ? 1 : 0, off=off); | |
+module gridfinity_base(w=Width, l=Length, hole=false, off=0, dx=0, dy=0) { | |
+ gridfinityBase(w, l, l_grid, dx, dy, hole ? 1 : 0, off=off); | |
} | |
module gridfinity_bottom_base(hole=false) { | |
@@ -255,10 +255,10 @@ | |
module gridfinity_top_base_strip(i) { | |
module _strip() { | |
- gridfinity_base(l=1, off=-0.2); | |
+ gridfinity_base(l=1/2, dx=2, off=-0.2); | |
} | |
- trim = (i >= (Length - 1) / 2 ? 3 : 1); | |
+ trim = (i >= Length / 2 ? 3 : 1); | |
if (trim > 0) { | |
for (hx = [-1, 1]) | |
translate([0, hx == 1 ? -trim : 0, 0]) | |
@@ -278,8 +278,8 @@ | |
translate([0, 0, top_base_offset]) | |
translate([0, 0, h_base]) | |
mirror([0, 0, 1]) | |
- for (i = [0:1:Length - 1]) | |
- translate([0, (i - Length / 2 + 0.5) * l_grid, 0]) | |
+ for (i = [0:0.5:Length - 0.5]) | |
+ translate([0, (i - Length / 2 + 0.25) * l_grid, 0]) | |
gridfinity_top_base_strip(i); | |
linear_extrude(height=h_base * 2) | |
square([width + 1.6, length + 1.6], center=true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment