chiark / gitweb /
anke-gps-bracket: plugslop
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Nov 2012 19:02:30 +0000 (19:02 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Nov 2012 22:30:42 +0000 (22:30 +0000)
anke-gps-bracket.scad

index c3af7e67ffe8a41153a375cbb38d9e1669180e1d..6e4caa7c49ce8232978816327206d83d2193e864 100644 (file)
@@ -16,12 +16,16 @@ plugh = 8;
 plug2bot = 30;
 plug2lhs = 40;
 
+plugslop = 0.3;
+
 screent = 1.0;
 
 plugstrutw = 4;
 plugstrutt = min(outert, 5);
 
 module Gps() {
+  effplugw = plugw + plugslop;
+  effplugh = plugh + plugslop;
   difference(){
     union(){
       difference(){
@@ -31,14 +35,14 @@ module Gps() {
        translate([outerw-spkr2rhs, spkr2bot, -1])
          cylinder(r=spkrdia/2, h=outert+2);
       }
-      translate([plug2lhs+plugw/2, plug2bot+plugh/2, 0.01])
-       cylinder(r=(plugw+plugh)/2, h=outert-0.02);
-      for (x=[plug2lhs-plugstrutw, plug2lhs+plugw])
+      translate([plug2lhs+effplugw/2, plug2bot+effplugh/2, 0.01])
+       cylinder(r=(effplugw+effplugh)/2, h=outert-0.02);
+      for (x=[plug2lhs-plugstrutw, plug2lhs+effplugw])
        translate([x, 0.1, 0.01])
          cube([plugstrutw, outerh-0.2, plugstrutt-0.02]);
     }
     translate([plug2lhs, plug2bot, -1])
-      cube([plugw, plugh, outert+2]);
+      cube([effplugw, effplugh, outert+2]);
   }
 }