chiark / gitweb /
poster-tube-lid: sloping bottom of catch tip
[reprap-play.git] / commitid-layering-test.scad
index fa75bf4..04d8c83 100644 (file)
@@ -3,13 +3,29 @@
 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();
+difference(){
+  Body();
+  translate([basexpos, baseypos, -baseh])
+    Commitid_BestCount_M([basex,basey], margin=3);
 
-translate([-4,3,0])
-cylinder(r=3, h=3);
+  translate([-6, 6, -0.4])
+    cylinder(r=5, h=3, $fn=50);
+}
+
+translate([-6, 6, -0.5])
+  cylinder(r=4, h=3.5, $fn=50);
+
+echo("pause height (mm)", baseh+0.01);
+
+Commitid_FontDemo();