chiark / gitweb /
poster-tube-lid: catch wip, CatchAssembly seems done ?
[reprap-play.git] / bike-stalk-led-mount.scad
index 43d2adebb0b46f151286888aed132e5baf808ef7..a3c0c4efa4749d44960e53002bcf123555cc1bd1 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();