c9cf8f80 |
1 | /* GNU AGPLv3 (or later at your option) |
2 | see bottom for more license info */ |
3 | |
4 | /* riser foot for raising bathroom shelves */ |
5 | |
7c09b68e |
6 | $fn = 100; |
7 | |
c9cf8f80 |
8 | fudge = 1; |
1b6eae45 |
9 | // how much higher the shelf needs to be |
10 | extra_height = 150; |
11 | // radius of foot of shelf actually measured with calipers |
12 | foot_radius_measured = 42 / 2; |
13 | foot_radius = foot_radius_measured + fudge; |
c9cf8f80 |
14 | wall_thickness = 3; |
15 | |
1b6eae45 |
16 | module ring_2d(inner_radius, outer_radius) { |
c9cf8f80 |
17 | difference() { |
18 | circle(outer_radius); |
19 | circle(inner_radius); } } |
20 | |
1b6eae45 |
21 | module foot_riser(foot_radius, extra_height) { |
d6bd659e |
22 | foot_surround_height = 50; |
2e41f3e2 |
23 | outer_radius = foot_radius + wall_thickness; |
d6bd659e |
24 | // raise the foot |
25 | linear_extrude(height = extra_height) { |
26 | circle(foot_radius); } |
27 | // surround the foot so it stays on riser |
28 | linear_extrude(height = extra_height + foot_surround_height) { |
2e41f3e2 |
29 | ring_2d(foot_radius, outer_radius); } } |
c9cf8f80 |
30 | |
31 | /* |
32 | This file is part of 3d-printables. |
33 | |
34 | 3d-printables is free software: you can redistribute it and/or modify |
35 | it under the terms of the GNU Affero General Public License as published by |
36 | the Free Software Foundation, either version 3 of the License, or |
37 | (at your option) any later version. |
38 | |
39 | 3d-printables is distributed in the hope that it will be useful, |
40 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
41 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
42 | GNU Affero General Public License for more details. |
43 | |
44 | You should have received a copy of the GNU Affero General Public License |
45 | along with challenge-bot. If not, see <http://www.gnu.org/licenses/>. |
46 | */ |