chiark / gitweb /
laptop-camera-tripod-bracket: wip
[reprap-play.git] / laptop-camera-tripod-bracket.scad
1 // -*- C -*-
2
3 laptop_w       = 310;
4 laptop_th_rear  = 14;
5 laptop_th_front = 11;
6
7 include <utils.scad>
8
9 bar_w = 20;
10 bar_th = 10;
11 flex_allow = 3;
12 claw_th = 5;
13 claw_overlap = 10;
14
15 module ClawProfile(laptop_th){
16   laptop_zmin = bar_th + flex_allow;
17   laptop_zmax = laptop_zmin + laptop_th;
18   difference(){
19     rectfromto([-claw_overlap, 0],
20                [claw_th, laptop_zmax + claw_th]);
21     rectfromto([-claw_overlap-1, laptop_zmin ],
22                [ 0, laptop_zmax ]);
23   }
24 }
25
26 module ClawBar(inner_len, laptop_th){
27   rotate([0,0,180]) linextr_y_xz(-bar_w/2, +bar_w/2) {
28     rectfromto([0,0],
29                [inner_len, bar_th]);
30     translate([inner_len, 0])
31       ClawProfile(laptop_th);
32   }
33 }
34
35 //ClawProfile(laptop_th_front);
36 ClawBar(125, laptop_th_front);