aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);