/* riser foot for raising bathroom shelves */
+$fn = 100;
+
fudge = 1;
-riser_height = 200;
-foot_radius = 42 / 2 + fudge;
+// how much higher the shelf needs to be
+extra_height = 150;
+// radius of foot of shelf actually measured with calipers
+foot_radius_measured = 42 / 2;
+foot_radius = foot_radius_measured + fudge;
wall_thickness = 3;
-module ring_2d(inner_radius, wall_thickness) {
- outer_radius = inner_radius + wall_thickness;
+module ring_2d(inner_radius, outer_radius) {
difference() {
circle(outer_radius);
circle(inner_radius); } }
-module foot_riser() {
- linear_extrude(height = 200) {
- ring_2d(foot_radius, wall_thickness); } }
+module foot_riser(foot_radius, extra_height) {
+ foot_surround_height = 50;
+ outer_radius = foot_radius + wall_thickness;
+ // raise the foot
+ linear_extrude(height = extra_height) {
+ circle(foot_radius); }
+ // surround the foot so it stays on riser
+ linear_extrude(height = extra_height + foot_surround_height) {
+ ring_2d(foot_radius, outer_radius); } }
/*
This file is part of 3d-printables.