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=1bb94853c440c9ae1b21c844a0199617b4f903a7;hb=1e5609f5812a3103813be78c322b383c8a13d35b;hpb=3d9533d580139d2a618d9e5b270445649ac0a29b diff --git a/commitid-layering-test.scad b/commitid-layering-test.scad index 1bb9485..04d8c83 100644 --- a/commitid-layering-test.scad +++ b/commitid-layering-test.scad @@ -3,17 +3,29 @@ include baseh= 1; +basex = 31; +basey= 20; +basexpos = -12; +baseypos = -4; -scale([2,2,1]) { +module Body(){ + mirror([0,0,1]) + translate([basexpos, baseypos]) + cube([basex, basey, baseh]); +} + +difference(){ + Body(); + translate([basexpos, baseypos, -baseh]) + Commitid_BestCount_M([basex,basey], margin=3); -mirror([0,0,1]) - translate([-6,-2, -0.01]) - cube([15.5,10, baseh + 0.01]); + translate([-6, 6, -0.4]) + cylinder(r=5, h=3, $fn=50); +} -linear_extrude(height= 0.4 + 0.1) - Commitid_FontDemo(); +translate([-6, 6, -0.5]) + cylinder(r=4, h=3.5, $fn=50); -translate([-2.5,3,0]) - cylinder(r=2, h=3, $fn=20); +echo("pause height (mm)", baseh+0.01); -} +Commitid_FontDemo();