openscad-parts/Werkbank-balken/top.scad

27 lines
920 B
OpenSCAD
Raw Normal View History

2024-04-09 20:13:09 +02:00
include <dimensions.scad>
module beam(){
2024-04-09 20:53:34 +02:00
cube(size=[topbeamthickness, toplength - 2 * topsidewidth, topheight], center=false);
translate([0, - topslitdepth, topheight/2 - topslitheight/2])
cube([topbeamthickness, topslitdepth, topslitheight]);
translate([0, toplength - 2 * topsidewidth, topheight/2 - topslitheight/2])
cube([topbeamthickness, topslitdepth, topslitheight]);
echo("#### Top beam: length = ", toplength - 2*topsidewidth + 2*topslitdepth, " height = ", topheight, "width = ", topbeamthickness);
2024-04-09 20:13:09 +02:00
}
module topside(){
color("red")
2024-04-09 20:53:34 +02:00
difference(){
cube(size=[topdepth, topsidewidth, topsideheight], center=false);
translate([-20, topsidewidth-topslitdepth, topsideheight - topheight/2 - topslitheight/2]){
cube([topdepth+40, topslitdepth, topslitheight]);
}
}
echo("#### Top side beam: length = ", topdepth, " height = ", topsideheight, "width = ", topsidewidth);
2024-04-09 20:13:09 +02:00
}
2024-04-09 20:53:34 +02:00
2024-04-09 20:13:09 +02:00
beam();
topside();