// challenge-bot // GNU AGPLv3 (or later at your option) // project available at these locations: // https://gitorious.org/ozzloy/challenge-bot // https://github.com/waynegramlich/challenge-bot include use $fn = 20; module wire_channel_groove_2d(width, height, wire_radius) { difference() { square([width, height]); translate([width / 2, height / 2]) { rotate(a = 90, v = [0, 0, 1]){ nut_2d(wire_diameter); } } } } /* wire_channel_groove_2d(wire_channel_width, wire_channel_height, wire_radius); */ module wire_channel_groove(width, height, wire_radius, length){ rotate(a = 90, v = [1, 0, 0]){ linear_extrude(height = length){ wire_channel_groove_2d(width, height, wire_radius); } } } for(ii = [0:len(wire_lengths) - 1]) { translate([ wire_channel_width * ii, 0, 0]) { #wire_channel_groove(wire_channel_width, wire_channel_height, wire_radius, wire_lengths[ii]); } }