chiark / gitweb /
commitid-layering-test: move cylinder out of Body() (nfc)
[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
17 difference(){
18   Body();
19   translate([basex + basexpos, basey + baseypos, -baseh])
20     rotate([0,0,180])
21     Commitid_BestCount([basex,basey], margin=3);
22 }
23
24 translate([-6, 6, 0])
25   cylinder(r=4, h=3, $fn=20);
26
27 echo("pause height (mm)", baseh+0.01);
28
29 Commitid_FontDemo();