Files
rackstack/rack2/connectingBar.scad
2023-01-05 18:11:19 -05:00

90 lines
1.8 KiB
OpenSCAD

include <../math.scad>
include <./config.scad>
include <./screws.scad>
include <./mainRail.scad>
include <./helper/sphericalFilet.scad>
include <./helper/cylindricalFilet.scad>
// TODO: How do I nicely explain this?
railSlotSpacing = 2;
sideSpacing = 12;
barDepth = maxUnitDepth + 2*railSlotSpacing;
barWidth = railSlotSpacing + railTotalWidth + sideSpacing;
barHeight = 15;
barWallThickness = 3;
barRoundness = 12;
echo("Bar total depth: ", barDepth);
echo("Bar total width: ", barWidth);
module connectingBar() {
module positive() {
minkowski() {
difference() {
sphericalFiletEdge(barWidth, barDepth, barHeight, barRoundness);
translate(v = [barWallThickness, 40, barWallThickness])
cylindricalFiletEdge(barWidth, barDepth-80, barHeight, barRoundness);
}
}
}
module stackConn_N() {
translate(v=[0,0,0])
cube(size = [10, 10, 5]);
translate(v=[5,5,5])
cylinder(r=2, h=2);
}
// negatives on the y-z plane to be imprinted on the side of the main
module sideConnector_N() {
translate(v=[ - m3HeatSetInsertSlotHeightSlacked, 7, 7.5])
rotate(a=[0,90,0])
heatSetInsertSlot_N(rackFrameScrewType);
translate(v=[ - m3HeatSetInsertSlotHeightSlacked, 35, 7.5])
rotate(a=[0,90,0])
heatSetInsertSlot_N(rackFrameScrewType);
translate(v=[-1, 7 + 28/2, 7.5])
cube(size=[2,10,5], center=true);
}
module railConnector_N() {
}
module test() {
difference() {
positive();
union() {
translate(v=[10,10,0])
stackConn_N();
translate(v=[barWidth - (railTotalWidth + railSlotSpacing), railSlotSpacing, barHeight - railFootThickness])
railFeetSlot_N();
translate(v=[barWidth + eps, 0,0])
sideConnector_N();
}
}
}
test();
}
connectingBar();
*intersection() {
connectingBar();
cube(size=[15,100,100]);
}