chiark / gitweb /
525ec414489db1634c995e2bcc509e61df232e0f
[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, baseypos, -baseh])
20     rotate([0,180,0])
21     Commitid_BestCount([basex,basey], margin=3);
22
23   translate([-6, 6, -0.4])
24     cylinder(r=5, h=3, $fn=50);
25 }
26
27 translate([-6, 6, 0])
28   cylinder(r=4, h=3, $fn=50);
29
30 echo("pause height (mm)", baseh+0.01);
31
32 Commitid_FontDemo();