From: daniel watson Date: Sat, 24 Dec 2016 21:22:43 +0000 (-1000) Subject: lay out spinner basic shape X-Git-Url: http://challenge-bot.com/repos/?p=ozzloy%40gmail.com%2F3d-printables;a=commitdiff_plain;h=818dd66165804a6b235ad134ff63096240af9594 lay out spinner basic shape --- diff --git a/spin-data.scad b/spin-data.scad new file mode 100644 index 0000000..ae9c89e --- /dev/null +++ b/spin-data.scad @@ -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 . +*/ diff --git a/spin.scad b/spin.scad new file mode 100644 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(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 . +*/