center beelink EQi12 tray automatically
* Add bottomScrewTrayCentered() * Calculate tray dimensions dynamically from PC dimensions
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
use <../tray/tray.scad>
|
||||
include <../../rack/sharedVariables.scad>
|
||||
|
||||
/*
|
||||
Simple tray for a beelink mini-s series mini pc.
|
||||
@ -6,20 +7,27 @@ use <../tray/tray.scad>
|
||||
Please make sure to configure the correct rack frame dimensions in rackFrame.scad.
|
||||
*/
|
||||
|
||||
pcWidth = 126;
|
||||
pcDepth = 126;
|
||||
pcHeight = 49;
|
||||
frontLipHeight = 3;
|
||||
airflowGap = 5;
|
||||
trayWidth = pcWidth + (airflowGap * 2);
|
||||
trayDepth = 140;
|
||||
unitHeight = ceil(pcHeight / screwDiff);
|
||||
difference () {
|
||||
bottomScrewTray (
|
||||
u = 5,
|
||||
trayWidth = 140,
|
||||
trayDepth = 140,
|
||||
bottomScrewTrayCentered(
|
||||
u = unitHeight,
|
||||
trayWidth = trayWidth,
|
||||
trayDepth = trayDepth,
|
||||
trayThickness = 3,
|
||||
frontLipHeight = 3,
|
||||
frontLipHeight = frontLipHeight,
|
||||
backLipHeight = 5,
|
||||
frontThickness = 3,
|
||||
sideThickness = 3,
|
||||
mountPointElevation = 1,
|
||||
mountPointType = "m4",
|
||||
sideSupport = true,
|
||||
trayLeftPadding = 15
|
||||
sideSupport = true
|
||||
);
|
||||
|
||||
|
||||
|
||||
@ -91,3 +91,21 @@ module bottomScrewTray(u, trayWidth, trayDepth, trayThickness, mountPoints = [],
|
||||
|
||||
|
||||
}
|
||||
|
||||
module bottomScrewTrayCentered(u, trayWidth, trayDepth, trayThickness, mountPoints = [], mountPointElevation, mountPointType, frontThickness, sideThickness, frontLipHeight, backLipHeight, sideSupport=true) {
|
||||
trayLeftPadding = (maxUnitWidth - trayWidth) / 2;
|
||||
bottomScrewTray(
|
||||
u=u,
|
||||
trayWidth=trayWidth,
|
||||
trayDepth=trayDepth,
|
||||
trayThickness=trayThickness,
|
||||
mountPoints=mountPoints,
|
||||
mountPointElevation=mountPointElevation,
|
||||
mountPointType=mountPointType,
|
||||
frontThickness=frontThickness,
|
||||
sideThickness=sideThickness,
|
||||
frontLipHeight=frontLipHeight,
|
||||
backLipHeight=backLipHeight,
|
||||
trayLeftPadding=trayLeftPadding,
|
||||
sideSupport=sideSupport);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user