From a399e9f35489e49419bf78ddb0234669b65c7253 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 5 Feb 2016 00:43:32 +0000 Subject: [PATCH] commitid-cube-test.scad: test cube with sunken top and bottom --- commitid-cube-test.scad | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 commitid-cube-test.scad 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(); -- 2.30.2