chiark / gitweb /
commitid-cube-test.scad: test cube with sunken top and bottom
[reprap-play.git] / commitid-cube-test.scad
1 // -*- C -*-
2
3 include <commitid.scad>
4
5 baseh= 1;
6
7 sz = 20;
8
9 h = 0.4;
10
11 d = 0.1;
12
13 module FD () {
14   scale([2,2,1]) {
15     translate([0.5,1.5,-d])
16     linear_extrude(height= h + d)
17       Commitid_FontDemo();
18   }
19 }
20
21 module TC () {
22   difference(){
23     cube([sz,sz,sz]);
24     translate([0,0, sz]) mirror([0,0,1]) FD();
25     rotate([90,0,0]) translate([0,0,0]) FD();
26     translate([sz,0,0]) mirror([1,0,0]) rotate([90,0,90]) FD();
27     translate([sz,sz,0]) rotate([0,0,180]) FD();
28   }
29   translate([sz,sz,0]) rotate([-90,0,0]) rotate([0,0,180]) FD();
30   translate([0,sz,0]) rotate([-90,0,90]) rotate([0,0,180]) FD();
31 }
32
33 TC();