From 2b9dfde03d56d6298cd168175a9fa8db13eb4a63 Mon Sep 17 00:00:00 2001 From: Elena of Valhalla'' Grandi Date: Sun, 17 Nov 2013 10:08:30 +0100 Subject: Generation of tiles via Makefile --- src/piecepack.scad | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/piecepack.scad (limited to 'src/piecepack.scad') diff --git a/src/piecepack.scad b/src/piecepack.scad new file mode 100644 index 0000000..0af95e5 --- /dev/null +++ b/src/piecepack.scad @@ -0,0 +1,21 @@ + +module tile(suite,value) { + union() { + difference(){ + translate([0,0,0.4]) cube([50,50,4.6]); + if (value == "ace") { + translate([0,0,4]) linear_extrude(height=2) + import(str("../graphics/",suite,".dxf")); + } else if (value != "null") { + translate([0,0,4]) linear_extrude(height=2) + import(str("../graphics/",value,".dxf")); + } + translate([2,38,4]) linear_extrude(height=2) scale(0.2) import(str("../graphics/",suite,".dxf")); + } + cube([24.5,24.5,1]); + translate([25.5,0,0]) cube([24.5,24.5,1]); + translate([0,25.5,0]) cube([24.5,24.5,1]); + translate([25.5,25.5,0]) cube([24.5,24.5,1]); + } +} + -- cgit v1.2.3