From 997d2d545b79945d892dffe4803075ffa6f585fd Mon Sep 17 00:00:00 2001 From: Tom Hotston Date: Sat, 11 Feb 2023 17:33:26 +0000 Subject: [PATCH 1/2] Updated offset to account for screw hole diameter --- gridfinity-rebuilt-baseplate.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gridfinity-rebuilt-baseplate.scad b/gridfinity-rebuilt-baseplate.scad index 871165a..c395cc5 100644 --- a/gridfinity-rebuilt-baseplate.scad +++ b/gridfinity-rebuilt-baseplate.scad @@ -68,7 +68,7 @@ module gridfinityBaseplate(gridx, gridy, length, dix, diy, sp, sm, sh) { gy = gridy == 0 ? floor(diy/length) : gridy; dx = max(gx*length-0.5, dix); dy = max(gy*length-0.5, diy); - off = (sp==0?0:sp==1?bp_h_bot:h_skel+(sm?h_hole:0)+(sh==0?0:sh==1?d_cs:h_cb)); + off = (sp==0?0:sp==1?bp_h_bot:h_skel+(sm?h_hole:0)+(sh==0?d_screw:sh==1?d_cs:h_cb)); difference() { @@ -175,4 +175,4 @@ module cutter_screw_together(gx, gy, off) { rotate([0,90,0]) cylinder(h=length/2, d=d_screw, center = true); } -} \ No newline at end of file +} From 7f55ff877095db29a7122bfc970288472223c941 Mon Sep 17 00:00:00 2001 From: Tom Hotston Date: Sat, 11 Feb 2023 17:45:49 +0000 Subject: [PATCH 2/2] Added checks to ensure that screw diameter is only accounted for in screw together mode --- gridfinity-rebuilt-baseplate.scad | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gridfinity-rebuilt-baseplate.scad b/gridfinity-rebuilt-baseplate.scad index c395cc5..431b336 100644 --- a/gridfinity-rebuilt-baseplate.scad +++ b/gridfinity-rebuilt-baseplate.scad @@ -68,8 +68,7 @@ module gridfinityBaseplate(gridx, gridy, length, dix, diy, sp, sm, sh) { gy = gridy == 0 ? floor(diy/length) : gridy; dx = max(gx*length-0.5, dix); dy = max(gy*length-0.5, diy); - off = (sp==0?0:sp==1?bp_h_bot:h_skel+(sm?h_hole:0)+(sh==0?d_screw:sh==1?d_cs:h_cb)); - + off = (sp==0?0:sp==1?bp_h_bot:h_skel+(sm?h_hole:0)+(sh==0?sp!=3?0:d_screw:sh==1?d_cs:h_cb)); difference() { translate([0,0,h_base])