summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile13
-rw-r--r--src/piecepack.scad10
-rw-r--r--src/saucer.scad5
3 files changed, 25 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b64fb39..6b18249 100644
--- a/Makefile
+++ b/Makefile
@@ -36,15 +36,22 @@ pawns:
-D suite=\"$$SUITE\" src/pawn.scad; \
done
-gcode: tiles coins dice
+saucers:
+ mkdir -p ${DESTDIR}
+ for SUITE in suns moons crowns arms; do \
+ openscad -o ${DESTDIR}/saucer-$$SUITE.stl \
+ -D suite=\"$$SUITE\" src/saucer.scad; \
+ done
+
+gcode: tiles coins dice saucers
for T in ${DESTDIR}/tile*; do \
${SLIC3R} --load ${CONFDIR}/tiles.ini $$T; \
done
- for T in ${DESTDIR}/coin*; do \
+ for T in ${DESTDIR}/coin* ${DESTDIR}/saucer*; do \
${SLIC3R} --load ${CONFDIR}/coins.ini $$T; \
done
for T in ${DESTDIR}/die*; do \
${SLIC3R} --load ${CONFDIR}/dice.ini $$T; \
done
-all: tiles coins dice pawns
+all: tiles coins dice pawns saucers
diff --git a/src/piecepack.scad b/src/piecepack.scad
index 4b701e4..70da750 100644
--- a/src/piecepack.scad
+++ b/src/piecepack.scad
@@ -63,3 +63,13 @@ module pawn(suite) {
}
}
+module saucer(suite) {
+ difference() {
+ cylinder(r=12, h=5);
+ translate([0,0,3]) cylinder(r=9, h=3);
+ translate([0,12,-1]) cylinder(r=2, h=7);
+ translate([-8,-8,2]) linear_extrude(height=1.5) scale(0.32)
+ import(str("../graphics/",suite,".dxf"),center=true);
+ }
+}
+
diff --git a/src/saucer.scad b/src/saucer.scad
new file mode 100644
index 0000000..c174657
--- /dev/null
+++ b/src/saucer.scad
@@ -0,0 +1,5 @@
+use <piecepack.scad>;
+
+suite="arms";
+
+saucer(suite);