// -*- C -*-
// Dimensions of the main GPS body
-outerw = 140;
-outerh = 80;
-outert = 10;
+outerw = 120 - 0.5;
+outerh = 75 - 0.5;
+outert = 15;
// 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
+// Slops and steps etc.
plugslop = 0.5;
plughstep = 1.5;
+bodylhsrhsslop = 0.5;
// Dimensions for strength only
screent = 1.0;
cube([effplugw, effplugh, outert+2]);
}
-module GpsBody() {
+module GpsBody() { ////toplevel
difference(){
union(){
difference(){
}
}
+lhsteethu = 2;
+
+module GpsLHSMask(xslop=0){
+ translate([plug2lhs + plugw+plugh+plugstrutw,
+ 0,
+ -50]) {
+ for (iter=[-100/lhsteethu : 100/lhsteethu]) {
+ translate([0, iter*lhsteethu*2, 0]) {
+ linear_extrude(height=100) {
+ polygon([[-300, 0],
+ [ 0, 0],
+ [lhsteethu,lhsteethu],
+ [ 0, lhsteethu*2],
+ [-300, lhsteethu*2+0.1]]);
+ }
+ }
+ }
+ }
+}
+
module GpsAssembled(){ ////toplevel
GpsBody();
GpsPlug();
}
+module GpsBodyLT(){
+ intersection(){
+ GpsBody();
+ GpsLHSMask();
+ }
+}
+
+module GpsBodyRT(){
+ difference(){
+ GpsBody();
+ GpsLHSMask(bodylhsrhsslop);
+ }
+}
+
module GpsPlugT(){ ////toplevel
rotate([0,-90,0]) GpsPlug();
}
//GpsPlugT();
-GpsAssembled();
+//GpsAssembled();
+//GpsLHSMask();
+//GpsBodyLT();
+//GpsBodyRT();