chiark / gitweb /
commitid-layering-test: move cylinder out of Body() (nfc)
[reprap-play.git] / commitid-layering-test.scad
index 1f82d7c7b0162bddb35dc9959891e42deff893b4..c988c98443be1ea480f169938bb98e843c820aad 100644 (file)
@@ -5,16 +5,25 @@ include <commitid.scad>
 baseh= 1;
 basex = 31;
 basey= 20;
+basexpos = -12;
+baseypos = -4;
 
 module Body(){
   mirror([0,0,1])
-    translate([-12, -4])
+    translate([basexpos, baseypos])
     cube([basex, basey, baseh]);
+}
 
-  translate([-5, 6, 0])
-    cylinder(r=4, h=3, $fn=20);
+difference(){
+  Body();
+  translate([basex + basexpos, basey + baseypos, -baseh])
+    rotate([0,0,180])
+    Commitid_BestCount([basex,basey], margin=3);
 }
 
-Body();
+translate([-6, 6, 0])
+  cylinder(r=4, h=3, $fn=20);
+
+echo("pause height (mm)", baseh+0.01);
 
 Commitid_FontDemo();