openscad-parts/Werkbank-balken/assembly.scad

60 lines
1.7 KiB
OpenSCAD
Raw Normal View History

2024-04-09 20:13:09 +02:00
include <dimensions.scad>
use <top.scad>
use <stand.scad>
use <connector.scad>
2024-04-09 20:53:34 +02:00
// === top sides ===
translate([0, 0, benchheight-topsideheight]){
topside();
}
translate([topdepth, toplength, benchheight-topsideheight]){
rotate([0, 0, 180])
topside();
}
2024-04-09 20:13:09 +02:00
// === topbeams ===
for (i=[0:topdepth/topbeamthickness-1]) {
2024-04-09 20:53:34 +02:00
translate([topbeamthickness*i, topsidewidth, benchheight-topheight]) {
2024-04-09 20:13:09 +02:00
beam();
}
}
// === stand bottom ===
translate([standoffset, standsideoffset, 0]){
standbottom();
}
translate([standoffset, toplength-standbeamthickness-standsideoffset, 0]){
standbottom();
}
// === stand top ===
2024-04-16 10:46:59 +02:00
translate([standtopoffset, standsideoffset, benchheight-topheight-standbeamthickness]){
2024-04-09 20:13:09 +02:00
standtop();
}
2024-04-16 10:46:59 +02:00
translate([standtopoffset, toplength-standbeamthickness-standsideoffset, benchheight-topheight-standbeamthickness]){
2024-04-09 20:13:09 +02:00
standtop();
}
// === stand verticals ===
translate([standoffset+standvertoffset, standsideoffset, standbeamthickness]){
standvertical();
}
translate([topdepth-standoffset-standvertoffset-standbeamthickness, standsideoffset, standbeamthickness]){
standvertical();
}
translate([standoffset+standvertoffset, toplength-standsideoffset-standbeamthickness, standbeamthickness]){
standvertical();
}
translate([topdepth-standoffset-standvertoffset-standbeamthickness, toplength-standsideoffset-standbeamthickness, standbeamthickness]){
standvertical();
}
// === connector beams ===
translate([topdepth-standoffset-standvertoffset-standbeamthickness/2-connectorthickness/2, standsideoffset+standbeamthickness, connectorgroundoffset]){
connector();
}
translate([standoffset+standvertoffset+standbeamthickness/2-connectorthickness/2, standsideoffset+standbeamthickness, connectorgroundoffset]){
connector();
}