chiark / gitweb /
anke-gps-bracket: plugslop
[reprap-play.git] / anke-gps-bracket.scad
1 // -*- C -*-
2
3 outerw = 140;
4 outerh = 80;
5 bezelw = 8;
6 bezelboth = 8;
7 bezeltoph = 8;
8 outert = 10;
9
10 spkrdia = 40;
11 spkr2bot = 40;
12 spkr2rhs = 30;
13
14 plugw = 10;
15 plugh = 8;
16 plug2bot = 30;
17 plug2lhs = 40;
18
19 plugslop = 0.3;
20
21 screent = 1.0;
22
23 plugstrutw = 4;
24 plugstrutt = min(outert, 5);
25
26 module Gps() {
27   effplugw = plugw + plugslop;
28   effplugh = plugh + plugslop;
29   difference(){
30     union(){
31       difference(){
32         cube([outerw, outerh, outert]);
33         translate([bezelw, bezelboth, screent])
34           cube([outerw-bezelw*2, outerh-bezelboth-bezeltoph, outert]);
35         translate([outerw-spkr2rhs, spkr2bot, -1])
36           cylinder(r=spkrdia/2, h=outert+2);
37       }
38       translate([plug2lhs+effplugw/2, plug2bot+effplugh/2, 0.01])
39         cylinder(r=(effplugw+effplugh)/2, h=outert-0.02);
40       for (x=[plug2lhs-plugstrutw, plug2lhs+effplugw])
41         translate([x, 0.1, 0.01])
42           cube([plugstrutw, outerh-0.2, plugstrutt-0.02]);
43     }
44     translate([plug2lhs, plug2bot, -1])
45       cube([effplugw, effplugh, outert+2]);
46   }
47 }
48
49 Gps();