chiark / gitweb /
scaffold-clamp: wip straphook
[reprap-play.git] / camera-mount.scad
index d65b08d55922e63946d0db60a2fdfe6f7952ada3..fec9096192b3336e7a50ed782f3dc3eb42407db4 100644 (file)
@@ -1,11 +1,28 @@
 // -*- C -*-
 
+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(l){
+  rotate([0,180,0])
+    english_thread(diameter=negative_dia/inch,
+                  threads_per_inch=negative_tpi,
+                  leadin=0, internal=true, test=$test,
+                  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);
+  }
+}