From: Ian Jackson Date: Fri, 5 Feb 2016 00:43:32 +0000 (+0000) Subject: commitid-cube-test.scad: test cube with sunken top and bottom X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=a399e9f35489e49419bf78ddb0234669b65c7253 commitid-cube-test.scad: test cube with sunken top and bottom --- diff --git a/commitid-cube-test.scad b/commitid-cube-test.scad new file mode 100644 index 0000000..722cc01 --- /dev/null +++ b/commitid-cube-test.scad @@ -0,0 +1,33 @@ +// -*- C -*- + +include + +baseh= 1; + +sz = 20; + +h = 0.4; + +d = 0.1; + +module FD () { + scale([2,2,1]) { + translate([0.5,1.5,-d]) + linear_extrude(height= h + d) + Commitid_FontDemo(); + } +} + +module TC () { + difference(){ + cube([sz,sz,sz]); + translate([0,0, sz]) mirror([0,0,1]) FD(); + rotate([90,0,0]) translate([0,0,0]) FD(); + translate([sz,0,0]) mirror([1,0,0]) rotate([90,0,90]) FD(); + translate([sz,sz,0]) rotate([0,0,180]) FD(); + } + translate([sz,sz,0]) rotate([-90,0,0]) rotate([0,0,180]) FD(); + translate([0,sz,0]) rotate([-90,0,90]) rotate([0,0,180]) FD(); +} + +TC();