chiark / gitweb /
commitid-layering-test.scad: print the pause height
[reprap-play.git] / commitid-layering-test.scad
index fa75bf48555daa94cdf1be99c7281680e9a2e09f..3b33674a165f560c979e2b770d6eba6bf634dd7c 100644 (file)
@@ -3,13 +3,27 @@
 include <commitid.scad>
 
 baseh= 1;
+basex = 31;
+basey= 20;
+basexpos = -12;
+baseypos = -4;
 
-mirror([0,0,1])
-  translate([-8,-2, -0.01])
-  cube([17.5,10, baseh + 0.01]);
+module Body(){
+  mirror([0,0,1])
+    translate([basexpos, baseypos])
+    cube([basex, basey, baseh]);
 
-linear_extrude(height= 0.4 + 0.1)
-  Commitid_FontDemo();
+  translate([-5, 6, 0])
+    cylinder(r=4, h=3, $fn=20);
+}
 
-translate([-4,3,0])
-cylinder(r=3, h=3);
+difference(){
+  Body();
+  translate([basex + basexpos, basey + baseypos, -baseh])
+    rotate([0,0,180])
+    Commitid_BestCount([basex,basey], margin=3);
+}
+
+echo("pause height (mm)", baseh+0.01);
+
+Commitid_FontDemo();