X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=commitid-layering-test.scad;h=04d8c8322f3856a10c962c758c4258df0d2f0468;hp=11260731033407d9847a282f4ec8dbb86495ed29;hb=77c39f4394b1ede3825b88234a0d9832cc6d3b78;hpb=e4042868b2b9ac64b04cbd2df50de89bb1b72b2b diff --git a/commitid-layering-test.scad b/commitid-layering-test.scad index 1126073..04d8c83 100644 --- a/commitid-layering-test.scad +++ b/commitid-layering-test.scad @@ -3,14 +3,29 @@ include baseh= 1; +basex = 31; +basey= 20; +basexpos = -12; +baseypos = -4; -mirror([0,0,1]) - translate([-12, -4]) - cube([31, 20, baseh]); +module Body(){ + mirror([0,0,1]) + translate([basexpos, baseypos]) + cube([basex, basey, baseh]); +} -translate([0,0,-0.1]) -linear_extrude(height= Commitid_depth() + 0.1) - Commitid_FontDemo_2D(); +difference(){ + Body(); + translate([basexpos, baseypos, -baseh]) + Commitid_BestCount_M([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.5]) + cylinder(r=4, h=3.5, $fn=50); + +echo("pause height (mm)", baseh+0.01); + +Commitid_FontDemo();