From 744ff09aaa63664ef7b1c552e555e2c27afb36f1 Mon Sep 17 00:00:00 2001 From: Rui Carmo Date: Sat, 15 Oct 2022 18:34:04 +0100 Subject: [PATCH] Merge block_base_cutout from @JakeWorrel --- gridfinity-rebuilt-utility.scad | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/gridfinity-rebuilt-utility.scad b/gridfinity-rebuilt-utility.scad index 73493c8..5e9eaf1 100644 --- a/gridfinity-rebuilt-utility.scad +++ b/gridfinity-rebuilt-utility.scad @@ -141,6 +141,30 @@ module block_base_hole(style_hole) { } } +module block_base_cutout(){ + squidge=-2.5; + translate([0,0,h_base-2.5]) + //rounded_rectangle(gridx*length-0.5+0.002, gridy*length-0.5+0.002, h_bot/1.5, r_fo1/2+0.001); + pattern_linear(gridx, gridy, length) + + render() + difference() { + translate([0,0,h_base]) + mirror([0,0,1]) + union() { + hull() { + rounded_square(squidge+length-0.5-2*r_c2-2*r_c1, h_base+0.5, r_fo3/2); + rounded_square(squidge+length-0.5-2*r_c2, h_base-r_c1+0.5, r_fo2/2); + } + hull() { + rounded_square(squidge+length-0.5-2*r_c2, r_c2, r_fo2/2); + mirror([0,0,1]) + rounded_square(squidge+length-0.5, h_bot/2, r_fo1/2); + } + } + } +} + module profile_wall_sub_sub() { polygon([ [0,0], @@ -231,7 +255,7 @@ module block_cutter(x,y,w,h,t,s) { cut = (zsmall || t == 5) ? (ycutlast?v_cut_lip:0) : v_cut_tab; style = (t > 1 && t < 5) ? t-3 : (x == 0 ? -1 : xcutlast ? 1 : 0); - translate([0,ylen/2,h_base+h_bot]) + translate([0,ylen/2,h_base+h_bot+0.8]) rotate([90,0,-90]) { if (!zsmall && xlen - d_tabw > 4*r_f2 && t != 0) {