eerste opzet

This commit is contained in:
Ward Wouts 2024-05-07 14:59:06 +02:00
parent 96f7cdc46b
commit a346a2add5
9 changed files with 117 additions and 0 deletions

View 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();

View 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();

View 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;

View 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();

View 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();

View 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)}'

View 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

View 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();

View 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();