chiark / gitweb /
mic-camera-adapter: wip
[reprap-play.git] / mic-camera-adapter.scad
1 // -*- C -*-
2
3 include <threads.scad>
4
5 inch = 25.4;
6
7 positive_dia = inch * 3/8.;
8 positive_l = inch * 1/2.;
9
10 negative_dia = inch * 1/4.;
11 negative_l =   10.0;
12
13 negative_wall = 4;
14 midsection = 4;
15
16 $test = true;
17 //$test = false;
18
19 module Adapter(){
20   translate([0,0,-0.1])
21     english_thread(diameter=positive_dia/inch, threads_per_inch=16,
22                    leadin=1, test=$test,
23                    length= (positive_l + 0.1) / inch);
24   rotate([180,0,0]) {
25     difference(){
26       cylinder(r= negative_dia/2 + negative_wall,
27                h = negative_l + midsection);
28       translate([0,0, midsection])
29         english_thread(diameter=negative_dia/inch, threads_per_inch=20,
30                        leadin=0, internal=true, test=$test,
31                        length= (negative_l + inch/19) / inch);
32     }
33   }
34 }
35
36 Adapter();