소스 검색

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 년 전
부모
커밋
fa83090c8e
1개의 변경된 파일과 27개의 추가작업 그리고 1개의 파일을 삭제
  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() {