center beelink EQi12 tray automatically
* Add bottomScrewTrayCentered() * Calculate tray dimensions dynamically from PC dimensions
This commit is contained in:
@ -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