| 1 | // challenge-bot |
| 2 | // GNU AGPLv3 (or later at your option) |
| 3 | // project available at these locations: |
| 4 | // https://gitorious.org/ozzloy/challenge-bot |
| 5 | // https://github.com/waynegramlich/challenge-bot |
| 6 | |
| 7 | // this needs to be updated with actual measurements |
| 8 | length=5; |
| 9 | width=5; |
| 10 | thickness=1; |
| 11 | |
| 12 | module plate(length, width, thickness){ |
| 13 | difference(){ |
| 14 | cube([length, width, thickness]); |
| 15 | translate([0, 0, -0.05 * thickness]) |
| 16 | scale([1, 1, 1.1]) |
| 17 | translate([length / 2, (width + thickness) / 2, 0]) |
| 18 | cylinder(h = thickness, r = 0.5, $fn = 20);}} |
| 19 | |
| 20 | |
| 21 | module bracket (length, width, thickness){ |
| 22 | translate ([0, thickness/2, thickness/2]){ |
| 23 | translate([0, - thickness / 2, - thickness / 2]) |
| 24 | plate(length, width, thickness); |
| 25 | rotate([90,0,0]) |
| 26 | translate([0, - thickness / 2, - thickness / 2]) |
| 27 | plate(length, width, thickness);}} |
| 28 | |
| 29 | bracket(length, width, thickness); |