chiark / gitweb /
clip-spring-holder-clip: wip
[reprap-play.git] / clip-spring-holder-clip.scad
1 // -*- C -*-
2 //
3 // For holding the spring while reassembling a candle holder.
4
5 spring_body_w = 5.0;
6 spring_body_l = 6.0;
7 axle_dia = 2.0;
8 recess_d = 13.0;
9 total_len = 30.0;
10
11 th_y = 1;
12 th_x = 2;
13 handle_th = 2.5;
14
15 // calculated
16
17 outer_sz = [spring_body_l + th_x, spring_body_w + th_y];
18 handle_sz = [outer_sz[0], handle_th];
19 th_z = th_x;
20
21 module OuterElevation(){
22   square(center=true, outer_sz);
23 }
24
25 module Elevation(){
26   difference(){
27     OuterElevation();
28
29     square(center=true, [spring_body_l, spring_body_w]);
30     square(center=true, [outer_sz[0] + 10, axle_dia]);
31   }
32 }
33
34 module Clip(){
35   linextr(-th_z, recess_d) Elevation();
36   linextr(-th_z, 0) OuterElevation();
37   linextr(recess_d - total_len, 0) square(center=true, handle_sz);
38 }
39
40 module Print(){
41   rotate([0, 90, 0]) Clip();
42 }
43
44 Print();