summaryrefslogtreecommitdiff
path: root/src/piecepack.scad
diff options
context:
space:
mode:
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]);
+ }
+}
+