chiark / gitweb /
commitid-cube-test: Break out TTWall (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 16:15:39 +0000 (16:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 16:15:39 +0000 (16:15 +0000)
commitid-cube-test.scad

index 2c2117963bde9eb5b57e4cbc18d9662a03e79d61..4bcef05011d39d727712023323158c047c304c86 100644 (file)
@@ -32,18 +32,7 @@ fdsz = Commitid_FontDemo_sz();
 d = Commitid_depth();
 ru = Commitid_pixelsz();
 
-module TT () { ////toplevel
-  difference(){
-    union(){
-      translate([-sz, 0, -t])
-       cube([sz*2 + w, sz, t]);
-    }
-    translate([w,0,-t]) rotate([0,180,0]) FD();
-    translate([w,0,0]) rotate([0,0,0]) FD();
-
-  }
-  translate([-sz,0,0]) rotate([0,0,0]) FD();
-
+module TTWall () {
   difference(){
       translate([0, 0, -0.1])
        cube([w, sz, sz - t + 0.1]);
@@ -62,6 +51,21 @@ module TT () { ////toplevel
   //!cube([fdsz[1], fdsz[0], 1]);
 }
 
+module TT () { ////toplevel
+  difference(){
+    union(){
+      translate([-sz, 0, -t])
+       cube([sz*2 + w, sz, t]);
+    }
+    translate([w,0,-t]) rotate([0,180,0]) FD();
+    translate([w,0,0]) rotate([0,0,0]) FD();
+
+  }
+  translate([-sz,0,0]) rotate([0,0,0]) FD();
+
+  TTWall();
+}
+
 echo("pixelsz:", str(Commitid_pixelsz()),
      "depth:", Commitid_depth(),
      "sz:", Commitid_FontDemo_sz());