diff options
-rw-r--r-- | parameters.scad | 13 | ||||
-rw-r--r-- | tray.scad | 6 |
2 files changed, 15 insertions, 4 deletions
diff --git a/parameters.scad b/parameters.scad index d402243..f437c46 100644 --- a/parameters.scad +++ b/parameters.scad @@ -57,3 +57,16 @@ large = 1000; // A small quantity that does not change the print results. Use to // displace surfaces of CSG operations to prevent them from overlapping. epsilon = 0.0001; + + +/// COMPUTED DIMENSIONS + +tray_width = hdd_width + vrail_width/2; +tray_height = hdd_height + hrail_height; + + +/// COMMON FUNCTIONS +// they do not belong here but are not enough to warrant a seperate +// file. sorry + +module ccube(x) cube(x, center=true); @@ -7,8 +7,8 @@ use <hdd.scad> R = 2; // size of the core box -W = hdd_width + vrail_width/2; -H = hdd_height + hrail_height; +W = tray_width; +H = tray_height; // strap dimensions SW=5; @@ -54,8 +54,6 @@ module back() { } } -module ccube(x) cube(x, center=true); - module tray(D, power_hole=true, straps=true, inlet=[-1,1], rail=[0,1], support_bar=true) union() { difference() { |