From 04e00ee3ea9041111ac1d053c5a607dc440b0558 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 11 Nov 2014 21:18:39 +0100 Subject: Tile faces (for 2-color printing) --- src/piecepack.scad | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') diff --git a/src/piecepack.scad b/src/piecepack.scad index 9c830ae..31743b3 100644 --- a/src/piecepack.scad +++ b/src/piecepack.scad @@ -19,6 +19,22 @@ module tile(suite,value) { } } +module tile_face(suite,value) { + intersection() { + translate([0,0,0.4]) cube([50,50,4.6]); + union() { + 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([0,35,4]) linear_extrude(height=2) scale(0.3) import(str("../graphics/",suite,".dxf")); + } + } +} + module coin(suite,value) { difference() { cylinder(r=10, h=3); -- cgit v1.2.3