chiark / gitweb /
66b520ea673100583460646d95865818936baced
[reprap-play.git] / xeno-drivebay-bracket.scad
1 // -*- C -*-
2
3 basel = 20;
4 basew = 27;
5 baset = 4.0;
6
7 wallt = 4.0;
8
9 wallh = 42;
10
11 baseholesz = 4; // fixme check
12 baseholeslot = 4;
13
14 holeslop = 0.5;
15
16 walll = basel;
17 wallholeh = 6+14+2;
18 wallholesz = 3.0; // fixme check
19 wallholeslot = 3.0;
20
21 module slothole(sz, slot, thick) {
22   hull(){
23     for (y = [-slot/2,slot/2]) {
24       translate([0,y,-0.05])
25         cylinder(r1=sz/2 + holeslop,
26                  r2=sz/2+thick + holeslop,
27                  h=thick+0.10);
28     }
29   }
30 }
31
32 difference(){
33   translate([0, -basew, 0])
34     cube([basel, basew, baset]);
35
36   translate([basel/2, -(basew+wallt)/2, 0])
37     slothole(baseholesz, baseholeslot, baset);
38 }
39
40 difference(){
41   translate([0, -wallt, 0])
42     cube([walll, wallt, wallh]);
43
44   translate([basel/2, 0, wallholeh])
45     rotate([90,0,0])
46     slothole(wallholesz, wallholeslot, wallt);
47 }