chiark / gitweb /
camera-mount: break out from mic-camera-adapter: module (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 14 Apr 2020 00:19:10 +0000 (01:19 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 14 Apr 2020 00:19:10 +0000 (01:19 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
camera-mount.scad
mic-camera-adapter.scad

index d65b08d55922e63946d0db60a2fdfe6f7952ada3..10d2adc6af84457b8dde7be6cab4f6d92eaed2a2 100644 (file)
@@ -1,5 +1,7 @@
 // -*- C -*-
 
+include <threads.scad>
+
 inch = 25.4;
 
 negative_dia = inch * 1/4. + 0.375;
@@ -9,3 +11,21 @@ negative_tpi = 20;
 negative_pitch = inch/negative_tpi;
 negative_chamfer = negative_pitch/2;
 
+module CameraMountThread(){
+  translate([0,0, midsection]) {
+    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,
+                  h= negative_chamfer*3);
+      }
+    }
+  }
+}
index 0fdd26ca75bda633607686b7dc6c41ef79147640..416b5914633645a0716fc54ed486bdf60e62e8a0 100644 (file)
@@ -43,22 +43,7 @@ module Adapter(){
          }
        }
       }
-      translate([0,0, midsection]) {
-       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,
-                      h= negative_chamfer*3);
-         }
-       }
-      }
+      CameraMountThread();
     }
   }
 }