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 d5cc2a416dbd3728b7d3a0a28f85048c27b69077..a3c0c4efa4749d44960e53002bcf123555cc1bd1 100644 (file)
@@ -1,5 +1,7 @@
 // -*- C -*-
 
 // -*- C -*-
 
+include <commitid.scad>
+
 stalk_dia = 6.4 + 0.25;
 
 length = 50;
 stalk_dia = 6.4 + 0.25;
 
 length = 50;
@@ -28,8 +30,13 @@ module StalkCutout(){
 }
 
 module SomeBlockBase(height){
 }
 
 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
 }
 
 module BlockAbove(){ ////toplevel