chiark / gitweb /
commitid-layering-test: Add commitid
[reprap-play.git] / commitid-layering-test.scad
1 // -*- C -*-
2
3 include <commitid.scad>
4
5 baseh= 1;
6 basex = 31;
7 basey= 20;
8 basexpos = -12;
9 baseypos = -4;
10
11 module Body(){
12   mirror([0,0,1])
13     translate([basexpos, baseypos])
14     cube([basex, basey, baseh]);
15
16   translate([-5, 6, 0])
17     cylinder(r=4, h=3, $fn=20);
18 }
19
20 difference(){
21   Body();
22   translate([basex + basexpos, basey + baseypos, -baseh])
23     rotate([0,0,180])
24     Commitid_BestCount([basex,basey], margin=3);
25 }
26
27 Commitid_FontDemo();