From a346a2add5cf2838cc101ca289f2452d2327c2cb Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Tue, 7 May 2024 14:59:06 +0200 Subject: [PATCH] eerste opzet --- Stenen_kastje_Ruben/assembly.scad | 29 +++++++++++++++++++++ Stenen_kastje_Ruben/back_plane.scad | 17 ++++++++++++ Stenen_kastje_Ruben/dimensions.scad | 18 +++++++++++++ Stenen_kastje_Ruben/horizontal_outside.scad | 11 ++++++++ Stenen_kastje_Ruben/horizontal_slat.scad | 11 ++++++++ Stenen_kastje_Ruben/partlist.sh | 3 +++ Stenen_kastje_Ruben/parts | 6 +++++ Stenen_kastje_Ruben/vertical_outside.scad | 11 ++++++++ Stenen_kastje_Ruben/vertical_slat.scad | 11 ++++++++ 9 files changed, 117 insertions(+) create mode 100644 Stenen_kastje_Ruben/assembly.scad create mode 100644 Stenen_kastje_Ruben/back_plane.scad create mode 100644 Stenen_kastje_Ruben/dimensions.scad create mode 100644 Stenen_kastje_Ruben/horizontal_outside.scad create mode 100644 Stenen_kastje_Ruben/horizontal_slat.scad create mode 100755 Stenen_kastje_Ruben/partlist.sh create mode 100644 Stenen_kastje_Ruben/parts create mode 100644 Stenen_kastje_Ruben/vertical_outside.scad create mode 100644 Stenen_kastje_Ruben/vertical_slat.scad diff --git a/Stenen_kastje_Ruben/assembly.scad b/Stenen_kastje_Ruben/assembly.scad new file mode 100644 index 0000000..6de14c1 --- /dev/null +++ b/Stenen_kastje_Ruben/assembly.scad @@ -0,0 +1,29 @@ +include + +use +use +use +use +use + +for (i=[1:nr_cells_vertical-1]){ + translate([0, 0, cell_height*i]) + horizontal_slat(); +} + +for (i=[1:nr_cells_horizontal-1]){ + translate([0, cell_width*i, 0]) + vertical_slat(); +} + +translate([0, -(outer_thickness-outer_incut), 0]) + vertical_outside(); +translate([0, cell_width*nr_cells_horizontal-outer_incut, 0]) + vertical_outside(); + +horizontal_outside(); +translate([0, 0, cell_height*nr_cells_vertical + outer_thickness - 2*outer_incut]) + horizontal_outside(); + +translate([-back_thickness, -(outer_thickness - outer_incut), -(outer_thickness)]) +back_plane_fancy(); diff --git a/Stenen_kastje_Ruben/back_plane.scad b/Stenen_kastje_Ruben/back_plane.scad new file mode 100644 index 0000000..7f2e12c --- /dev/null +++ b/Stenen_kastje_Ruben/back_plane.scad @@ -0,0 +1,17 @@ +include + +module back_plane(){ + color("lightblue") + cube(size=[back_thickness, 2*outer_thickness - 2*outer_incut + cell_width * nr_cells_horizontal, 2*outer_thickness - 2*outer_incut + cell_height * nr_cells_vertical], center=false); + echo("#### Back: thickness = ", back_thickness, " height = ", 2*outer_thickness - 2*outer_incut + cell_height * nr_cells_vertical, "width = ", 2*outer_thickness - 2*outer_incut + cell_width * nr_cells_horizontal); +} + +back_plane(); + +module back_plane_fancy(){ + color("lightblue") + cube(size=[back_thickness, 2*outer_thickness - 2*outer_incut + cell_width * nr_cells_horizontal, 2*outer_thickness - 2*outer_incut + cell_height * nr_cells_vertical + back_fancy_height], center=false); + echo("#### Fancy back: thickness = ", back_thickness, " height = ", 2*outer_thickness - 2*outer_incut + cell_height * nr_cells_vertical + back_fancy_height, "width = ", 2*outer_thickness - 2*outer_incut + cell_width * nr_cells_horizontal); +} + +back_plane_fancy(); diff --git a/Stenen_kastje_Ruben/dimensions.scad b/Stenen_kastje_Ruben/dimensions.scad new file mode 100644 index 0000000..c49e2f7 --- /dev/null +++ b/Stenen_kastje_Ruben/dimensions.scad @@ -0,0 +1,18 @@ +// details in arcs +FN=40; + +cell_width = 50; +cell_height = 50; + +nr_cells_horizontal = 6; +nr_cells_vertical = 5; + +slat_thickness = 4; +slat_depth = 40; + +back_thickness = 4; +back_fancy_height = 50; + +outer_thickness = 6; +outer_incut = 2; +outer_depth = slat_depth; diff --git a/Stenen_kastje_Ruben/horizontal_outside.scad b/Stenen_kastje_Ruben/horizontal_outside.scad new file mode 100644 index 0000000..dff0092 --- /dev/null +++ b/Stenen_kastje_Ruben/horizontal_outside.scad @@ -0,0 +1,11 @@ +include + +module horizontal_outside(){ + color("yellow") + translate([0, 0, -outer_thickness]) + cube(size=[outer_depth, cell_width * nr_cells_horizontal, outer_thickness], center=false); + + echo("#### Horizontal outside: length = ", cell_width * nr_cells_horizontal , " depth = ", outer_depth, "thickness = ", outer_thickness); +} + +horizontal_outside(); diff --git a/Stenen_kastje_Ruben/horizontal_slat.scad b/Stenen_kastje_Ruben/horizontal_slat.scad new file mode 100644 index 0000000..8ffb145 --- /dev/null +++ b/Stenen_kastje_Ruben/horizontal_slat.scad @@ -0,0 +1,11 @@ +include + +module horizontal_slat(){ + color("pink") + translate([0, 0, -slat_thickness/2]) + cube(size=[slat_depth, cell_width * nr_cells_horizontal, slat_thickness], center=false); + + echo("#### Horizontal slat: length = ", cell_width * nr_cells_horizontal , " depth = ", slat_depth, "thickness = ", slat_thickness); +} + +horizontal_slat(); diff --git a/Stenen_kastje_Ruben/partlist.sh b/Stenen_kastje_Ruben/partlist.sh new file mode 100755 index 0000000..f0a619e --- /dev/null +++ b/Stenen_kastje_Ruben/partlist.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +openscad -o blup.dxf assembly.scad 2>&1|grep '####'|sort|awk 'BEGIN{count=0;prevline=""}{if(prevline == $0){count += 1} else {print(count, "x ", prevline);count=1;prevline=$0; }}END{print(count, "x ", prevline)}' diff --git a/Stenen_kastje_Ruben/parts b/Stenen_kastje_Ruben/parts new file mode 100644 index 0000000..36d1743 --- /dev/null +++ b/Stenen_kastje_Ruben/parts @@ -0,0 +1,6 @@ +0 x +1 x ECHO: "#### Fancy back: thickness = ", 4, " height = ", 308, "width = ", 308 +2 x ECHO: "#### Horizontal outside: length = ", 300, " depth = ", 40, "thickness = ", 6 +4 x ECHO: "#### Horizontal slat: length = ", 300, " depth = ", 40, "thickness = ", 4 +2 x ECHO: "#### Vertical outside: length = ", 262, " depth = ", 40, "thickness = ", 6 +5 x ECHO: "#### Vertical slat: length = ", 250, " depth = ", 40, "thickness = ", 4 diff --git a/Stenen_kastje_Ruben/vertical_outside.scad b/Stenen_kastje_Ruben/vertical_outside.scad new file mode 100644 index 0000000..9fdeffe --- /dev/null +++ b/Stenen_kastje_Ruben/vertical_outside.scad @@ -0,0 +1,11 @@ +include + +module vertical_outside(){ + color("green") + translate([0, 0, -outer_thickness]) + cube(size=[outer_depth, outer_thickness, (cell_height * nr_cells_vertical) + (2*outer_thickness) - 2*outer_incut], center=false); + + echo("#### Vertical outside: length = ", (cell_height * nr_cells_vertical) + (2*outer_thickness) , " depth = ", outer_depth, "thickness = ", outer_thickness); +} + +vertical_outside(); diff --git a/Stenen_kastje_Ruben/vertical_slat.scad b/Stenen_kastje_Ruben/vertical_slat.scad new file mode 100644 index 0000000..8b164f5 --- /dev/null +++ b/Stenen_kastje_Ruben/vertical_slat.scad @@ -0,0 +1,11 @@ +include + +module vertical_slat(){ + color("red") + translate([0, 0, -slat_thickness/2]) + cube(size=[slat_depth, slat_thickness, cell_height * nr_cells_vertical], center=false); + + echo("#### Vertical slat: length = ", cell_height * nr_cells_vertical , " depth = ", slat_depth, "thickness = ", slat_thickness); +} + +vertical_slat();