From: Ian Jackson Date: Sat, 1 Dec 2012 23:38:46 +0000 (+0000) Subject: anke-gps-bracket: introduce model_outer[wht]. nfc X-Git-Tag: filamentspool-v2-release~647 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=7d0ca6e42d4401db8ef7567d25a40dbd72312dc8 anke-gps-bracket: introduce model_outer[wht]. nfc --- diff --git a/anke-gps-bracket.scad b/anke-gps-bracket.scad index 4f01028..08b5b4f 100644 --- a/anke-gps-bracket.scad +++ b/anke-gps-bracket.scad @@ -3,11 +3,16 @@ include // Dimensions of the main GPS body -outerw = 120 + 2.5; -outerh = 75 - 0.2; -outert = 15 - 1.0; +outerw = 120; +outerh = 75; +outert = 15; outerbackbevel = 3; +// Dimensions for the model +model_outerw = outerw + 2.5; +model_outerh = outerh - 0.2; +model_outert = outert - 1.0; + // Dimensions of the bezel area round the edges bezelw = 11 - 0.5; bezelboth = 11 - 0.5; @@ -59,7 +64,7 @@ bodylhsrhsslop = 0.5; // Dimensions for strength only screent = 1.0; plugstrutw = 4; -plugstrutt = min(outert, 5); +plugstrutt = min(model_outert, 5); nestledoveclipw = 20; module GpsPlugPlug(slop){ @@ -67,7 +72,7 @@ module GpsPlugPlug(slop){ effplugw = plugw + slop*2; effplugh = plugh + effhslop*2; translate([plug2lhs-slop, plug2bot-effhslop, -1]) - cube([effplugw, effplugh, outert+2]); + cube([effplugw, effplugh, model_outert+2]); } module GpsBodyOuterBevel(len){ @@ -87,22 +92,24 @@ module GpsBody() { ////toplevel difference(){ union(){ difference(){ - cube([outerw, outerh, outert]); + cube([model_outerw, model_outerh, model_outert]); translate([bezelw, bezelboth, screent]) - cube([outerw-bezelw*2, outerh-bezelboth-bezeltoph, outert]); - translate([outerw-spkr2rhs, spkr2bot, -1]) - cylinder(r=spkrdia/2, h=outert+2); + cube([model_outerw-bezelw*2, + model_outerh-bezelboth-bezeltoph, + model_outert]); + translate([model_outerw-spkr2rhs, spkr2bot, -1]) + cylinder(r=spkrdia/2, h=model_outert+2); } translate([plug2lhs+plugw/2, plug2bot+plugh/2, 0]) - cylinder(r=(plugw+plugh)/2, h=outert); + cylinder(r=(plugw+plugh)/2, h=model_outert); for (x=[plug2lhs-plugstrutw, plug2lhs+plugw]) translate([x, 0.1, 0]) - cube([plugstrutw, outerh-0.2, plugstrutt-0.10]); + cube([plugstrutw, model_outerh-0.2, plugstrutt-0.10]); } GpsPlugPlug(0); - for (x=[0,outerw]) translate([x,0,0]) GpsBodyOuterBevel(outerh); - for (y=[0,outerh]) translate([0,y,0]) - rotate([0,0,-90]) GpsBodyOuterBevel(outerw); + for (x=[0,model_outerw]) translate([x,0,0]) GpsBodyOuterBevel(model_outerh); + for (y=[0,model_outerh]) translate([0,y,0]) + rotate([0,0,-90]) GpsBodyOuterBevel(model_outerw); } }