chiark / gitweb /
scaffold-clamp: wip vhook
[reprap-play.git] / camera-mount.scad
index 10d2adc6af84457b8dde7be6cab4f6d92eaed2a2..fec9096192b3336e7a50ed782f3dc3eb42407db4 100644 (file)
@@ -5,27 +5,24 @@ include <threads.scad>
 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);
-      }
-    }
   }
 }