chiark / gitweb /
fairphone-case: adjust length from v8
[reprap-play.git] / commitid-cube-test-Y.scad
index 4f2f6fd5c099a890d0300c5ab95c6055b8da4c3c..23aa0760a07a9adfc909c6fd55a2760cc10e1f14 100644 (file)
@@ -1,14 +1,23 @@
 // -*- C -*-
 
+$Commitid_depth = 1.0;
+$Commitid_pixelsz = 1.5;
+
 include <commitid.scad>
 
 baseh= 1;
 
-sz = 20;
-
 fdo = [1, 3, 0];
 
-$Commitid_depth = 1.0;
+w = 3;
+t = 4;
+
+fdsz = Commitid_FontDemo_sz();
+d = Commitid_depth();
+ru = Commitid_pixelsz();
+echo($Commitid_pixelsz, ru, fdsz);
+
+sz = max( fdsz[0], fdsz[1] ) + ru;
 
 module FD () {
     translate(fdo)
@@ -27,13 +36,6 @@ module TC () { ////toplevel
   translate([0,sz,0]) rotate([-90,0,90]) rotate([0,0,180]) FD();
 }
 
-w = 3;
-t = 4;
-
-fdsz = Commitid_FontDemo_sz();
-d = Commitid_depth();
-ru = Commitid_pixelsz();
-
 module TTWall () {
   difference(){
     translate([0, 0, -0.1])