chiark / gitweb /
earring-stand: commitids on tests
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 13:51:23 +0000 (14:51 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 13:51:23 +0000 (14:51 +0100)
earring-stand.scad

index 0114a3710438fb089cad46b5dc509be1140f29e0..abbef45aefa587fbe1882f1a00bd2dbadea89ba8 100644 (file)
@@ -1,5 +1,7 @@
 // -*- C -*-
 
+include <commitid.scad>
+
 eclip_inner_rad = 2.5;
 eclip_gap_rad = 0.5;
 eclip_prong_th = 3;
@@ -95,17 +97,24 @@ module TestBase(){ ////toplevel
        EclipRPlan(test_alpha, test_main_th);
     }
   }
-  translate([-r2, -eclip_each_len, -test_base_th])
-    cube([r2*2,
-         test_len,
-         test_base_th]);
+  translate([-r2, -eclip_each_len, -test_base_th]){
+    difference(){
+      cube([r2*2,
+           test_len,
+           test_base_th]);
+      mirror([0,0,1]) Commitid_BestCount_M([r2*2, test_len]);
+    }
+  }
 }
 
 module TestProtr(){ ////toplevel
-  translate([0,0, test_main_th - eclip_wall_offset])
-    rotate([0,90,0])
-    linear_extrude(height=test_len)
-    EclipPPlan(test_main_th);
+  difference(){
+    translate([0,0, test_main_th - eclip_wall_offset])
+      rotate([0,90,0])
+      linear_extrude(height=test_len)
+      EclipPPlan(test_main_th);
+    mirror([0,0,1]) Commitid_BestCount_M([test_len, r2]);
+  }
 }
 
 module TestRAProtr(){ ////toplevel