make nub depth modifiable at top level
authordaniel watson <ozzloy@gmail.com>
Wed, 11 Apr 2018 00:43:35 +0000 (17:43 -0700)
committerdaniel watson <ozzloy@gmail.com>
Wed, 11 Apr 2018 00:43:35 +0000 (17:43 -0700)
3030-dampener-feet.scad

index 28918ba1a227202d3fde44b4001b1151ea9510ed..0a578f0ce127badf2925def36f619c122d73e669 100644 (file)
@@ -11,6 +11,10 @@ $fn = 100; // use this for generating STL
 foot_height = 18;
 foot_length = 20;
 wall_width = 2;
+nub_depth = 4;
+
+fudge = 0.1;
+//fudge = 0.0;
 
 // 3030 dimensions
 x = 30; // adding a little because printers aren't perfect
@@ -51,15 +55,14 @@ module half_foot_2d() {
              -(sin(45) * foot_height + wall_width)]) {
     square([x / 2 - cos(45) * foot_height, wall_width]); }
   // bottom nub, goes into bottom 3030 opening
-  translate([(x - opening_width) / 2 + 0.2, 0]) {
-    square([opening_width / 2 - 0.2, wall_width * 2]); }
+  translate([(x - opening_width) / 2, 0]) {
+    square([opening_width / 2, nub_depth]); }
   // side nub, goes into side 3030 openings
   a = opening_width;
   b = foot_height + wall_width - (y - opening_width) / 2;
   side_nub_length = (a < b) ? a : b;
-  fudge = 0.3;
   translate([0, (y - opening_width) / 2 + fudge]) {
-    square([wall_width, side_nub_length - fudge]); } }
+    square([nub_depth, side_nub_length - fudge]); } }
 
 module foot_2d() {
   round_corners(wall_width / 2.1) {