From 2b9e5909b0dc1362d727a981e9475a516c2ee630 Mon Sep 17 00:00:00 2001 From: TheRON Date: Mon, 27 Apr 2026 11:41:04 -0400 Subject: [PATCH] layer one works --- BOSL2/V08APR26/SKU2689999/sgc/gridstack.scad | 61 ++++++++------------ 1 file changed, 24 insertions(+), 37 deletions(-) diff --git a/BOSL2/V08APR26/SKU2689999/sgc/gridstack.scad b/BOSL2/V08APR26/SKU2689999/sgc/gridstack.scad index 49c76cc..db8767f 100644 --- a/BOSL2/V08APR26/SKU2689999/sgc/gridstack.scad +++ b/BOSL2/V08APR26/SKU2689999/sgc/gridstack.scad @@ -15,56 +15,43 @@ include include lw = 2*nW; // line width -lh = LH+10; // layer height +lh = LH; // layer height // these MUST be the cavity size gridX=4.8; -gridY=7.4; +gridY=4.8; // these ARE the number of cavities -xCount=15; -yCount=26; +xCount=7; +yCount=7; // these MUST be the calculated dimensions -xw = (gridX*xCount)+((lw+1)*xCount)-lw; // X width -yw = (gridY*yCount)+((lw+1)*yCount)-lw; // Y width +xw = ((2*gridX)*xCount)+((2*lw)*xCount); // X width +yw = ((2*gridY)*yCount)+((2*lw)*yCount)+lw; // Y width yj = (2*gridY)+(0.5*lw); // jump by this amount hc = 3; //height count = height of stack -li = 10+VOID; // lead-in line on the Y - -*base_shape(liY=li); -module base_shape(liY) { - difference() { - cuboid([xw+liY, yw, lh]); - translate([(0.5*(xw+liY))-(0.5*liY), lw, 0]) cuboid([li+VOID, yw, lh+VOID]); } +*base_shape(); +module base_shape() { +cuboid([xw, yw, lh]); } -*void_block_odd(liY=li); // backup -/* -module void_block_odd(liY) { -oddStart = 0; +xCavity(); +module xCavity() { +jumpY = ((0.5*yw)-(0.5*gridY))-lw; + + difference() { + color("Gray") base_shape(); - difference() { - base_shape(liY=li); - translate([-((0.5*liY)-lw), -((0.5*yw)-(0.5*gridY)-(lw)), 0]) cuboid([xw, gridY, lh+VOID]); } -} */ - -void_block_odd(liY=li); -module void_block_odd(liY) { -oddJump = ((0.5*yw)-(0.5*gridY)-(lw)); - for (i = [0:(xCount-1)]) { - difference() { - base_shape(liY=li); - translate([-((0.5*liY)-lw), oddJump-(yj*i), 0]) #cuboid([xw, gridY, lh+VOID]); } -}} - -*void_block_even(liY=li); -module void_block_even(liY) { -evenStart = 0; - difference() { - base_shape(liY=li); - translate([-((0.5*liY)-lw), -((0.5*yw)-(0.5*gridY)-(lw)), 0]) cuboid([xw, gridY, lh+VOID]); } + union() { + for (i = [0:(yCount-1)]) { + translate([lw, -(jumpY-(i*((2*lw)+(2*gridY)))), 0]) + color("Gainsboro") cuboid([xw, gridY, lh+VOID]); } + + for (i = [0:(yCount-1)]) { + translate([-lw, -((jumpY-(lw+gridY))-(i*((2*lw)+(2*gridY)))), 0]) + color("White") cuboid([xw, gridY, lh+VOID]); } + }} }