chiark / gitweb /
commitid-cube-test.scad: test cube with sunken top and bottom
[reprap-play.git] / commitid-cube-test.scad
diff --git a/commitid-cube-test.scad b/commitid-cube-test.scad
new file mode 100644 (file)
index 0000000..722cc01
--- /dev/null
@@ -0,0 +1,33 @@
+// -*- C -*-
+
+include <commitid.scad>
+
+baseh= 1;
+
+sz = 20;
+
+h = 0.4;
+
+d = 0.1;
+
+module FD () {
+  scale([2,2,1]) {
+    translate([0.5,1.5,-d])
+    linear_extrude(height= h + d)
+      Commitid_FontDemo();
+  }
+}
+
+module TC () {
+  difference(){
+    cube([sz,sz,sz]);
+    translate([0,0, sz]) mirror([0,0,1]) FD();
+    rotate([90,0,0]) translate([0,0,0]) FD();
+    translate([sz,0,0]) mirror([1,0,0]) rotate([90,0,90]) FD();
+    translate([sz,sz,0]) rotate([0,0,180]) FD();
+  }
+  translate([sz,sz,0]) rotate([-90,0,0]) rotate([0,0,180]) FD();
+  translate([0,sz,0]) rotate([-90,0,90]) rotate([0,0,180]) FD();
+}
+
+TC();