aboutsummaryrefslogtreecommitdiff
path: root/src
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
parentd9bd902d2af94a962769d09833ab8a1909b4b118 (diff)
Generation of tiles via Makefile
Diffstat (limited to 'src')
-rw-r--r--src/piecepack.scad21
-rw-r--r--src/tile.scad6
2 files changed, 27 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]);
+ }
+}
+
diff --git a/src/tile.scad b/src/tile.scad
new file mode 100644
index 0000000..b168051
--- /dev/null
+++ b/src/tile.scad
@@ -0,0 +1,6 @@
+use <piecepack.scad>;
+
+suite="arms";
+value="ace";
+
+tile(suite,value);