chiark / gitweb /
scaffold-clamp: wip
[reprap-play.git] / scaffold-clamp.scad
1 // -*- C -*-
2
3 include <utils.scad>
4
5 tube_dia = 48.3;
6
7 th = 7;
8
9 pin_gap = 1.0; // around
10
11 smooth_r = 10;
12
13 bolt_dia = 5 + 0.75;
14 bolt_flat = 10 + 1;
15
16 open_gap = 10;
17
18 // calculated
19
20 pin_dia = th;
21 hole_dia = th + pin_gap;
22
23 hinge_o_r = 0.5 * hole_dia + th;
24
25 hinge_x = -0.5 * tube_dia - hinge_o_r;
26 bolt_x = 0.5 * tube_dia + bolt_flat * 0.5;
27 max_x = bolt_x + max(0.5 + bolt_dia + th, 0.5 * bolt_flat/2);
28
29 flats_y = open_gap/2 + th;
30
31 $fa = 3;
32 $fs = 0.1;
33
34 module Plan() {
35   difference(){
36     offset(r=-smooth_r) offset(delta=smooth_r)
37       union(){
38       translate([hinge_x, 0]) circle(r= hinge_o_r);
39       circle(r = tube_dia/2 + th);
40       rectfromto([0,           -flats_y],
41                  [max_x,       +flats_y]);
42     }
43     circle(r = tube_dia/2);
44     rectfromto([0,       -open_gap/2],
45                [max_x+1, +open_gap/2]);
46   }
47 }
48
49 Plan();