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

move model parameters to beginning of source code

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

+ 14 - 14
first_order.scad

@@ -10,6 +10,17 @@
 // CC-NC-SA 3.0
 // http://creativecommons.org/licenses/by-nc-sa/3.0/
 
+//// model parameters
+
+// dimensions for the EM182 electret microphone
+mic_radius = 5;
+mic_height = 4.5;
+
+// distance between face of capsule and center of array
+amb_radius = 11.5;
+
+// separation between capsules (right now only used in stalk)
+cap_sep = 7;
 
 // what to render:
 // 0 -> a single capsule holder
@@ -23,13 +34,13 @@ rendermic = 1;
 // 2 -> interlocking beams (in)
 connect = 2;
 
-// number of facets for cylinders
-facets = 64;
-
 // adjustment for the size of the capsule
 //   (measured inside diameter was around 7.5 to 8.2 instead of 10, capsule diameter was 9.99)
 fudge = 0.1;
 
+// number of facets for cylinders
+facets = 64;
+
 ////////
 // microphone capsule holder
 
@@ -160,17 +171,6 @@ el2 = -asin(1/dist);
 el3 = asin(1/dist);
 el4 = -asin(1/dist);
 
-// dimensions for the EM182 electret microphone
-
-mic_radius = 5;
-mic_height = 4.5;
-
-// separation between capsules
-cap_sep = 7;
-
-// distance between face of capsule and center of array
-amb_radius = 11.5;
-
 // connect the four instances together
 if (rendermic == 1) {
 	capsule(az1, el1, amb_radius, mic_radius, mic_height, 1, 60, 3);