| 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 | include <wire-jig-dimensions.scad> |
| 8 | use <nut.scad> |
| 9 | |
| 10 | $fn = 20; |
| 11 | |
| 12 | module wire_channel_groove_2d(width, height, wire_radius) { |
| 13 | difference() { |
| 14 | square([width, height]); |
| 15 | translate([width / 2, height / 2]) { |
| 16 | rotate(a = 90, v = [0, 0, 1]){ |
| 17 | nut_2d(wire_diameter); } } } } |
| 18 | |
| 19 | /* |
| 20 | wire_channel_groove_2d(wire_channel_width, |
| 21 | wire_channel_height, |
| 22 | wire_radius); |
| 23 | */ |
| 24 | |
| 25 | module wire_channel_groove(width, height, wire_radius, length){ |
| 26 | rotate(a = 90, v = [1, 0, 0]){ |
| 27 | linear_extrude(height = length){ |
| 28 | wire_channel_groove_2d(width, height, wire_radius); } } } |
| 29 | |
| 30 | for(ii = [0:len(wire_lengths) - 1]) { |
| 31 | translate([ wire_channel_width * ii, 0, 0]) { |
| 32 | #wire_channel_groove(wire_channel_width, |
| 33 | wire_channel_height, |
| 34 | wire_radius, |
| 35 | wire_lengths[ii]); } } |