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