From 600c21f00b41eec562b2c1a23adb13d500c34a48 Mon Sep 17 00:00:00 2001 From: Elena of Valhalla'' Grandi Date: Fri, 6 Dec 2013 12:47:19 +0100 Subject: Saucers --- Makefile | 13 ++++++++++--- src/piecepack.scad | 10 ++++++++++ src/saucer.scad | 5 +++++ 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 src/saucer.scad 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 ; + +suite="arms"; + +saucer(suite); -- cgit v1.2.3