From 4ee0e3d8ce724801f0d4b5b0dd518bc3b846b133 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Sun, 30 Nov 2014 23:13:17 -0800 Subject: [PATCH] add nut shape for wire jig --- 3d-printables/nut.scad | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 3d-printables/nut.scad diff --git a/3d-printables/nut.scad b/3d-printables/nut.scad new file mode 100644 index 0000000..16d0b8e --- /dev/null +++ b/3d-printables/nut.scad @@ -0,0 +1,31 @@ +/* +Copyright (C) 2014 Daniel Watson +See the end of the file for license conditions. +*/ + +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); } } } + +module nut(size, height) { + linear_extrude(height = height) { + nut_2d(size); } } + +/* +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. + +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 . +*/ -- 2.30.2