chiark / gitweb /
commitid.scad.pl: Provide 3D versions
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 03:34:10 +0000 (03:34 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 03:34:10 +0000 (03:34 +0000)
commitid.scad.pl

index fbf1231..be58d4c 100755 (executable)
@@ -101,6 +101,10 @@ sub gentextmodule ($@) {
     }
     p " }\n";
     p "}\n";
+    p "module ${modb}(){\n";
+    p " d=Commitid_depth();\n";
+    p " translate([0,0,-d]) linear_extrude(height=d*2) ${modb}_2D();\n";
+    p "}\n";
 }
 
 our @demo;