chiark / gitweb /
pandemic-quarantines: xfig layers are numbers, wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Jul 2015 12:39:52 +0000 (13:39 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Jul 2015 12:39:52 +0000 (13:39 +0100)
Makefile
pandemic-quarantine-numbers.fig
pandemic-quarantines.scad

index 06c09d4c2d8c129befdb0619282d4b8a93a0eb7d..c2c8972c69f86ac07e38f3a4824c2c5b959bc548 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -88,7 +88,7 @@ pandemic-counter-l%.eps: pandemic-counter-letters.fig
                fig2dev -D +$(notdir $*) -L eps <$< >$@.tmp
                @mv -f $@.tmp $@
 
-PANDEMICQUARANTINES_NUMBERS=35
+PANDEMICQUARANTINES_NUMBERS=1 2
 PANDEMICQUARANTINES_DXFS=$(foreach l,$(PANDEMICQUARANTINES_NUMBERS), \
        pandemic-quarantine-l$l.dxf)
 
index cb7f8469a4171543dba6a68992eded5cbdde5aaa..1524380fad5e2cf077cc9fc19c1b0516f8173800 100644 (file)
@@ -9,4 +9,5 @@ Single
 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
+4 0 0 1 -1 14 24 0.0000 4 255 240 1980 2205 1\001
+4 0 0 2 -1 14 24 0.0000 4 255 240 1980 2205 2\001
index e9b9eaa579d04bda6306d064d2e85cecf7588a9d..5d210dc24e83ab4980160aadee6be7c96cd90045 100644 (file)
@@ -3,12 +3,14 @@
 prisml = 13;
 triedge = 13;
 
+etchdepth = 1.5;
+
 figboxsize = 13;
 
-module Number(depth) {
+module Number(number) {
   translate([-figboxsize/2, -figboxsize/2])
-    import(file=str("pandemic-quarantine-l",depth,".dxf"), convexity=100);
-}  
+    import(file=str("pandemic-quarantine-l",number,".dxf"), convexity=100);
+}
 
 module FaceTriangle(){
   x = triedge / 2;
@@ -24,4 +26,24 @@ module Body(){
     linear_extrude(height=prisml) FaceTriangle();
 }
 
-Body();
+module NumberCut(number){
+  translate([0,0, -etchdepth])
+    linear_extrude(height= etchdepth + 1)
+    Number(number);
+}
+
+module Etchings(){
+  for (my=[0,1]) {
+    
+  }
+}
+
+module Counter(){
+  difference(){
+    Body();
+    Etchings();
+  }
+}
+
+Counter();
+//NumberCut(1);