From 96f7cdc46b8a59f5fb9ce9f6922c25896ab2a62e Mon Sep 17 00:00:00 2001 From: wardwouts Date: Mon, 22 Apr 2024 09:16:34 +0200 Subject: [PATCH] update --- Werkbank-balken/dimensions.scad | 3 ++- Werkbank-balken/top.scad | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Werkbank-balken/dimensions.scad b/Werkbank-balken/dimensions.scad index b7ca512..19a064f 100644 --- a/Werkbank-balken/dimensions.scad +++ b/Werkbank-balken/dimensions.scad @@ -7,8 +7,9 @@ topdepth = topbeamthickness*15; topheight = 50; topsidewidth = 50; -topsideheight = 69; +topsideheight = 68; +topslitoffsetfromtop = 20; topslitdepth = 20; topslitheight = 20; diff --git a/Werkbank-balken/top.scad b/Werkbank-balken/top.scad index 5704fc3..769de18 100644 --- a/Werkbank-balken/top.scad +++ b/Werkbank-balken/top.scad @@ -2,9 +2,11 @@ include module beam(){ cube(size=[topbeamthickness, toplength - 2 * topsidewidth, topheight], center=false); - translate([0, - topslitdepth, topheight/2 - topslitheight/2]) + // add lip for tongue/groove connection + translate([0, - topslitdepth, topheight - topslitoffsetfromtop - topslitheight]) cube([topbeamthickness, topslitdepth, topslitheight]); - translate([0, toplength - 2 * topsidewidth, topheight/2 - topslitheight/2]) + // add lip for tongue/groove connection + translate([0, toplength - 2 * topsidewidth, topheight - topslitoffsetfromtop - topslitheight]) cube([topbeamthickness, topslitdepth, topslitheight]); echo("#### Top beam: length = ", toplength - 2*topsidewidth + 2*topslitdepth, " height = ", topheight, "width = ", topbeamthickness); } @@ -13,7 +15,7 @@ module topside(){ color("red") difference(){ cube(size=[topdepth, topsidewidth, topsideheight], center=false); - translate([-20, topsidewidth-topslitdepth, topsideheight - topheight/2 - topslitheight/2]){ + translate([-20, topsidewidth-topslitdepth, topsideheight - topslitheight - topslitoffsetfromtop ]){ cube([topdepth+40, topslitdepth, topslitheight]); } }