X-Git-Url: http://challenge-bot.com/repos/?p=challenge-bot;a=blobdiff_plain;f=3d-printables%2Fnut.scad;h=d6b5a945ebb0a265a2ff5bc088556dfb56cc820a;hp=16d0b8ed72a5cfca9a13b7cf94c15d2ff9c15454;hb=ce941be740b45737d19eaa5c726b2f99efabe0b9;hpb=4ee0e3d8ce724801f0d4b5b0dd518bc3b846b133 diff --git a/3d-printables/nut.scad b/3d-printables/nut.scad index 16d0b8e..d6b5a94 100644 --- a/3d-printables/nut.scad +++ b/3d-printables/nut.scad @@ -1,31 +1,34 @@ /* -Copyright (C) 2014 Daniel Watson -See the end of the file for license conditions. + 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 here: +// https://challenge-bot.com/ -module nut_2d(size) { - side_length = size * sin(30) / sin(120); - for(ii = [-1:1]) { - rotate(a = 120 * ii, v = [0, 0, 1]) { - square([side_length, size], center = true); } } } +include -module nut(size, height) { - linear_extrude(height = height) { - nut_2d(size); } } +size = 4; + +nut_2d(size); + +translate([size + 1, 0, 0]){ + square(size, center = true);} /* -This file is part of challenge-bot. + This file is part of challenge-bot. -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. + 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. -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. + 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 Printables. If not, see . + You should have received a copy of the GNU Affero General Public License + along with challenge-bot. If not, see . */