chiark / gitweb /
anke-gps-bracket: initial gps body model
[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 screent = 1.0;
20
21 plugstrutw = 4;
22 plugstrutt = min(outert, 5);
23
24 module Gps() {
25   difference(){
26     union(){
27       difference(){
28         cube([outerw, outerh, outert]);
29         translate([bezelw, bezelboth, screent])
30           cube([outerw-bezelw*2, outerh-bezelboth-bezeltoph, outert]);
31         translate([outerw-spkr2rhs, spkr2bot, -1])
32           cylinder(r=spkrdia/2, h=outert+2);
33       }
34       translate([plug2lhs+plugw/2, plug2bot+plugh/2, 0.01])
35         cylinder(r=(plugw+plugh)/2, h=outert-0.02);
36       for (x=[plug2lhs-plugstrutw, plug2lhs+plugw])
37         translate([x, 0.1, 0.01])
38           cube([plugstrutw, outerh-0.2, plugstrutt-0.02]);
39     }
40     translate([plug2lhs, plug2bot, -1])
41       cube([plugw, plugh, outert+2]);
42   }
43 }
44
45 Gps();