define wiring in separate file
[challenge-bot] / 3d-printables / wire-jig.scad
index 3d1187ee8e6f61969247ad2f904e3a35ed5d4306..4b9bd73f76d6db71fbd3fbe7074fa5c6263b788b 100644 (file)
@@ -1,35 +1,34 @@
+/*
+  Copyright (C) 2015 Daniel Watson
+  See the end of the file for license conditions.
+*/
 // 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 <wire-jig-dimensions.scad>
-use <nut.scad>
+// project available here:
+// https://challenge-bot.com/
 
-$fn = 20;
+include <wire-jig-data.scad>
 
-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); } } } }
+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]); } }
 
 /*
-wire_channel_groove_2d(wire_channel_width,
-                       wire_channel_height,
-                       wire_radius);
-                       */
+  This file is part of challenge-bot.
 
-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); } } }
+  Challenge-bot is free software: you can redistribute it and/or modify
+  it under the terms of the GNU Affero General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
 
-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]); } }
+  GNU Affero Emacs is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU Affero General Public License for more details.
+
+  You should have received a copy of the GNU Affero General Public License
+  along with challenge-bot.  If not, see <http://www.gnu.org/licenses/>.
+*/