update
This commit is contained in:
@ -2,9 +2,54 @@
|
|||||||
|
|
||||||
include <../config/common.scad>
|
include <../config/common.scad>
|
||||||
include <../helper/common.scad>
|
include <../helper/common.scad>
|
||||||
|
include <./common.scad>
|
||||||
use <./plateBase.scad>
|
use <./plateBase.scad>
|
||||||
|
|
||||||
module frontBoxHolder(plateThickness=3, plate) {
|
|
||||||
|
frontBoxHolder(u=2, plateThickness=3, cutoutOffsetX=20, cutoutOffsetY=2, cutoutX=147, cutoutY=26,
|
||||||
|
support=true, supportedZ = 27.5, supportWidth=120, supportDepth=5, supportRailBaseThickness=1.25);
|
||||||
|
|
||||||
|
|
||||||
|
module frontBoxHolder(u, plateThickness=3, cutoutOffsetX, cutoutOffsetY, cutoutX, cutoutY, support=false, supportedZ, supportWidth, supportDepth, bottomSupportThickness = 2, supportRailBaseThickness = 2) {
|
||||||
|
|
||||||
|
plateScrewToXEdge = 4.5; // wow these are named poorly
|
||||||
|
plateScrewToYEdge = 5;
|
||||||
|
|
||||||
|
if (support) {
|
||||||
|
//assert(supportedZ + 2*supportThickness <= plateScrewToYEdge*2 + u*uDiff);
|
||||||
|
//assert(supportWidth < rackMountScrewWidth); // not tight, need to include screw radii
|
||||||
|
}
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
union() {
|
||||||
|
plateBase(U=u, plateThickness=plateThickness, screwToXEdge=plateScrewToXEdge, screwToYEdge=plateScrewToYEdge, screwType=mainRailScrewType, filletR=2);
|
||||||
|
|
||||||
|
if (support) {
|
||||||
|
|
||||||
|
bottomSuportThickness = supportRailBaseThickness;
|
||||||
|
|
||||||
|
translate(v=[(rackMountScrewWidth-supportWidth)/2, -plateScrewToYEdge,0])
|
||||||
|
cube(size=[supportWidth, bottomSuportThickness, supportDepth]);
|
||||||
|
|
||||||
|
translate(v=[(rackMountScrewWidth-supportWidth)/2, (-plateScrewToYEdge+bottomSuportThickness) + supportedZ,0])
|
||||||
|
cube(size=[supportWidth, bottomSuportThickness, supportDepth]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
union() {
|
||||||
|
translate(v=[cutoutOffsetX, cutoutOffsetY-plateScrewToYEdge,-inf/2])
|
||||||
|
minkowski() {
|
||||||
|
r=2;
|
||||||
|
cylinder(r=r,h=inf);
|
||||||
|
translate(v=[r, r, 0])
|
||||||
|
cube(size = [cutoutX-2*r, cutoutY-2*r, inf]);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
1
rack-mount/print/boxHolderHelper_P.scad
Normal file
1
rack-mount/print/boxHolderHelper_P.scad
Normal file
@ -0,0 +1 @@
|
|||||||
|
// test test
|
||||||
16
rack-mount/print/frontBoxHolder_P.scad
Normal file
16
rack-mount/print/frontBoxHolder_P.scad
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
include <../../rack/sharedVariables.scad>
|
||||||
|
use <../frontBoxHolder.scad>
|
||||||
|
|
||||||
|
frontBoxHolder(
|
||||||
|
u=2,
|
||||||
|
plateThickness=3,
|
||||||
|
cutoutOffsetX=(rackMountScrewWidth-147)/2,
|
||||||
|
cutoutOffsetY=2,
|
||||||
|
cutoutX=147,
|
||||||
|
cutoutY=26,
|
||||||
|
support=true,
|
||||||
|
supportedZ = 27.5,
|
||||||
|
supportWidth=120,
|
||||||
|
supportDepth=5,
|
||||||
|
supportRailBaseThickness=1.25
|
||||||
|
);
|
||||||
@ -4,7 +4,12 @@ import argparse
|
|||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
PATH_TO_OPENSCAD = '/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD'
|
PATH_TO_OPENSCAD = '/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD'
|
||||||
|
=======
|
||||||
|
PATH_TO_OPENSCAD = 'openscad'
|
||||||
|
PATH_TO_OPENSCAD_NIGHTLY = 'path/to/nightly/build'
|
||||||
|
>>>>>>> 380dcb9 (update)
|
||||||
|
|
||||||
# For actual dimensions, please see profiles.scad.
|
# For actual dimensions, please see profiles.scad.
|
||||||
class BuildSizeConfig:
|
class BuildSizeConfig:
|
||||||
@ -179,7 +184,11 @@ def run_openscad(options, nightly):
|
|||||||
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
print('OpenSCAD command not found! '
|
print('OpenSCAD command not found! '
|
||||||
|
<<<<<<< HEAD
|
||||||
'Please make sure that you have OpenSCAD installed and can run OpenSCAD CLI commands. '
|
'Please make sure that you have OpenSCAD installed and can run OpenSCAD CLI commands. '
|
||||||
|
=======
|
||||||
|
'Please make sure that you have the OpenSCAD binary configured in rbuild.py.'
|
||||||
|
>>>>>>> 380dcb9 (update)
|
||||||
'(Currently needs Linux/Mac for this)')
|
'(Currently needs Linux/Mac for this)')
|
||||||
def assertOpenscadExists():
|
def assertOpenscadExists():
|
||||||
return os.path.exists(PATH_TO_OPENSCAD)
|
return os.path.exists(PATH_TO_OPENSCAD)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user