summaryrefslogtreecommitdiff
path: root/src/piecepack.scad
diff options
context:
space:
mode:
authorElena of Valhalla'' Grandi <valhalla@trueelena.org>2013-11-17 10:08:30 +0100
committerElena of Valhalla'' Grandi <valhalla@trueelena.org>2013-11-17 10:08:30 +0100
commit2b9dfde03d56d6298cd168175a9fa8db13eb4a63 (patch)
tree6adda38ba2894ebd926463681dc01c7a0dbf10b9 /src/piecepack.scad
parentd9bd902d2af94a962769d09833ab8a1909b4b118 (diff)
Generation of tiles via Makefile
Diffstat (limited to 'src/piecepack.scad')
-rw-r--r--src/piecepack.scad21
1 files changed, 21 insertions, 0 deletions
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]);
+ }
+}
+