eerste opzet
This commit is contained in:
parent
96f7cdc46b
commit
a346a2add5
9 changed files with 117 additions and 0 deletions
29
Stenen_kastje_Ruben/assembly.scad
Normal file
29
Stenen_kastje_Ruben/assembly.scad
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
include <dimensions.scad>
|
||||||
|
|
||||||
|
use <horizontal_slat.scad>
|
||||||
|
use <vertical_slat.scad>
|
||||||
|
use <horizontal_outside.scad>
|
||||||
|
use <vertical_outside.scad>
|
||||||
|
use <back_plane.scad>
|
||||||
|
|
||||||
|
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();
|
||||||
17
Stenen_kastje_Ruben/back_plane.scad
Normal file
17
Stenen_kastje_Ruben/back_plane.scad
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
include <dimensions.scad>
|
||||||
|
|
||||||
|
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();
|
||||||
18
Stenen_kastje_Ruben/dimensions.scad
Normal file
18
Stenen_kastje_Ruben/dimensions.scad
Normal file
|
|
@ -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;
|
||||||
11
Stenen_kastje_Ruben/horizontal_outside.scad
Normal file
11
Stenen_kastje_Ruben/horizontal_outside.scad
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
include <dimensions.scad>
|
||||||
|
|
||||||
|
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();
|
||||||
11
Stenen_kastje_Ruben/horizontal_slat.scad
Normal file
11
Stenen_kastje_Ruben/horizontal_slat.scad
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
include <dimensions.scad>
|
||||||
|
|
||||||
|
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();
|
||||||
3
Stenen_kastje_Ruben/partlist.sh
Executable file
3
Stenen_kastje_Ruben/partlist.sh
Executable file
|
|
@ -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)}'
|
||||||
6
Stenen_kastje_Ruben/parts
Normal file
6
Stenen_kastje_Ruben/parts
Normal file
|
|
@ -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
|
||||||
11
Stenen_kastje_Ruben/vertical_outside.scad
Normal file
11
Stenen_kastje_Ruben/vertical_outside.scad
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
include <dimensions.scad>
|
||||||
|
|
||||||
|
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();
|
||||||
11
Stenen_kastje_Ruben/vertical_slat.scad
Normal file
11
Stenen_kastje_Ruben/vertical_slat.scad
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
include <dimensions.scad>
|
||||||
|
|
||||||
|
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();
|
||||||
Loading…
Add table
Add a link
Reference in a new issue