use wall as diameter and radius on 3030 rounded edges
[ozzloy@gmail.com/3d-printables] / mk2-haribo-spool-holder.scad
CommitLineData
c34a06d4 1/* GNU AGPLv3 (or later at your option)
2 see bottom for more license info */
3
4/* measurements from misumi's 3030 aluminum extrusion data sheet
5 https://us.misumi-ec.com/pdf/fa/2012/p2_0545.pdf
6*/
7
8x = 30;
9y = 30;
10diagonal = sqrt(pow(30/2, 2) + pow(30/2, 2));
11opening_width = 8;
c34a06d4 12inner_block = 12;
c34a06d4 13
c34a06d4 14corner_block_inner = (30 - 16.5) / 2;
15wall = 2;
16
17$fn = 40;
18
d5a6f871 19module arm_half(){
20 square(inner_block / 2);
21 rotate(45) {
2b527530 22 square([diagonal - wall, wall / 2]); }
d5a6f871 23 translate([x / 2 - corner_block_inner, y / 2 - corner_block_inner]) {
24 square(corner_block_inner - wall); }
2b527530 25 translate([opening_width / 2 + wall, y / 2 - wall]) {
26 square([(x - opening_width) / 2 - 2 * wall, wall]);
27 translate([0, wall / 2]){
28 circle(d = wall); } }
29 translate([x / 2 - wall, y / 2 - wall]) {
30 circle(wall); } }
d5a6f871 31
32arms = 4;
33for(arm = [0:arms - 1]) {
34 rotate(arm * 360 / arms) {
35 arm_half();
36 mirror(){ arm_half(); } } }
c34a06d4 37
38/*
39 This file is part of 3d-printables.
40
41 3d-printables is free software: you can redistribute it and/or modify
42 it under the terms of the GNU Affero General Public License as published by
43 the Free Software Foundation, either version 3 of the License, or
44 (at your option) any later version.
45
46 3d-printables is distributed in the hope that it will be useful,
47 but WITHOUT ANY WARRANTY; without even the implied warranty of
48 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49 GNU Affero General Public License for more details.
50
51 You should have received a copy of the GNU Affero General Public License
52 along with challenge-bot. If not, see <http://www.gnu.org/licenses/>.
53*/