From 47c0592196c8335113888931a5a82056685ce872 Mon Sep 17 00:00:00 2001 From: Jan Huwald Date: Wed, 25 Feb 2015 23:07:33 +0100 Subject: move computed variables into parameter file 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); diff --git a/tray.scad b/tray.scad index b5e59f2..0f165f6 100644 --- a/tray.scad +++ b/tray.scad @@ -7,8 +7,8 @@ use 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() { -- cgit v0.10.1