X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=commitid-layering-test.scad;h=525ec414489db1634c995e2bcc509e61df232e0f;hb=9d8e9a751cc561fae994db260ac4925feec2260b;hp=5da4bbc23e68ee5674312fa343b6ea1ac81a0172;hpb=d7e83a2e4c44711aebe76882e6f12981575fe5a3;p=reprap-play.git diff --git a/commitid-layering-test.scad b/commitid-layering-test.scad index 5da4bbc..525ec41 100644 --- a/commitid-layering-test.scad +++ b/commitid-layering-test.scad @@ -3,13 +3,30 @@ include baseh= 1; +basex = 31; +basey= 20; +basexpos = -12; +baseypos = -4; -mirror([0,0,1]) - translate([-12, -4, -0.01]) - cube([31, 20, baseh + 0.01]); +module Body(){ + mirror([0,0,1]) + translate([basexpos, baseypos]) + cube([basex, basey, baseh]); +} -linear_extrude(height= Commitid_depth() + 0.1) - Commitid_FontDemo(); +difference(){ + Body(); + translate([basex + basexpos, baseypos, -baseh]) + rotate([0,180,0]) + Commitid_BestCount([basex,basey], margin=3); -translate([-5, 6, 0]) - cylinder(r=4, h=3, $fn=20); + translate([-6, 6, -0.4]) + cylinder(r=5, h=3, $fn=50); +} + +translate([-6, 6, 0]) + cylinder(r=4, h=3, $fn=50); + +echo("pause height (mm)", baseh+0.01); + +Commitid_FontDemo();