Jelajahi Sumber

move ring connectors of shock mount from TinySpHEAR and Octathingy to SpHEAR_common

Fernando Pablo Lopez-Lezcano 10 tahun lalu
induk
melakukan
066c4aa3d8
3 mengubah file dengan 13 tambahan dan 21 penghapusan
  1. 3 11
      Octathingy_mount_pcb.scad
  2. 8 0
      SpHEAR_common.scad
  3. 2 10
      TinySpHEAR_mount_pcb.scad

+ 3 - 11
Octathingy_mount_pcb.scad

@@ -356,14 +356,6 @@ module tetra_shock_mount_ring(outside_radius, inside_radius, thickness) {
     }
 }
 
-// connector that joins the two internal rings
-
-module tetra_shock_mount_connector(length, lip, width, thickness, fit) {
-    cube([length + 2 * lip , width - 2 * fit, thickness - 2 * fit]);
-    translate([lip, -(thickness / 2), 0])
-        cube([length , width + thickness, thickness * 3 / 2]);
-}
-
 // mount to standard microphone clip stand mount
 
 module tetra_shock_mount_stand(height, wall, stand_wall) {
@@ -531,10 +523,10 @@ module render_octa_shock_mount_internal_ring_bot(z_offset) {
 // shock mount: all four internal ring connectors
 //
 
-module render_tetra_shock_mount_ring_connectors(offset) {
+module render_octa_shock_mount_ring_connectors(offset) {
     for (o = [0, 1, 2, 3]) {
         translate([-18, (10 + offset) * o, 0]) {
-            tetra_shock_mount_connector(ring_sep, 4, connector_w, connector_d, 0.1);
+            shock_mount_connector(ring_sep, 4, connector_w, connector_d, 0.1);
         }
     }
 }
@@ -564,7 +556,7 @@ module render_tetra_shock_mount(z_offset) {
                 translate([box_radius + 3 * wall + internal_ring_gap, 0, -1]) {
                     rotate([0, 90, 0]) {
                         translate([-4, -5, 1]) {
-                            tetra_shock_mount_connector(ring_sep, 4, connector_w, connector_d, 0.1);
+                            shock_mount_connector(ring_sep, 4, connector_w, connector_d, 0.1);
                         }
                     }
                 }

+ 8 - 0
SpHEAR_common.scad

@@ -402,3 +402,11 @@ module shock_mount_external_ring(height, xradius, yradius, corner, gap, lip) {
     }
 }
 
+// connector that joins the two internal rings
+
+module shock_mount_connector(length, lip, width, thickness, fit) {
+    cube([length + 2 * lip , width - 2 * fit, thickness - 2 * fit]);
+    translate([lip, -(thickness / 2), 0])
+        cube([length , width + thickness, thickness * 3 / 2]);
+}
+

+ 2 - 10
TinySpHEAR_mount_pcb.scad

@@ -294,14 +294,6 @@ module tetra_shock_mount_ring(outside_radius, inside_radius, thickness) {
     }
 }
 
-// connector that joins the two internal rings
-
-module tetra_shock_mount_connector(length, lip, width, thickness, fit) {
-    cube([length + 2 * lip , width - 2 * fit, thickness - 2 * fit]);
-    translate([lip, -(thickness / 2), 0])
-        cube([length , width + thickness, thickness * 3 / 2]);
-}
-
 // mount to standard microphone clip stand mount
 
 module tetra_shock_mount_stand(height, wall, stand_wall) {
@@ -475,7 +467,7 @@ module render_tetra_shock_mount_internal_ring_bot(z_offset) {
 module render_tetra_shock_mount_ring_connectors(offset) {
     for (o = [0, 1, 2, 3]) {
         translate([-18, (10 + offset) * o, 0]) {
-            tetra_shock_mount_connector(ring_sep, 4, connector_w, connector_d, 0.1);
+            shock_mount_connector(ring_sep, 4, connector_w, connector_d, 0.1);
         }
     }
 }
@@ -505,7 +497,7 @@ module render_tetra_shock_mount(z_offset) {
                 translate([box_radius + 3 * wall + internal_ring_gap, 0, -1]) {
                     rotate([0, 90, 0]) {
                         translate([-4, -5, 1]) {
-                            tetra_shock_mount_connector(ring_sep, 4, connector_w, connector_d, 0.1);
+                            shock_mount_connector(ring_sep, 4, connector_w, connector_d, 0.1);
                         }
                     }
                 }