chiark / gitweb /
pandemic-quarantines: numbers, dxfs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Jul 2015 12:33:32 +0000 (13:33 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Jul 2015 12:33:32 +0000 (13:33 +0100)
.gitignore
Makefile
pandemic-quarantine-numbers.fig [new file with mode: 0644]
pandemic-quarantines.scad

index c4a28c1892380d9e305431949a3687239e757a6f..d2f790c7917cde1acde3d1feb28fe0cdbfd80fd5 100644 (file)
@@ -11,4 +11,6 @@ funcs.scad
 knifeblock-knives-*.dxf*
 pandemic-counter-l*.dxf
 pandemic-counter-l*.eps
+pandemic-quarantine-l*.dxf
+pandemic-quarantine-l*.eps
 screw-recess-test-number-s*.*
index 8bf5fadf251bdb7bcdb9c5e099024045b20c00d1..06c09d4c2d8c129befdb0619282d4b8a93a0eb7d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -88,6 +88,18 @@ pandemic-counter-l%.eps: pandemic-counter-letters.fig
                fig2dev -D +$(notdir $*) -L eps <$< >$@.tmp
                @mv -f $@.tmp $@
 
+PANDEMICQUARANTINES_NUMBERS=35
+PANDEMICQUARANTINES_DXFS=$(foreach l,$(PANDEMICQUARANTINES_NUMBERS), \
+       pandemic-quarantine-l$l.dxf)
+
+pandemic-quarantine-numbers pandemic-quarantine%.stl: \
+       $(PANDEMICQUARANTINES_DXFS)
+
+.PRECIOUS: pandemic-quarantine-l%.eps
+pandemic-quarantine-l%.eps: pandemic-quarantine-numbers.fig
+               fig2dev -D +$(notdir $*) -L eps <$< >$@.tmp
+               @mv -f $@.tmp $@
+
 SCREWRECESSTEST_SIZES= 2 3 4 5 6
 SCREWRECESSTEST_DXFS=$(foreach s,$(SCREWRECESSTEST_SIZES), \
        screw-recess-test-number-s$s.dxf)
diff --git a/pandemic-quarantine-numbers.fig b/pandemic-quarantine-numbers.fig
new file mode 100644 (file)
index 0000000..cb7f846
--- /dev/null
@@ -0,0 +1,12 @@
+#FIG 3.2  Produced by xfig version 3.2.5b
+Landscape
+Center
+Metric
+A4      
+100.00
+Single
+-2
+1200 2
+2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
+        1800 1800 2385 1800 2385 2385 1800 2385 1800 1800
+4 0 0 35 -1 14 24 0.0000 4 255 240 1980 2205 1\001
index a99cf7a4e939c54fdf0293e99d28f34f844c2161..e9b9eaa579d04bda6306d064d2e85cecf7588a9d 100644 (file)
@@ -3,6 +3,13 @@
 prisml = 13;
 triedge = 13;
 
+figboxsize = 13;
+
+module Number(depth) {
+  translate([-figboxsize/2, -figboxsize/2])
+    import(file=str("pandemic-quarantine-l",depth,".dxf"), convexity=100);
+}  
+
 module FaceTriangle(){
   x = triedge / 2;
   y = triedge / 2 * sqrt(3);