flatten one side so it can go against the wall
authordaniel watson <ozzloy@gmail.com>
Sun, 24 Apr 2016 19:40:48 +0000 (12:40 -0700)
committerdaniel watson <ozzloy@gmail.com>
Sun, 24 Apr 2016 19:40:48 +0000 (12:40 -0700)
foot-riser-data.scad

index 6da59b3ca32633371374df4981c0af0478d9a337..c765fecd1da4a506783a5bcebec379acb97bdfe3 100644 (file)
@@ -33,6 +33,24 @@ module foot_riser(foot_radius, extra_height) {
   linear_extrude(height = flange_height) {
     ring_2d(outer_radius, flange_radius); } }
 
+module foot_riser_against_wall(foot_radius, extra_height) {
+  foot_surround_height = 25;
+  outer_radius = foot_radius + wall_thickness;
+  flange_radius = outer_radius + foot_radius * 2;
+  flange_height = foot_radius / 2;
+  // 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); }
+  // put a flange at the bottom of the foot for stability
+  linear_extrude(height = flange_height) {
+    difference() {
+      ring_2d(outer_radius, flange_radius);
+      translate([outer_radius + flange_radius + 1, 0]) {
+        square(flange_radius * 2, center=true); } } } }
+
 /*
   This file is part of 3d-printables.