lay out spinner basic shape
authordaniel watson <ozzloy@gmail.com>
Sat, 24 Dec 2016 21:22:43 +0000 (11:22 -1000)
committerdaniel watson <ozzloy@gmail.com>
Sat, 24 Dec 2016 21:22:43 +0000 (11:22 -1000)
spin-data.scad [new file with mode: 0644]
spin.scad [new file with mode: 0644]

diff --git a/spin-data.scad b/spin-data.scad
new file mode 100644 (file)
index 0000000..ae9c89e
--- /dev/null
@@ -0,0 +1,40 @@
+/* GNU AGPLv3 (or later at your option)
+   see bottom for more license info */
+
+/* spin thing that erin likes */
+$fn = 50;
+
+weight = "penny";
+// weight = "608zz";
+wall_thickness = 2;
+_608zz_radius = 22;
+penny_radius = 19.05 / 2;
+penny_thickness = 1.52;
+weight_radius = (weight == "penny") ? penny_radius : _608zz_radius;
+arms = 3;
+
+module spin(weight_radius, arms, wall_thickness) {
+  _608zz_holder_radius = _608zz_radius + wall_thickness;
+  circle(_608zz_holder_radius);
+  weight_holder_radius = weight_radius + wall_thickness;
+  for(arm = [0 : arms - 1]) {
+    rotate(arm * 360.0 / arms) {
+      translate([weight_holder_radius + _608zz_holder_radius, 0]) {
+        circle(weight_holder_radius); } } } }
+
+/*
+  This file is part of 3d-printables.
+
+  3d-printables 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.
+
+  3d-printables 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/>.
+*/
diff --git a/spin.scad b/spin.scad
new file mode 100644 (file)
index 0000000..e75fe14
--- /dev/null
+++ b/spin.scad
@@ -0,0 +1,24 @@
+/* GNU AGPLv3 (or later at your option)
+   see bottom for more license info */
+
+/* spin thing that erin likes */
+include<spin-data.scad>
+
+spin(weight_radius, arms, wall_thickness);
+
+/*
+  This file is part of 3d-printables.
+
+  3d-printables 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.
+
+  3d-printables 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/>.
+*/