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 | |
8 | x = 30; |
9 | y = 30; |
10 | diagonal = sqrt(pow(30/2, 2) + pow(30/2, 2)); |
11 | opening_width = 8; |
c34a06d4 |
12 | inner_block = 12; |
c34a06d4 |
13 | |
968d427c |
14 | outer_block = (30 - 16.5) / 2; |
c34a06d4 |
15 | wall = 2; |
16 | |
17 | $fn = 40; |
18 | |
d5a6f871 |
19 | module arm_half(){ |
968d427c |
20 | // inner block |
d5a6f871 |
21 | square(inner_block / 2); |
968d427c |
22 | |
23 | // diagonal arms connecting inner block to outer blocks |
d5a6f871 |
24 | rotate(45) { |
2b527530 |
25 | square([diagonal - wall, wall / 2]); } |
968d427c |
26 | |
27 | // outer block, without the wall part since wall has rounded corner |
28 | translate([x / 2 - outer_block, y / 2 - outer_block]) { |
29 | square(outer_block - wall); } |
30 | |
31 | // outer arms covering the opening |
32 | translate([(opening_width + wall) / 2, y / 2 - wall]) { |
33 | square([(x - opening_width - wall) / 2 - wall, wall]); } |
34 | // rounded part at entrace to inside |
35 | translate([(opening_width + wall) / 2, (y - wall) / 2]){ |
36 | circle(d = wall); } |
37 | // rounded part around outside of extrusion |
2b527530 |
38 | translate([x / 2 - wall, y / 2 - wall]) { |
39 | circle(wall); } } |
d5a6f871 |
40 | |
41 | arms = 4; |
42 | for(arm = [0:arms - 1]) { |
43 | rotate(arm * 360 / arms) { |
44 | arm_half(); |
45 | mirror(){ arm_half(); } } } |
c34a06d4 |
46 | |
47 | /* |
48 | This file is part of 3d-printables. |
49 | |
50 | 3d-printables is free software: you can redistribute it and/or modify |
51 | it under the terms of the GNU Affero General Public License as published by |
52 | the Free Software Foundation, either version 3 of the License, or |
53 | (at your option) any later version. |
54 | |
55 | 3d-printables is distributed in the hope that it will be useful, |
56 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
57 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
58 | GNU Affero General Public License for more details. |
59 | |
60 | You should have received a copy of the GNU Affero General Public License |
61 | along with challenge-bot. If not, see <http://www.gnu.org/licenses/>. |
62 | */ |