TinySpHEAR_H2N_common.scad 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. //
  2. // Spherical Harmonics Ear Project (*SpHEAR)
  3. //
  4. // TinySpHEAR, First Order (B-format) Ambisonics Microphone
  5. // Common files for H2N add-on array
  6. //
  7. // Copyright 2016-2017, Fernando Lopez-Lezcano, All Rights Reserved
  8. // nando@ccrma.stanford.edu
  9. //
  10. // This program is free software: you can redistribute it and/or modify
  11. // it under the terms of the GNU General Public License as published by
  12. // the Free Software Foundation, either version 3 of the License, or
  13. // (at your option) any later version.
  14. //
  15. // This program is distributed in the hope that it will be useful,
  16. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. // GNU General Public License for more details.
  19. //
  20. // You should have received a copy of the GNU General Public License
  21. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. //
  23. // 3d Models released under the Creative Commons license as follows:
  24. // Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
  25. // http://creativecommons.org/licenses/by-nc-sa/4.0/
  26. include <SpHEAR_common.scad>;
  27. include <TinySpHEAR_common.scad>;
  28. include <TinySpHEAR_mount_pcb.scad>;
  29. // outline of H2N front
  30. // include<h2n/H2N_front_outline.scad>;
  31. // outline of H2N top
  32. // include<h2n/H2N_top_up_outline.scad>;
  33. facets = 128;
  34. // dimensions of the EM200 electret microphone capsule (measured 14.59 max)
  35. capsule_radius = 14.6 / 2;
  36. capsule_height = 4.75;
  37. mic_radius = 11;
  38. // adjust the depth of slots in mount
  39. mic_to_mount_fit = -0.4;
  40. // make triangular legs have the height of the capsule
  41. connect = 1;
  42. leg_thick = capsule_height;
  43. // dimensions of H2R recorder
  44. // width and depth at middle of ring
  45. h2n_width = 62.00;
  46. h2n_depth = 42.66;
  47. h2n_width_up = 57.0;
  48. //h2n_column_height = 40;
  49. h2n_column_height = 23.2;
  50. transition_height = 30;
  51. // measured = 11.50, should be 13.1 -> ratio =
  52. // h2n_side_radius = 18.2;
  53. h2n_side_radius = 18.4;
  54. h2n_side_band = 1.5;
  55. h2n_side_band_w = 13.4;
  56. h2n_width_m = 63.0;
  57. h2n_depth_m = 36.4;
  58. h2n_band_height = 6.0;
  59. // base band width
  60. h2n_band_wall = 1.6;
  61. // walls for the columns
  62. h2n_col_wall = 2 * wall;
  63. // tilt for the columnds
  64. h2n_col_tilt = 4.0;
  65. // radius of mount stalk
  66. h2n_mount_radius = mount_radius;
  67. // fit for connector from column to bridge
  68. h2n_mount_fit = 0.04;
  69. // bridge dimensions
  70. h2n_bridge_base_height = 7.0;
  71. h2n_bridge_stalk_height = 45.0;
  72. // bridge base dimensions
  73. h2n_bridge_circle = 24.00;
  74. h2n_bridge_band_w = 13.25;
  75. h2n_bridge_band_h = 26.5 - h2n_column_height;
  76. // we need to make the dial cover slightly elliptical
  77. h2n_bridge_circle_max = 26.5;
  78. h2n_bridge_circle_ratio = h2n_bridge_circle_max / h2n_bridge_circle;
  79. module tube(or, ir, h) {
  80. difference() {
  81. cylinder(r = or, h = h, $fn = facets);
  82. cylinder(r = ir, h = h, $fn = facets);
  83. }
  84. }
  85. // main support ring
  86. module h2n_ring(width, depth, radius, height, tilt, slot_w, slot_d, band_wall, wall, col_rad, col_wall) {
  87. // main support ring
  88. difference() {
  89. conical_rounded_box(height, width / 2 + band_wall, depth / 2 + band_wall, radius - thin_mint, band_wall, height * tan(tilt));
  90. for (m = [0, 1]) mirror([m, 0, 0]) {
  91. translate([-(width / 2 + col_rad - col_wall), 0, 0]) {
  92. tilted_cylinder(col_rad, height, height * tan(tilt));
  93. }
  94. }
  95. }
  96. // inner band
  97. difference() {
  98. conical_rounded_box(height, width / 2 + wall - h2n_side_band, depth / 2 + band_wall, radius - thin_mint, wall, height * tan(tilt));
  99. for (m = [0, 1]) mirror([m, 0, 0]) {
  100. // cut slots on the sides
  101. translate([-width / 2, -h2n_side_band_w / 2, 0]) {
  102. cube([width / 2, h2n_side_band_w, height + thin_mint]);
  103. }
  104. }
  105. }
  106. }
  107. // side columns
  108. module tilted_cylinder(radius, height, offset) {
  109. hull() {
  110. cylinder(r = radius, h = thin_mint, $fn = facets);
  111. translate([offset, 0, height]) {
  112. cylinder(r = radius, h = thin_mint, $fn = facets);
  113. }
  114. }
  115. }
  116. module tilted_rounded_box(height, width, depth, radius, wall, offset) {
  117. difference() {
  118. hull() {
  119. rounded_block(thin_mint, width, depth, radius);
  120. translate([offset, 0, height]) {
  121. rounded_block(thin_mint, width, depth, radius);
  122. }
  123. }
  124. hull() {
  125. rounded_block_relative(thin_mint, width, depth, radius, -wall);
  126. translate([offset, 0, height]) {
  127. rounded_block_relative(thin_mint, width, depth, radius, -wall);
  128. }
  129. }
  130. }
  131. }
  132. module conical_rounded_box(height, width, depth, radius, wall, inset) {
  133. difference() {
  134. hull() {
  135. rounded_block(thin_mint, width, depth, radius);
  136. translate([0, 0, height]) {
  137. rounded_block_relative(thin_mint, width, depth, radius, -inset);
  138. }
  139. }
  140. hull() {
  141. rounded_block_relative(thin_mint, width, depth, radius, -wall);
  142. translate([0, 0, height]) {
  143. rounded_block_relative(thin_mint, width, depth, radius, -(wall + inset));
  144. }
  145. }
  146. }
  147. }
  148. module tilted_cube(width, depth, height, offset) {
  149. hull() {
  150. cube([width, depth, thin_mint]);
  151. translate([offset, 0, height]) {
  152. cube([width, depth, thin_mint]);
  153. }
  154. }
  155. }
  156. module tilted_half_rounded_box(height, width, depth, radius, wall, offset, e = 0.1) {
  157. difference() {
  158. tilted_rounded_box(height, width, depth, radius, wall, offset);
  159. translate([0, -(depth + e), 0]) {
  160. tilted_cube(width + e, (depth + e) * 2, height, offset);
  161. }
  162. }
  163. }
  164. module half_rounded_box(height, width, depth, radius, wall, e = 0.1) {
  165. difference() {
  166. rounded_box(height, width , depth, radius, wall);
  167. translate([0, -(depth + e), 0]) {
  168. cube([width + e, 2 * (depth + e), height]);
  169. }
  170. }
  171. }
  172. module h2n_column_core(height, ring_height, tilt, transition, radius, col_wall, wall, offset) {
  173. hull() {
  174. // angled column
  175. difference() {
  176. tilted_cylinder(radius + col_wall + offset, height, height * tan(tilt));
  177. translate([0, -(radius + col_wall + offset), 0]) {
  178. tilted_cube((radius + col_wall) * 2, (radius + col_wall) * 2, height, height * tan(tilt));
  179. }
  180. }
  181. // side sleeves
  182. // we should derive the geometry for the aligment magic below...
  183. side_fit = 0.5;
  184. translate([(radius + col_wall) / 2 + 2 * wall - side_fit, 0, 0]) {
  185. difference() {
  186. tilted_half_rounded_box(height, 3.8 + offset, h2n_side_band_w / 2 + wall + offset * 1.1,
  187. 2.0, wall, height * tan(tilt));
  188. translate([col_wall / 2 + wall - radius * 3 / 2 - side_fit, 0, 0]) {
  189. tilted_cylinder(radius, height, height * tan(tilt));
  190. }
  191. }
  192. }
  193. }
  194. }
  195. module h2n_column(height, ring_height, tilt, transition, radius, col_wall, wall) {
  196. // side tubes for cables
  197. difference() {
  198. h2n_column_core(height, ring_height, tilt, transition, radius, col_wall, wall, 0);
  199. // hollow out the cylinder
  200. tilted_cylinder(radius, height, height * tan(tilt));
  201. // this fine adjustment determines how much the side walls "hug" the H2N
  202. width_fit = 0.2;
  203. translate([radius + 2 * wall - width_fit, 0, 0]) {
  204. tilted_half_rounded_box(height, 3.8, h2n_side_band_w / 2, 1.5, 4 * wall, height * tan(tilt));
  205. }
  206. // trim side of tubes with a vertical plane
  207. translate([-(radius * 2 + col_wall) + col_wall / 2, -(radius + col_wall), 0]) {
  208. cube([col_wall * 2, (radius + col_wall) * 2, 30]);
  209. }
  210. }
  211. // add a thicker wall at the bottom of the side trim
  212. difference() {
  213. translate([-(radius), -(radius + col_wall), 0]) {
  214. cube([wall, (radius + col_wall) * 2, height]);
  215. }
  216. difference() {
  217. tilted_cylinder(radius * 4, height, height * tan(tilt));
  218. tilted_cylinder(radius + col_wall, height, height * tan(tilt));
  219. }
  220. }
  221. // connector to bridge
  222. translate([height * tan(tilt), 0, height]) {
  223. connector_height = 5.0;
  224. difference() {
  225. union() {
  226. cylinder(r = radius + wall - h2n_mount_fit, h = connector_height, $fn = facets);
  227. h2n_column_core(h2n_bridge_band_h, ring_height, 0, transition, radius, col_wall, wall, -(wall + h2n_mount_fit));
  228. }
  229. cylinder(r = radius, h = connector_height, $fn = facets);
  230. translate([1.5, -(radius + wall) * 2, 0]) {
  231. cube([radius + wall, (radius + wall) * 4, connector_height]);
  232. }
  233. }
  234. }
  235. }
  236. module h2n_columns(width, height, ring_height, tilt, transition, radius, col_wall, wall) {
  237. for (m = [0, 1]) mirror([m, 0, 0]) {
  238. translate([-(width / 2 + col_wall - wall / 2), 0, 0]) {
  239. h2n_column(height, ring_height, tilt, transition, radius, col_wall, wall);
  240. }
  241. }
  242. }
  243. // old version of columns
  244. module h2n_columns_old(width, height, ring_height, tilt, transition, radius, col_wall, wall) {
  245. // side tubes for cables
  246. slot_height = 25.0;
  247. for (m = [0, 1]) mirror([m, 0, 0]) {
  248. translate([-(width / 2 + radius - col_wall), 0, 0]) {
  249. difference() {
  250. // angled column
  251. tilted_cylinder(radius + col_wall, height, height * tan(tilt));
  252. tilted_cylinder(radius, height, height * tan(tilt));
  253. // slots in the columns for cables
  254. translate([radius - col_wall - ring_height * tan(tilt), - radius * 2, -ring_height]) {
  255. rotate([0, tilt, 0]) {
  256. cube([5.0, radius * 4, slot_height]);
  257. translate([radius + col_wall, radius - col_wall, slot_height]) {
  258. rotate([0, 90, 90]) {
  259. cylinder(r = radius + col_wall, h = 15.0, $fn = facets);
  260. }
  261. }
  262. }
  263. }
  264. // trim side of tubes with a vertical plane
  265. translate([-(radius * 2 + col_wall) + col_wall / 2, -(radius + col_wall), 0]) {
  266. cube([col_wall * 2, (radius + col_wall) * 2, 30]);
  267. }
  268. }
  269. // add a thicker wall at the bottom of the side trim
  270. difference() {
  271. translate([-(radius), -(radius + col_wall), 0]) {
  272. cube([wall, (radius + col_wall) * 2, height]);
  273. }
  274. difference() {
  275. tilted_cylinder(radius * 4, height, height * tan(tilt));
  276. tilted_cylinder(radius + col_wall, height, height * tan(tilt));
  277. }
  278. }
  279. }
  280. // connector to bridge
  281. translate([-(width / 2 + radius - col_wall - height * tan(tilt)), 0, height]) {
  282. connector_height = 5.0;
  283. difference() {
  284. tube(radius + wall - h2n_mount_fit, radius, connector_height);
  285. translate([0, -(radius + wall), connector_height / 2]) {
  286. cube([radius + wall, (radius + wall) * 2, connector_height / 2]);
  287. }
  288. }
  289. }
  290. // side sleeves
  291. sleeve_height = slot_height;
  292. // XXX sleeve_height = slot_height - mount_radius - col_wall;
  293. for (m = [0, 1]) mirror([m, 0, 0]) {
  294. // we should derive the geometry for the aligment magic below...
  295. side_fit = 1.05;
  296. translate([-(width / 2 - (radius + col_wall) / 2 + wall - side_fit), 0, 0]) {
  297. difference() {
  298. tilted_half_rounded_box(sleeve_height, 3.8, h2n_side_band_w / 2 + wall, 2.0, wall, sleeve_height * tan(tilt));
  299. translate([col_wall / 2 + wall - radius * 3 / 2 - side_fit, 0, 0]) {
  300. tilted_cylinder(radius, height, height * tan(tilt));
  301. }
  302. }
  303. }
  304. }
  305. }
  306. }
  307. // bridge that connects to capsule array
  308. module semi_cylinder(r, h, e = thin_mint) {
  309. difference() {
  310. cylinder(h, r, r, $fn = facets);
  311. translate ([-r*2, -r, 0])
  312. cube([2*(r+e), 2*(r+e), h]);
  313. }
  314. }
  315. module quarter_sphere(r, e = thin_mint) {
  316. difference() {
  317. sphere(r, $fn = facets);
  318. translate([-(r+e), -(r+e), -(r+e)])
  319. cube([2*(r+e), 2*(r+e), r+e]);
  320. translate([-(r+e), -(r+e), -e])
  321. cube([r, 2*(r+e), (r+e)]);
  322. }
  323. }
  324. module cylcube(width, depth, height, wall) {
  325. difference() {
  326. semi_cylinder(r = depth, h = height);
  327. semi_cylinder(r = depth - wall, h = height);
  328. }
  329. translate([-(width + depth / 2), -depth, 0]) {
  330. difference() {
  331. cube([(width + depth / 2), depth * 2, height]);
  332. translate([0, wall, 0]) {
  333. cube([(width + depth), (depth - wall) * 2, height]);
  334. }
  335. }
  336. }
  337. }
  338. // old version of the bridge
  339. module h2n_bridge_old(width, base_height, stalk_height, radius, col_wall, wall) {
  340. // capsule array mount with the right orientation (left front top = #1)
  341. rotate([0, 0, -90]) translate([0, 0, base_height + stalk_height]) {
  342. tetra_capsule_array_mount([-45, 135]);
  343. }
  344. // stalk
  345. translate([0, 0, base_height]) {
  346. difference() {
  347. tube(radius + wall, radius, stalk_height);
  348. // remove stalk segment that is inside the bridge
  349. translate([width / 2, 0, -1.0]) {
  350. rotate([0, -90, 0]) {
  351. semi_cylinder(r = radius + col_wall, h = width);
  352. }
  353. }
  354. }
  355. // add marker for "back of microphone" orientation
  356. rotate([0, 0, 0]) {
  357. translate([0, radius + wall - wall * 2 / 3, stalk_height - radius]) {
  358. difference() {
  359. sphere(r = radius / 3, $fn = 32);
  360. translate([0, -radius + radius / 2, 0]) {
  361. cube([radius, radius, radius], center = true);
  362. }
  363. }
  364. }
  365. }
  366. }
  367. // top of bridge
  368. translate([width / 2, 0, base_height]) {
  369. rotate([0, -90, 0]) {
  370. difference() {
  371. // curvy ceiling
  372. semi_cylinder(r = radius + col_wall, h = width);
  373. semi_cylinder(r = radius + col_wall - wall, h = width);
  374. // make a hole for the cables
  375. translate([0, 0, width / 2]) {
  376. rotate([0, 90, 0]) {
  377. cylinder(r = radius, h = 10, $fn = facets);
  378. }
  379. }
  380. }
  381. }
  382. }
  383. // caps at ends
  384. for (m = [0, 1]) mirror([m, 0, 0]) {
  385. translate([width / 2, 0, base_height]) {
  386. difference() {
  387. quarter_sphere(r = radius + col_wall);
  388. quarter_sphere(r = radius + col_wall - wall);
  389. }
  390. }
  391. }
  392. // base of bridge
  393. translate([0, 0, 0]) {
  394. for (m = [0, 1]) mirror([m, 0, 0]) {
  395. translate([width / 2, 0, 0]) {
  396. cylcube(width / 2, radius + col_wall, base_height, wall);
  397. }
  398. }
  399. }
  400. // reinforcement beams at the base
  401. translate([-col_wall / 2, -(radius + wall), 0]) {
  402. cube([col_wall, (radius + wall) * 2, col_wall]);
  403. }
  404. for (m = [0, 1]) mirror([m, 0, 0]) {
  405. translate([-width / 2 + radius + wall, -(radius + wall), 0]) {
  406. cube([col_wall, (radius + wall) * 2, col_wall]);
  407. }
  408. }
  409. }
  410. // base plate for upper band cover
  411. module h2n_center_cover(width, base_height, stalk_height, radius, col_wall, wall, offset) {
  412. bot_step = h2n_bridge_band_h;
  413. difference() {
  414. union() {
  415. for (m = [0, 1]) mirror([m, 0, 0]) {
  416. // core of bridge
  417. translate([width/2, -thin_mint / 2, 0]) {
  418. cylcube(width / 2 + offset, radius + offset + 2 * wall, bot_step, wall);
  419. }
  420. // we should derive the geometry for the aligment magic below...
  421. side_fit = 1.05;
  422. corner_radius = 2.0;
  423. tilted_half_rounded_box(bot_step, width / 2 + offset - wall / 2, h2n_side_band_w / 2 + offset + wall,
  424. corner_radius, wall, 0);
  425. }
  426. }
  427. // clear the inside
  428. // outer frame
  429. rounded_block(bot_step + thin_mint, width / 2 + offset - 1.5 * wall, h2n_side_band_w / 2 + offset, 2);
  430. // inner frame
  431. translate([-(width + offset) / 2, -(radius + wall + offset), 0]) {
  432. cube([width + offset, (radius + wall + offset) * 2, bot_step + thin_mint]);
  433. }
  434. }
  435. }
  436. // base plate for upper center dial cover
  437. module h2n_center_dial_cover(radius, wall, offset) {
  438. scale([h2n_bridge_circle_ratio, 1, 1]) {
  439. tube(radius + wall + offset, radius + offset, h2n_bridge_band_h);
  440. }
  441. }
  442. // the core of the bridge, a solid offset-able version
  443. module h2n_bridge_core(width, base_height, stalk_height, radius, col_wall, wall, offset) {
  444. hull() {
  445. // top of bridge
  446. translate([width / 2, 0, base_height]) {
  447. rotate([0, -90, 0]) {
  448. // curvy ceiling
  449. semi_cylinder(r = radius + offset + col_wall, h = width + offset);
  450. }
  451. }
  452. // spherical caps at ends
  453. for (m = [0, 1]) mirror([m, 0, 0]) {
  454. translate([width / 2, 0, base_height]) {
  455. quarter_sphere(r = radius + offset + col_wall);
  456. }
  457. }
  458. // bottom plate
  459. h2n_center_cover(width, base_height, stalk_height, radius, col_wall, wall, offset);
  460. }
  461. // add cover for center dial
  462. hull() {
  463. cylinder(r = mount_radius, h = base_height + radius);
  464. h2n_center_dial_cover(h2n_bridge_circle / 2, wall, offset);
  465. }
  466. }
  467. // the bridge that holds the capsule array
  468. module h2n_bridge(width, base_height, stalk_height, radius, col_wall, wall) {
  469. // capsule array mount with the right orientation (left front top = #1)0
  470. rotate([0, 0, -90]) translate([0, 0, base_height + stalk_height]) {
  471. tetra_capsule_array_mount([-45, 135]);
  472. }
  473. // stalk
  474. translate([0, 0, base_height]) {
  475. difference() {
  476. tube(radius + wall, radius, stalk_height);
  477. // remove stalk segment that is inside the bridge
  478. translate([width / 2, 0, -1.0]) {
  479. rotate([0, -90, 0]) {
  480. semi_cylinder(r = radius + col_wall, h = width);
  481. }
  482. }
  483. }
  484. // add marker for "back of microphone" orientation
  485. rotate([0, 0, 0]) {
  486. translate([0, radius + wall - wall * 2 / 3, stalk_height - radius]) {
  487. difference() {
  488. sphere(r = radius / 3, $fn = 32);
  489. translate([0, -radius + radius / 2, 0]) {
  490. cube([radius, radius, radius], center = true);
  491. }
  492. }
  493. }
  494. }
  495. }
  496. difference() {
  497. h2n_bridge_core(width, base_height, stalk_height, radius, col_wall, wall, 0);
  498. h2n_bridge_core(width, base_height, stalk_height, radius, col_wall, wall, -wall);
  499. // make a hole for the cables
  500. cylinder(r = radius, h = base_height + radius + 2 * wall, $fn = facets);
  501. }
  502. }
  503. // render the whole thing
  504. difference() {
  505. union() {
  506. *h2n_ring(h2n_width_m, h2n_depth_m, h2n_depth * 0.425, h2n_band_height, h2n_col_tilt,
  507. h2n_side_band_w, h2n_side_band, h2n_band_wall, wall, mount_radius, h2n_col_wall);
  508. *h2n_columns(h2n_width_m, h2n_column_height, h2n_band_height, h2n_col_tilt,
  509. transition_height, h2n_mount_radius, h2n_col_wall, wall);
  510. *translate([0, 0, h2n_column_height]) {
  511. h2n_bridge((h2n_width_m / 2 + mount_radius - h2n_col_wall - h2n_column_height * tan(h2n_col_tilt)) * 2,
  512. h2n_bridge_base_height, h2n_bridge_stalk_height, mount_radius, h2n_col_wall, wall);
  513. }
  514. *rotate([0, 0, 90]) {
  515. render_tetra_capsule_array(h2n_column_height + h2n_bridge_base_height + h2n_bridge_stalk_height + 26);
  516. }
  517. }
  518. *translate([-40, -50, 0]) {
  519. cube([80, 50, 80]);
  520. }
  521. }
  522. // individual capsule holders
  523. *render_tetra_capsule_top(0);
  524. *render_tetra_capsule_bot(0);
  525. // make sure dimensions are fine
  526. *translate([-(h2n_width_m - 0.1) / 2, - 0.5, 0]) {
  527. cube([h2n_width_m - 0.1, 1, 1]);
  528. }
  529. *translate([-0.5, -(h2n_depth_m - 0.1) / 2, 0]) {
  530. cube([1, h2n_depth_m - 0.1, 1]);
  531. }
  532. // some tests with traced profiles
  533. *difference() {
  534. translate([0, -2.5, 0]) {
  535. scale([2.15, 2.15, 1.0]) {
  536. H2N_top_up_outline(5.0);
  537. }
  538. }
  539. // scale([1.75, 1.75, 1.0]) {
  540. translate([0, -2.4, 0]) {
  541. scale([2.02, 2.02, 1.0]) {
  542. H2N_top_up_outline(5.0);
  543. }
  544. }
  545. }
  546. *scale(1.665) {
  547. translate([0, 10, -0]) {
  548. rotate([0, 0, 0]) {
  549. H2N_front_outline(1.0);
  550. }
  551. }
  552. }
  553. *rotate([0, 0, 4]) translate([35, 0, 0])
  554. cube([2, 80, 4]);