Переглянути джерело

fix overhang in connecting legs for connect == 2

Fernando Pablo Lopez-Lezcano 11 роки тому
батько
коміт
3bf6c3081b
1 змінених файлів з 12 додано та 6 видалено
  1. 12 6
      first_order.scad

+ 12 - 6
first_order.scad

@@ -35,7 +35,7 @@ capsule_radius = 5;
 capsule_height = 4.5;
 
 // distance between face of capsule and center of array
-mic_radius = 10;
+mic_radius = 12;
 
 // dimensions of capsule holder connection legs
 // 4mm is too thin for the width, 5mm works better
@@ -160,15 +160,21 @@ module capsule (azimuth, elevation, mounts, twist, ridge) {
                                     // fix this 0.2 == (2 * fudge?)
                                     leg_length = (mic_radius * tan(90 - angles[1]) - capsule_radius) * tan(angles[1]) - 0.2; 
                                     slot_depth = leg_thick * cos (90 - (2 * angles[1]));
-									translate([capsule_radius - leg_thick / 2 + fudge, - leg_width / 3, - leg_length + capsule_height]) {
+									translate([capsule_radius - leg_thick / 2 + fudge, - leg_width / 3, 
+                                            - leg_length + capsule_height]) {
 										difference() {
 											// thickness, width
-                                            cube([leg_thick + leg_thick / 2, leg_width, leg_length]);
+                                            difference() {
+                                                cube([leg_thick + leg_thick / 2, leg_width, leg_length]);
+                                                translate([0, 0, -capsule_height + fudge]) {
+                                                    cube([leg_thick / 2, leg_width, leg_length]);
+                                                }
+                                            }
 											// cut slot in connector
 											translate([0, leg_width / 3 - (fit / 2), 0]) {
 												cube([leg_thick + leg_thick / 2, leg_width / 3 + fit, slot_depth]);
 											}
-										}
+ 										}
 									}
 								}
 							}
@@ -186,8 +192,8 @@ module capsule (azimuth, elevation, mounts, twist, ridge) {
 						}
 					}
 					// make the hole for the capsule
-					translate ([0, 0, -2]) {
-						cylinder(r = capsule_radius + fudge, h = capsule_height + 2, $fn = facets);
+					translate ([0, 0, 0]) {
+						cylinder(r = capsule_radius + fudge, h = capsule_height, $fn = facets);
 					}
 					// remove any extra connecting beam material from the face of the holder
 					if (connect == 0) {