X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=commitid-cube-test.scad;h=0a5f21a5dc1056588a3a1784df63cf577fe68567;hp=1d81d10d8587ef03e739edfa4885b52ebc5a9051;hb=cd9506cd4f5fea2b670bf46cf45d937376e5e77f;hpb=10c578bf7a31fd28a44056ad0b34c3cc8dc278ef diff --git a/commitid-cube-test.scad b/commitid-cube-test.scad index 1d81d10..0a5f21a 100644 --- a/commitid-cube-test.scad +++ b/commitid-cube-test.scad @@ -32,29 +32,38 @@ fdsz = Commitid_FontDemo_sz(); d = Commitid_depth(); ru = Commitid_pixelsz(); -module TT () { ////toplevel +module TTWall () { difference(){ - union(){ - translate([-sz, 0, -t]) - cube([sz*2 + w, sz, t]); - translate([0, 0, -0.1]) - cube([w, sz, sz - t + 0.1]); - } - translate([0,sz,0]) rotate([90,0,-90]) FD(); - translate([w,0,-t]) rotate([0,180,0]) FD(); - translate([w,0,0]) rotate([0,0,0]) FD(); + translate([0, 0, -0.1]) + cube([w, sz, sz - t + 0.1]); + translate([0,sz,0]) rotate([90,0,-90]) FD(); translate([0, sz, 0]) rotate([90, 0, -90]) translate(fdo + [0, -ru*2, -d]) cube([fdsz[0], ru, d*2]); } translate([w,0,0]) rotate([90,0,90]) FD(); - translate([-sz,0,0]) rotate([0,0,0]) FD(); translate([0, sz+d, 0]) rotate([90,0,0]) translate([0, fdo[1], 0]) cube([d*2, fdsz[1], ru]); - //!cube([fdsz[1], fdsz[0], 1]); +} + +module TT () { ////toplevel + difference(){ + translate([-sz, 0, -t]) + cube([sz*2 + w, sz, t]); + + translate([0,0,-t]) rotate([0,180,0]) FD(); + translate([w,0,0]) rotate([0,0,0]) FD(); + + translate([(sz+w), 0, -t]) rotate([0,180,0]) + Commitid_BestCount([sz+w, sz]); + } + translate([-sz,0,0]) rotate([0,0,0]) FD(); + + TTWall(); + translate([0,0,-t]) rotate([90,0,0]) TTWall(); } echo("pixelsz:", str(Commitid_pixelsz()),