z-axis: generate aluminum extrusion parts
authorClinton Ebadi <clinton@unknownlamer.org>
Wed, 9 Mar 2016 03:02:55 +0000 (22:02 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Wed, 9 Mar 2016 03:02:55 +0000 (22:02 -0500)
Thicknesses are different than the standard parts so that the parts
attach to a horizontal and vertical extrusion.

box_frame/z-axis.scad

index fb2e327..cb94d6a 100644 (file)
@@ -185,7 +185,17 @@ module zrodholder(thickness=(frame_type == frame_single ? 14 : 15), bottom_thick
         }
     }
 }
-translate([10, -50, 0]) zmotorholder();
-translate([0, 50, 0]) mirror([0, 1, 0]) zmotorholder();
-translate([67, 14, 0]) rotate([0,0,90]) zrodholder();
-translate([77, -14, 0]) rotate([0, 0, -90]) mirror([0, 1, 0]) zrodholder();
+
+if (frame_type == frame_alu) {
+     // 2020 aluminum frame parts are larger
+     translate([10, -50, 0]) zmotorholder(thickness=55);
+     translate([0, 50, 0]) mirror([0, 1, 0]) zmotorholder(thickness=55);
+     translate([120, 30, 0]) rotate([0,0,90]) zrodholder(thickness=board_thickness * 2 + 5, ylen = 50);
+     translate([120, -30, 0]) rotate([0, 0, -90]) mirror([0, 1, 0]) zrodholder(thickness=board_thickness * 2 + 5, ylen = 50);
+}
+else {
+     translate([10, -50, 0]) zmotorholder();
+     translate([0, 50, 0]) mirror([0, 1, 0]) zmotorholder();
+     translate([67, 14, 0]) rotate([0,0,90]) zrodholder();
+     translate([77, -14, 0]) rotate([0, 0, -90]) mirror([0, 1, 0]) zrodholder();
+}