// -*- C -*-
// Dimensions of the main GPS body
-outerw = 140;
-outerh = 80;
-outert = 10;
+outerw = 120 + 2.5;
+outerh = 75 - 0.2;
+outert = 15 - 1.0;
+outerbackbevel = 3;
// Dimensions of the bezel area round the edges
-bezelw = 8;
-bezelboth = 8;
-bezeltoph = 8;
+bezelw = 11 - 0.5;
+bezelboth = 11 - 0.5;
+bezeltoph = 7 - 0.5;
// Dimensions of the speaker at the back
-spkrdia = 40;
-spkr2bot = 40;
-spkr2rhs = 30;
+spkrdia = 22;
+spkr2bot = 19;
+spkr2rhs = 25;
// Dimensions of the plug and wire
-plugw = 10;
-plugh = 8;
-plug2bot = 30;
-plug2lhs = 40;
-plugtotald = 20;
-pluggapd = 12;
+plugw = 12;
+plugh = 9;
+plug2bot = 11;
+plug2lhs = 11;
+plugtotald = 15;
+pluggapd = 5;
// Amount of wire protrusion to allow for
-plugwiremoreh = 30;
+plugwiremoreh = 25;
// Slops and steps etc.
plugslop = 0.5;
cube([effplugw, effplugh, outert+2]);
}
-module GpsBody() {
+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(){
difference(){
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);
}
}
GpsPlug();
}
-module GpsBodyLT(){ ////toplevel
+module GpsBodyLT(){
intersection(){
GpsBody();
GpsLHSMask();
}
}
-module GpsBodyRT(){ ////toplevel
+module GpsBodyRT(){
difference(){
GpsBody();
GpsLHSMask(bodylhsrhsslop);
}
//GpsPlugT();
-GpsAssembled();
-//GpsLHSMask();
-//GpsBodyLT();
-//GpsBodyRT();
+//GpsAssembled();
+//GpsBody();