chiark / gitweb /
scaffold-clamp: wip straphook
[reprap-play.git] / pin-hinge.scad
index 4eba18545d51b3e29bda4743e788ef67273fa2f0..81d527e478ad50a5550861ae5cecc98bac011b78 100644 (file)
@@ -2,7 +2,7 @@
 
 include <utils.scad>
 
-$hinge_pin_dia = 0.795 + 0.35;
+$hinge_pin_dia = 0.795 + 0.75;
 $hinge_main_dia = 4.0;
 $hinge_inter_gap = 0.50;
 $hinge_prong_minwidth = 3.0;
@@ -62,12 +62,39 @@ module HingeNegative(l){
   }
 }
 
+test_l = 30;
+test_wb = 12;
+test_h = 12;
+
+test_face_gap = 0.75;
+
 module Demo(){
   difference(){
-    HingePositive(30, 10);
-    %HingeNegative(30);
+    HingePositive(test_l, test_h/2);
+    %HingeNegative(test_l);
+  }
+}
+
+module TestBody(){
+  linextr_x_yz(0, test_l){
+    offset(delta = -test_face_gap/2)
+      polygon([[0,0],
+              [-test_wb/2, -test_h],
+              [+test_wb/2, -test_h]]);
+  }
+}
+
+module Test(){
+  difference(){
+    union(){
+      TestBody();
+      HingePositive(test_l, test_h/2);
+    }
+    HingeNegative(test_l);
   }
 }
 
 //PlanDemo();
-Demo();
+//Demo();
+//TestBody();
+Test();