Przeglądaj źródła

render a tetrahedral capsule array with all capsules having three standard horizontal legs, they all interlock much better than before and the geometry of the array is almost perfect without having to visually look at it while glueing the capsules together

Fernando Pablo Lopez-Lezcano 9 lat temu
rodzic
commit
fa83090c8e
1 zmienionych plików z 27 dodań i 1 usunięć
  1. 27 1
      TinySpHEAR_common.scad

+ 27 - 1
TinySpHEAR_common.scad

@@ -240,7 +240,7 @@ module mount (angles, wall, stand_wall, separation) {
 
 // render a tetrahedral capsule array
 //
-module render_tetra_capsule_array(z_offset) {
+module render_tetra_capsule_array_old(z_offset) {
     translate([0, 0, z_offset]) {
         // all four capsules
         rotate([0, (90 - elev_angle), 45]) {
@@ -266,6 +266,32 @@ module render_tetra_capsule_array(z_offset) {
     }
 }
 
+module render_tetra_capsule_array(z_offset) {
+    translate([0, 0, z_offset]) {
+        // all four capsules
+        rotate([0, (90 - elev_angle), 45]) {
+            translate([0, 0, mic_radius - capsule_height]) {
+                capsule(leg_angles_top, 60, 0, 0.0, 0.0, 0);
+            }
+        }
+        rotate([0, (90 - elev_angle), -135]) {
+            translate([0, 0, mic_radius - capsule_height]) {
+                capsule(leg_angles_top, 60, 0, 0.0, 0.0, 0);
+            }
+        }
+        rotate([0, (90 + elev_angle), -45]) {
+            translate([0, 0, mic_radius - capsule_height]) {
+                capsule(leg_angles_top, 0, 0, 0.0, 0.0, 0);
+            }
+        }
+        rotate([0, (90 + elev_angle), 135]) {
+            translate([0, 0, mic_radius - capsule_height]) {
+                capsule(leg_angles_top, 0, 0, 0.0, 0.0, 0);
+            }
+        }
+    }
+}
+
 // render individual capsules
 //
 module render_tetra_capsule_top() {