chiark / gitweb /
bike-stalk-led-mount: commitids
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 4 Oct 2016 20:40:36 +0000 (21:40 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 4 Oct 2016 20:40:36 +0000 (21:40 +0100)
bike-stalk-led-mount.scad

index d5cc2a4..a3c0c4e 100644 (file)
@@ -1,5 +1,7 @@
 // -*- C -*-
 
+include <commitid.scad>
+
 stalk_dia = 6.4 + 0.25;
 
 length = 50;
@@ -28,8 +30,13 @@ module StalkCutout(){
 }
 
 module SomeBlockBase(height){
-  translate([0,0, height/2 + inside_gap/2])
-    cube([length, width, height], center=true);
+  translate([0,0, height/2 + inside_gap/2]) {
+    difference(){
+      cube([length, width, height], center=true);
+      translate([-length/2, 0, height/2])
+       Commitid_BestCount([length*.66, width/2]);
+    }
+  }
 }
 
 module BlockAbove(){ ////toplevel