chiark / gitweb /
poster-tube-lid: catch: rework mostly done ?
[reprap-play.git] / bike-stalk-led-mount.scad
index 43d2ade..a3c0c4e 100644 (file)
@@ -1,5 +1,7 @@
 // -*- C -*-
 
+include <commitid.scad>
+
 stalk_dia = 6.4 + 0.25;
 
 length = 50;
@@ -28,18 +30,23 @@ 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(){
+module BlockAbove(){ ////toplevel
   difference(){
     SomeBlockBase(above_height);
     StalkCutout();
   }
 }
 
-module BlockBelow(){
+module BlockBelow(){ ////toplevel
   difference(){
     SomeBlockBase(below_height);
     StalkCutout();
@@ -48,9 +55,17 @@ module BlockBelow(){
   }
 }
 
-module Demo(){
+module BlockAbovePrint(){ ////toplevel
+  rotate([180,0,0]) BlockAbove();
+}
+
+module BlockBelowPrint(){ ////toplevel
+  rotate([180,0,0]) BlockBelow();
+}
+
+module Demo(){ ////toplevel
   BlockAbove();
   rotate([180,0,0]) BlockBelow();
 }
 
-Demo();
+//Demo();