chiark / gitweb /
mic-table-clamp: Adjustments from blank, binary chop
[reprap-play.git] / mic-table-clamp.scad
index e7656079f3aa6fd20195895d23c7ac2f1264d045..26de11850f14dafb089d463b7075b325a696a7f0 100644 (file)
@@ -12,13 +12,17 @@ include <camera-mount.scad>
 positive_dia = inch * 3/8. - 0.375;
 positive_l = inch * 1/2.;
 
+positive_blank_dia = 8.25;
+blank_l = 17;
+blank_taper = 1.0;
+
 stem_l = 40;
 stem_dia = 12;
 stem_th = 3;
 stem_ceil = 2;
 stem_base_th  = 4;
 stem_base_dia = 25;
-stem_inner_l = 30;
+stem_inner_l = 15;
 
 thread_nom = 8;
 thread_pitch = 1.25;
@@ -71,11 +75,9 @@ module OurThread(l){
                  test=$test, length=l);
 }
 
-module Stem(){ ////toplevel
+module StemWith(){
   translate([0,0, stem_l -0.1])
-    english_thread(diameter=positive_dia/inch, threads_per_inch=16,
-                  leadin=1, test=$test,
-                  length= (positive_l + 0.1) / inch);
+    children();
 
   difference(){
     union(){
@@ -87,6 +89,27 @@ module Stem(){ ////toplevel
     }
     OurThread(stem_inner_l);
   }
+}  
+
+module Stem(){ ////toplevel
+  StemWith()
+    english_thread(diameter=positive_dia/inch, threads_per_inch=16,
+                  leadin=1, test=$test,
+                  length= (positive_l + 0.1) / inch);
+}
+
+module StemBlankPart(){
+  hull(){
+    cylinder(h = blank_l + 0.1 - blank_taper,
+            r = positive_blank_dia/2);
+    cylinder(h = blank_l + 0.1,
+            r = positive_blank_dia/2 - blank_taper);
+  }
+}
+
+module BlankStem(){ ////toplevel
+  StemWith()
+    StemBlankPart();
 }
 
 module Wingnut(){ ////toplevel
@@ -189,8 +212,13 @@ module ClampBot(){ ////toplevel
   }
 }
 
+module StemBlankTest(){ ////toplevel
+  StemBlankPart();
+  linextr(-1.5,0) square(center=true, [10,35]);
+}
+
 module Demo(){ ////toplevel
-  color("blue") translate([0,0, clamp_top_th+0.5]) Stem();
+  color("blue") translate([0,0, clamp_top_th+0.5]) BlankStem();
   color("red") ClampTop();
   color("grey") translate([0,0, -(clamp_bot_th + 5)]) ClampBot();
   translate([0,0, -(clamp_bot_collar +10)])