chiark / gitweb /
commitid-cube-test: break out fdo (nfc)
[reprap-play.git] / commitid-cube-test.scad
1 // -*- C -*-
2
3 include <commitid.scad>
4
5 baseh= 1;
6
7 sz = 20;
8
9 fdo = [1, 3, 0];
10
11 module FD () {
12     translate(fdo)
13       Commitid_FontDemo();
14 }
15
16 module TC () { ////toplevel
17   difference(){
18     cube([sz,sz,sz]);
19     translate([0,0, sz]) mirror([0,0,1]) FD();
20     rotate([90,0,0]) translate([0,0,0]) FD();
21     translate([sz,0,0]) mirror([1,0,0]) rotate([90,0,90]) FD();
22     translate([sz,sz,0]) rotate([0,0,180]) FD();
23   }
24   translate([sz,sz,0]) rotate([-90,0,0]) rotate([0,0,180]) FD();
25   translate([0,sz,0]) rotate([-90,0,90]) rotate([0,0,180]) FD();
26 }
27
28 w = 3;
29 t = 2;
30
31 module TT () { ////toplevel
32   difference(){
33     union(){
34       translate([-sz, 0, -t])
35         cube([sz*2 + w, sz, t]);
36       translate([0, 0, -t])
37         cube([w, sz, sz]);
38     }
39     translate([0,sz,0]) rotate([90,0,-90]) FD();
40     translate([w,0,-t]) rotate([0,180,0]) FD();
41     translate([w,0,0]) rotate([0,0,0]) FD();
42   }
43   translate([w,0,0]) rotate([90,0,90]) FD();
44   translate([-sz,0,0]) rotate([0,0,0]) FD();
45 }
46
47 echo("pixelsz:", str(Commitid_pixelsz()),
48      "depth:", Commitid_depth(),
49      "sz:", Commitid_FontDemo_sz());
50
51 //TC();
52 TT();