summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--src/pawn.scad5
-rw-r--r--src/piecepack.scad9
3 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a1f054c..91cecb2 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,13 @@ dice:
-D suite=\"$$SUITE\" src/die.scad; \
done
+pawns:
+ mkdir -p ${DESTDIR}
+ for SUITE in suns moons crowns arms; do \
+ openscad -o ${DESTDIR}/pawn-$$SUITE.stl \
+ -D suite=\"$$SUITE\" src/pawn.scad; \
+ done
+
gcode: tiles coins
for T in ${DESTDIR}/tile*; do \
${SLIC3R} --load ${CONFDIR}/tiles.ini $$T; \
diff --git a/src/pawn.scad b/src/pawn.scad
new file mode 100644
index 0000000..f396925
--- /dev/null
+++ b/src/pawn.scad
@@ -0,0 +1,5 @@
+use <piecepack.scad>;
+
+suite="arms";
+
+pawn(suite);
diff --git a/src/piecepack.scad b/src/piecepack.scad
index ef3f3c7..4b701e4 100644
--- a/src/piecepack.scad
+++ b/src/piecepack.scad
@@ -54,3 +54,12 @@ module die(suite) {
import("../graphics/4.dxf");
}
}
+
+module pawn(suite) {
+ difference() {
+ cylinder(r=8, h=22);
+ translate([-8,-8,21]) linear_extrude(height=1.5) scale(0.32)
+ import(str("../graphics/",suite,".dxf"),center=true);
+ }
+}
+