X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=camera-mount.scad;h=fec9096192b3336e7a50ed782f3dc3eb42407db4;hb=6dba99d4594590c1af949fbd0379d366a05c2ca6;hp=10d2adc6af84457b8dde7be6cab4f6d92eaed2a2;hpb=58a204e128e7acbad710cd9264c40cb01150d357;p=reprap-play.git diff --git a/camera-mount.scad b/camera-mount.scad index 10d2adc..fec9096 100644 --- a/camera-mount.scad +++ b/camera-mount.scad @@ -5,27 +5,24 @@ include inch = 25.4; negative_dia = inch * 1/4. + 0.375; -negative_l = 10.0; +negative_default_l = 10.0; negative_tpi = 20; negative_pitch = inch/negative_tpi; negative_chamfer = negative_pitch/2; -module CameraMountThread(){ - translate([0,0, midsection]) { +module CameraMountThread(l){ + rotate([0,180,0]) english_thread(diameter=negative_dia/inch, threads_per_inch=negative_tpi, leadin=0, internal=true, test=$test, - length= (negative_l + inch/19) / inch); - translate([0,0, negative_l]) { - hull(){ - translate([0,0, negative_chamfer]) - cylinder(r= negative_dia/2 + negative_chamfer*2, - h=1); - mirror([0,0,1]) - cylinder(r= negative_dia/2 - negative_chamfer*2, + length= (l + inch/19) / inch); + hull(){ + translate([0,0, negative_chamfer]) + cylinder(r= negative_dia/2 + negative_chamfer*2, + h=1); + mirror([0,0,1]) + cylinder(r= negative_dia/2 - negative_chamfer*2, h= negative_chamfer*3); - } - } } }