chiark / gitweb /
commitid-layering-test: adjust 0.1 overlaps to be sane; removes bug which made letter...
[reprap-play.git] / commitid-cube-test.scad
index 722cc01c5618e5a0cc373a5f0a84d088a686f01e..0a2029d80048c72fe007138c9f94c35299ac6949 100644 (file)
@@ -6,19 +6,17 @@ baseh= 1;
 
 sz = 20;
 
-h = 0.4;
+h = Commitid_depth();
 
-d = 0.1;
+d = h;
 
 module FD () {
-  scale([2,2,1]) {
-    translate([0.5,1.5,-d])
+    translate([1, 3, -d])
     linear_extrude(height= h + d)
-      Commitid_FontDemo();
-  }
+      Commitid_FontDemo_2D();
 }
 
-module TC () {
+module TC () { ////toplevel
   difference(){
     cube([sz,sz,sz]);
     translate([0,0, sz]) mirror([0,0,1]) FD();
@@ -30,4 +28,24 @@ module TC () {
   translate([0,sz,0]) rotate([-90,0,90]) rotate([0,0,180]) FD();
 }
 
-TC();
+w = 3;
+t = 2;
+
+module TT () { ////toplevel
+  difference(){
+    union(){
+      translate([-sz, 0, -t])
+       cube([sz*2 + w, sz, t]);
+      translate([0, 0, -t])
+       cube([w, sz, sz]);
+    }
+    translate([0,sz,0]) rotate([90,0,-90]) FD();
+    translate([w,0,-t]) rotate([0,180,0]) FD();
+    translate([w,0,0]) rotate([0,0,0]) FD();
+  }
+  translate([w,0,0]) rotate([90,0,90]) FD();
+  translate([-sz,0,0]) rotate([0,0,0]) FD();
+}
+
+//TC();
+TT();