chiark / gitweb /
scaffold-clamp-cleat: sort out toplevels
[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_default_l =   10.0;
9
10 negative_tpi = 20;
11 negative_pitch = inch/negative_tpi;
12 negative_chamfer = negative_pitch/2;
13
14 module CameraMountThread(l){
15   rotate([0,180,0])
16     english_thread(diameter=negative_dia/inch,
17                    threads_per_inch=negative_tpi,
18                    leadin=0, internal=true, test=$test,
19                    length= (l + inch/19) / inch);
20   hull(){
21     translate([0,0, negative_chamfer])
22       cylinder(r= negative_dia/2 + negative_chamfer*2,
23                h=1);
24     mirror([0,0,1])
25       cylinder(r= negative_dia/2 - negative_chamfer*2,
26                    h= negative_chamfer*3);
27   }
28 }