chiark / gitweb /
camera-mount: break out from mic-camera-adapter: module (nfc)
[reprap-play.git] / camera-mount.scad
1 // -*- C -*-
2
3 include <threads.scad>
4
5 inch = 25.4;
6
7 negative_dia = inch * 1/4. + 0.375;
8 negative_l =   10.0;
9
10 negative_tpi = 20;
11 negative_pitch = inch/negative_tpi;
12 negative_chamfer = negative_pitch/2;
13
14 module CameraMountThread(){
15   translate([0,0, midsection]) {
16     english_thread(diameter=negative_dia/inch,
17                    threads_per_inch=negative_tpi,
18                    leadin=0, internal=true, test=$test,
19                    length= (negative_l + inch/19) / inch);
20     translate([0,0, negative_l]) {
21       hull(){
22         translate([0,0, negative_chamfer])
23           cylinder(r= negative_dia/2 + negative_chamfer*2,
24                    h=1);
25         mirror([0,0,1])
26           cylinder(r= negative_dia/2 - negative_chamfer*2,
27                    h= negative_chamfer*3);
28       }
29     }
30   }
31 }