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