Jelajahi Sumber

fix a couple of details in the H2N preliminary code

Fernando Pablo Lopez-Lezcano 9 tahun lalu
induk
melakukan
2f4baabb29
1 mengubah file dengan 23 tambahan dan 10 penghapusan
  1. 23 10
      TinySpHEAR_H2N_common.scad

+ 23 - 10
TinySpHEAR_H2N_common.scad

@@ -38,6 +38,13 @@ capsule_radius = 14.6 / 2;
 capsule_height = 4.75;
 mic_radius = 11;
 
+// adjust the depth of slots in mount
+mic_to_mount_fit = -0.4;
+
+// make triangular legs have the height of the capsule
+connect = 1;
+leg_thick = capsule_height;
+
 // dimensions of H2R recorder
 
 // width and depth at middle of ring
@@ -77,7 +84,7 @@ h2n_mount_fit = 0.04;
 
 // bridge dimensions
 h2n_bridge_base_height = 6.0;
-h2n_bridge_stalk_height = 20.0;
+h2n_bridge_stalk_height = 30.0;
 
 
 module tube(or, ir, h) {
@@ -156,7 +163,7 @@ module conical_rounded_box(height, width, depth, radius, wall, inset) {
     }
 }
 
-module tilted_cube(height, width, depth, offset) {
+module tilted_cube(width, depth, height, offset) {
     hull() {
         cube([width, depth, thin_mint]);
         translate([offset, 0, height]) {
@@ -169,7 +176,7 @@ module tilted_half_rounded_box(height, width, depth, radius, wall, offset, e = 0
     difference() {
         tilted_rounded_box(height, width, depth, radius, wall, offset);
         translate([0, -(depth + e), 0]) {
-            tilted_cube(height, width + e, (depth + e) * 2, offset);
+            tilted_cube(width + e, (depth + e) * 2, height, offset);
         }
     }
 }
@@ -251,7 +258,7 @@ module h2n_columns(width, height, ring_height, tilt, transition, radius, col_wal
 module semi_cylinder(r, h, e = thin_mint) {
     difference() {
         cylinder(h, r, r, $fn = facets);
-        translate ([-(r+e)*2, -r, 0])
+        translate ([-r*2, -r, 0])
             cube([2*(r+e), 2*(r+e), h]);
     }
 }
@@ -347,18 +354,18 @@ module h2n_bridge(width, base_height, stalk_height, radius, col_wall, wall) {
 difference() {
 union() {
 
-h2n_ring(h2n_width_m, h2n_depth_m, h2n_depth * 0.425, h2n_band_height, h2n_col_tilt, 
+*h2n_ring(h2n_width_m, h2n_depth_m, h2n_depth * 0.425, h2n_band_height, h2n_col_tilt, 
          h2n_side_band_w, h2n_side_band, h2n_band_wall, wall, mount_radius, h2n_col_wall);
 
-h2n_columns(h2n_width_m, h2n_column_height, h2n_band_height, h2n_col_tilt, 
+*h2n_columns(h2n_width_m, h2n_column_height, h2n_band_height, h2n_col_tilt, 
             transition_height, h2n_mount_radius, h2n_col_wall, wall);
 
-translate([0, 0, h2n_column_height]) {
-    h2n_bridge((h2n_width_m / 2 + mount_radius - h2n_col_wall - h2n_column_height * tan(h2n_col_tilt)) * 2, 
+//translate([0, 0, h2n_column_height]) {
+    *h2n_bridge((h2n_width_m / 2 + mount_radius - h2n_col_wall - h2n_column_height * tan(h2n_col_tilt)) * 2, 
                h2n_bridge_base_height, h2n_bridge_stalk_height, mount_radius, h2n_col_wall, wall);
-}
+//}
 
-rotate([0, 0, 0]) {
+*rotate([0, 0, 0]) {
     render_tetra_capsule_array(h2n_column_height + h2n_bridge_base_height + h2n_bridge_stalk_height + 27);
 }
 
@@ -369,6 +376,12 @@ rotate([0, 0, 0]) {
 }
 
 
+// individual capsule holders
+
+*render_tetra_capsule_top(0);
+
+*render_tetra_capsule_bot(0);
+
 // make sure dimensions are fine
 *translate([-(h2n_width_m - 0.1) / 2, - 0.5, 0]) {
     cube([h2n_width_m - 0.1, 1, 1]);