summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2014-11-11 21:18:39 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2014-11-11 21:18:39 +0100
commit04e00ee3ea9041111ac1d053c5a607dc440b0558 (patch)
tree1536e584941b9c050665b71feecff1f500a3b39b
parentdc6bf63d7d79de439624125d834da1511ee5cd31 (diff)
Tile faces (for 2-color printing)
-rw-r--r--Makefile9
-rw-r--r--src/piecepack.scad16
2 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2d96abb..f706835 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,15 @@ tiles:
done \
done
+tile_faces:
+ mkdir -p ${DESTDIR}
+ for SUITE in ${SUITES}; do \
+ for VALUE in ${VALUES}; do \
+ openscad -o ${DESTDIR}/tile_face-$$SUITE-$$VALUE.stl \
+ -D suite=\"$$SUITE\" -D value=\"$$VALUE\" src/tile_face.scad; \
+ done \
+ done
+
coins:
mkdir -p ${DESTDIR}
for SUITE in ${SUITES}; do \
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);