chiark / gitweb /
fairphone-case: adjust led pos from caliper measurement
[reprap-play.git] / wall-cable-hook.scad
1 // -*- C -*-
2
3 circle_inner_rad = 10 + 0.5;
4
5 thick = 3;
6
7 tab_sz = 20;
8 width = 20;
9
10 screw_hole_dia = 4.5 + 0.5;
11
12 // calculated
13
14 circle_outer_rad = circle_inner_rad + thick;
15
16 module Plan() {
17   difference(){
18     circle(r=circle_outer_rad, $fn=150);
19     circle(r=circle_inner_rad, $fn=150);
20     mirror([1,0]) square([50,50]);
21   }
22   translate([-circle_outer_rad, -0.1])
23     multmatrix([[1,0,0,0],
24                 [-1,1,0,0],
25                 [0,0,1,0],
26                 [0,0,0,1]])
27     square([thick, tab_sz + circle_outer_rad + thick]);
28 }
29
30 module Hook(){
31   difference(){
32     linear_extrude(height=width) Plan();
33     if (false)
34       translate([-50, circle_outer_rad + tab_sz - width/2, width/2])
35       rotate([0,90,0])
36       cylinder(r= screw_hole_dia / 2, h=100, $fn=50);
37   }
38 }
39
40 Hook();