This commit is contained in:
zhao
2023-04-15 11:56:20 -04:00
parent 8212737dd9
commit 096f8deaba
7 changed files with 158 additions and 12 deletions

View File

@ -0,0 +1,72 @@
/*
Connector factory
*/
include <../helper/screws.scad>
include <../helper/slack.scad>
include <../helper/dovetail.scad>
include <../helper/halfspace.scad>
include <./config.scad>
// WIP
partList = ["yBar", "xBar", "mainRail", "xyPlate", "sideModule"];
module applyConnector(on, to, transformation) {
if (on == "yBar" && to == "xBar") {
}
module xBarConnectorFromY_N() {
y = 27;
z = 6;
translate(v = [-m3HeatSetInsertSlotHeightSlacked, y, z])
rotate(a = [0, 90, 0])
heatSetInsertSlot_N(rackFrameScrewType);
}
module xBarConnectorFromY_P() {
rotate(a=[0,0,-90])
dovetail(
topWidth = 15,
bottomWidth = 12,
height = 2,
length = yBarHeight,
headExtension = 1,
baseExtension = 2,
frontFaceLength = 2,
frontFaceScale = 0.95,
backFaceLength = 5,
backFaceScale = 1.2);
}
module yBarConnectorFromX_N() {
y = 27;
z = 6;
slack = xySlack;
translate(v=[-0.5,14,0])
mirror(v=[1,0,0])
rotate(a=[0,0,-90])
dovetail(
topWidth = 15+slack,
bottomWidth = 12+slack,
height = 2+slack,
length = yBarHeight,
headExtension = 1,
baseExtension = 2,
frontFaceLength = 0.5,
frontFaceScale = 1.05,
backFaceLength = 5,
backFaceScale = 1.2);
// TODO clean this up
translate(v = [-6, y, z])
rotate(a = [0, -90, 0])
counterSunkHead_N(rackFrameScrewType, screwExtension=inf10, headExtension=inf10);
}
}