X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=anke-gps-bracket.scad;h=5831f559af015ad5c9b06eb701293d216a3ebed1;hb=f9af1bf66febdda31d0c3041bee4446002140a04;hp=5463bc729b3a7eb6161b22bf9d2823fda7a8e8e0;hpb=75409ef6f0bfe2b535f66af16333180adebf88df;p=reprap-play.git diff --git a/anke-gps-bracket.scad b/anke-gps-bracket.scad index 5463bc7..5831f55 100644 --- a/anke-gps-bracket.scad +++ b/anke-gps-bracket.scad @@ -1,9 +1,10 @@ // -*- C -*- // Dimensions of the main GPS body -outerw = 120 - 0.5; -outerh = 75 - 0.5; -outert = 15; +outerw = 120 + 2.5; +outerh = 75 - 0.2; +outert = 15 - 1.0; +outerbackbevel = 3; // Dimensions of the bezel area round the edges bezelw = 11 - 0.5; @@ -44,6 +45,19 @@ module GpsPlugPlug(slop){ cube([effplugw, effplugh, outert+2]); } +module GpsBodyOuterBevel(len){ + translate([0,-1,0]) { + rotate([-90,0,0]) { + linear_extrude(height=len+2) { + polygon([[-outerbackbevel, 0], + [ 0, outerbackbevel], + [outerbackbevel, 0], + [ 0, -outerbackbevel]]); + } + } + } +} + module GpsBody() { ////toplevel difference(){ union(){ @@ -54,13 +68,16 @@ module GpsBody() { ////toplevel translate([outerw-spkr2rhs, spkr2bot, -1]) cylinder(r=spkrdia/2, h=outert+2); } - translate([plug2lhs+plugw/2, plug2bot+plugh/2, 0.05]) - cylinder(r=(plugw+plugh)/2, h=outert-0.02); + translate([plug2lhs+plugw/2, plug2bot+plugh/2, 0]) + cylinder(r=(plugw+plugh)/2, h=outert); for (x=[plug2lhs-plugstrutw, plug2lhs+plugw]) - translate([x, 0.1, 0.05]) + translate([x, 0.1, 0]) cube([plugstrutw, 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); } } @@ -119,6 +136,4 @@ module GpsPlugT(){ ////toplevel //GpsPlugT(); //GpsAssembled(); -//GpsLHSMask(); -//GpsBodyLT(); -//GpsBodyRT(); +//GpsBody();