aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena of Valhalla'' Grandi <valhalla@trueelena.org>2013-12-06 12:47:19 +0100
committerElena of Valhalla'' Grandi <valhalla@trueelena.org>2013-12-06 17:07:46 +0100
commit600c21f00b41eec562b2c1a23adb13d500c34a48 (patch)
tree0536c2705477ab082bc38b3119bae6e68f117d52
parent827d1b69fe7c970b176362821ab6a5f7fa05bdac (diff)
Saucers
-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);