webgpu-trees 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1541 -2
  3. package/assets/SOURCES.md +255 -0
  4. package/assets/bark/alder.albedo.avif +0 -0
  5. package/assets/bark/alder.normal.avif +0 -0
  6. package/assets/bark/aleppoPine.albedo.avif +0 -0
  7. package/assets/bark/aleppoPine.normal.avif +0 -0
  8. package/assets/bark/ash.albedo.avif +0 -0
  9. package/assets/bark/ash.normal.avif +0 -0
  10. package/assets/bark/aspen.albedo.avif +0 -0
  11. package/assets/bark/aspen.normal.avif +0 -0
  12. package/assets/bark/beech.albedo.avif +0 -0
  13. package/assets/bark/beech.normal.avif +0 -0
  14. package/assets/bark/birch.albedo.avif +0 -0
  15. package/assets/bark/birch.normal.avif +0 -0
  16. package/assets/bark/birchFoot.albedo.avif +0 -0
  17. package/assets/bark/birchFoot.normal.avif +0 -0
  18. package/assets/bark/corsicanPine.albedo.avif +0 -0
  19. package/assets/bark/corsicanPine.normal.avif +0 -0
  20. package/assets/bark/cypress.albedo.avif +0 -0
  21. package/assets/bark/cypress.normal.avif +0 -0
  22. package/assets/bark/douglas.albedo.avif +0 -0
  23. package/assets/bark/douglas.normal.avif +0 -0
  24. package/assets/bark/eucalyptus.albedo.avif +0 -0
  25. package/assets/bark/eucalyptus.normal.avif +0 -0
  26. package/assets/bark/eucalyptusUpper.albedo.avif +0 -0
  27. package/assets/bark/eucalyptusUpper.normal.avif +0 -0
  28. package/assets/bark/fibrous.albedo.avif +0 -0
  29. package/assets/bark/fibrous.normal.avif +0 -0
  30. package/assets/bark/hemlock.albedo.avif +0 -0
  31. package/assets/bark/hemlock.normal.avif +0 -0
  32. package/assets/bark/hornbeam.albedo.avif +0 -0
  33. package/assets/bark/hornbeam.normal.avif +0 -0
  34. package/assets/bark/larch.albedo.avif +0 -0
  35. package/assets/bark/larch.normal.avif +0 -0
  36. package/assets/bark/lime.albedo.avif +0 -0
  37. package/assets/bark/lime.normal.avif +0 -0
  38. package/assets/bark/liveOak.albedo.avif +0 -0
  39. package/assets/bark/liveOak.normal.avif +0 -0
  40. package/assets/bark/maple.albedo.avif +0 -0
  41. package/assets/bark/maple.normal.avif +0 -0
  42. package/assets/bark/montereyPine.albedo.avif +0 -0
  43. package/assets/bark/montereyPine.normal.avif +0 -0
  44. package/assets/bark/norMaple.albedo.avif +0 -0
  45. package/assets/bark/norMaple.normal.avif +0 -0
  46. package/assets/bark/oak.albedo.avif +0 -0
  47. package/assets/bark/oak.normal.avif +0 -0
  48. package/assets/bark/palmLattice.albedo.avif +0 -0
  49. package/assets/bark/palmLattice.normal.avif +0 -0
  50. package/assets/bark/palmPineapple.albedo.avif +0 -0
  51. package/assets/bark/palmPineapple.normal.avif +0 -0
  52. package/assets/bark/palmRings.albedo.avif +0 -0
  53. package/assets/bark/palmRings.normal.avif +0 -0
  54. package/assets/bark/pine.albedo.avif +0 -0
  55. package/assets/bark/pine.normal.avif +0 -0
  56. package/assets/bark/pineFlakes.albedo.avif +0 -0
  57. package/assets/bark/pineFlakes.normal.avif +0 -0
  58. package/assets/bark/plane.albedo.avif +0 -0
  59. package/assets/bark/plane.normal.avif +0 -0
  60. package/assets/bark/poplar.albedo.avif +0 -0
  61. package/assets/bark/poplar.normal.avif +0 -0
  62. package/assets/bark/redAlder.albedo.avif +0 -0
  63. package/assets/bark/redAlder.normal.avif +0 -0
  64. package/assets/bark/redOak.albedo.avif +0 -0
  65. package/assets/bark/redOak.normal.avif +0 -0
  66. package/assets/bark/ridged.albedo.avif +0 -0
  67. package/assets/bark/ridged.normal.avif +0 -0
  68. package/assets/bark/sitkaSpruce.albedo.avif +0 -0
  69. package/assets/bark/sitkaSpruce.normal.avif +0 -0
  70. package/assets/bark/spruce.albedo.avif +0 -0
  71. package/assets/bark/spruce.normal.avif +0 -0
  72. package/assets/bark/stonePine.albedo.avif +0 -0
  73. package/assets/bark/stonePine.normal.avif +0 -0
  74. package/assets/bark/sycMaple.albedo.avif +0 -0
  75. package/assets/bark/sycMaple.normal.avif +0 -0
  76. package/assets/bark/torreyPine.albedo.avif +0 -0
  77. package/assets/bark/torreyPine.normal.avif +0 -0
  78. package/assets/bark/whitePine.albedo.avif +0 -0
  79. package/assets/bark/whitePine.normal.avif +0 -0
  80. package/assets/bark/whiteSpruce.albedo.avif +0 -0
  81. package/assets/bark/whiteSpruce.normal.avif +0 -0
  82. package/assets/bark/whiteWillow.albedo.avif +0 -0
  83. package/assets/bark/whiteWillow.normal.avif +0 -0
  84. package/assets/bark/willow.albedo.avif +0 -0
  85. package/assets/bark/willow.normal.avif +0 -0
  86. package/assets/leaves/alder.albedo.avif +0 -0
  87. package/assets/leaves/alder.normal.avif +0 -0
  88. package/assets/leaves/ash.albedo.avif +0 -0
  89. package/assets/leaves/ash.normal.avif +0 -0
  90. package/assets/leaves/aspen.albedo.avif +0 -0
  91. package/assets/leaves/aspen.normal.avif +0 -0
  92. package/assets/leaves/beech.albedo.avif +0 -0
  93. package/assets/leaves/beech.normal.avif +0 -0
  94. package/assets/leaves/birch.albedo.avif +0 -0
  95. package/assets/leaves/birch.normal.avif +0 -0
  96. package/assets/leaves/blackthorn.albedo.avif +0 -0
  97. package/assets/leaves/blackthorn.normal.avif +0 -0
  98. package/assets/leaves/blade.albedo.avif +0 -0
  99. package/assets/leaves/blade.normal.avif +0 -0
  100. package/assets/leaves/broomSprig.albedo.avif +0 -0
  101. package/assets/leaves/broomSprig.normal.avif +0 -0
  102. package/assets/leaves/corsicanShoot.albedo.avif +0 -0
  103. package/assets/leaves/corsicanShoot.normal.avif +0 -0
  104. package/assets/leaves/cypress.albedo.avif +0 -0
  105. package/assets/leaves/cypress.normal.avif +0 -0
  106. package/assets/leaves/cypressPad.albedo.avif +0 -0
  107. package/assets/leaves/cypressPad.normal.avif +0 -0
  108. package/assets/leaves/deadFronds.albedo.avif +0 -0
  109. package/assets/leaves/deadFronds.normal.avif +0 -0
  110. package/assets/leaves/deltoid.albedo.avif +0 -0
  111. package/assets/leaves/deltoid.normal.avif +0 -0
  112. package/assets/leaves/douglasShoot.albedo.avif +0 -0
  113. package/assets/leaves/douglasShoot.normal.avif +0 -0
  114. package/assets/leaves/elderSprig.albedo.avif +0 -0
  115. package/assets/leaves/elderSprig.normal.avif +0 -0
  116. package/assets/leaves/elliptic.albedo.avif +0 -0
  117. package/assets/leaves/elliptic.normal.avif +0 -0
  118. package/assets/leaves/eucalyptus.albedo.avif +0 -0
  119. package/assets/leaves/eucalyptus.normal.avif +0 -0
  120. package/assets/leaves/fan.albedo.avif +0 -0
  121. package/assets/leaves/fan.normal.avif +0 -0
  122. package/assets/leaves/fanB.albedo.avif +0 -0
  123. package/assets/leaves/fanB.normal.avif +0 -0
  124. package/assets/leaves/fir.albedo.avif +0 -0
  125. package/assets/leaves/fir.normal.avif +0 -0
  126. package/assets/leaves/frond.albedo.avif +0 -0
  127. package/assets/leaves/frond.normal.avif +0 -0
  128. package/assets/leaves/gorse.albedo.avif +0 -0
  129. package/assets/leaves/gorse.normal.avif +0 -0
  130. package/assets/leaves/hawthorn.albedo.avif +0 -0
  131. package/assets/leaves/hawthorn.normal.avif +0 -0
  132. package/assets/leaves/hemlockShoot.albedo.avif +0 -0
  133. package/assets/leaves/hemlockShoot.normal.avif +0 -0
  134. package/assets/leaves/hornbeam.albedo.avif +0 -0
  135. package/assets/leaves/hornbeam.normal.avif +0 -0
  136. package/assets/leaves/lance.albedo.avif +0 -0
  137. package/assets/leaves/lance.normal.avif +0 -0
  138. package/assets/leaves/larchShoot.albedo.avif +0 -0
  139. package/assets/leaves/larchShoot.normal.avif +0 -0
  140. package/assets/leaves/lime.albedo.avif +0 -0
  141. package/assets/leaves/lime.normal.avif +0 -0
  142. package/assets/leaves/liveOak.albedo.avif +0 -0
  143. package/assets/leaves/liveOak.normal.avif +0 -0
  144. package/assets/leaves/londonPlane.albedo.avif +0 -0
  145. package/assets/leaves/londonPlane.normal.avif +0 -0
  146. package/assets/leaves/maple.albedo.avif +0 -0
  147. package/assets/leaves/maple.normal.avif +0 -0
  148. package/assets/leaves/norMaple.albedo.avif +0 -0
  149. package/assets/leaves/norMaple.normal.avif +0 -0
  150. package/assets/leaves/oak.albedo.avif +0 -0
  151. package/assets/leaves/oak.normal.avif +0 -0
  152. package/assets/leaves/paintFan.albedo.avif +0 -0
  153. package/assets/leaves/paintFan.normal.avif +0 -0
  154. package/assets/leaves/paintFrond.albedo.avif +0 -0
  155. package/assets/leaves/paintFrond.normal.avif +0 -0
  156. package/assets/leaves/pine.albedo.avif +0 -0
  157. package/assets/leaves/pine.normal.avif +0 -0
  158. package/assets/leaves/pineClumpDark.albedo.avif +0 -0
  159. package/assets/leaves/pineClumpDark.normal.avif +0 -0
  160. package/assets/leaves/pineClumpLight.albedo.avif +0 -0
  161. package/assets/leaves/pineClumpLight.normal.avif +0 -0
  162. package/assets/leaves/poplar.albedo.avif +0 -0
  163. package/assets/leaves/poplar.normal.avif +0 -0
  164. package/assets/leaves/queenFrond.albedo.avif +0 -0
  165. package/assets/leaves/queenFrond.normal.avif +0 -0
  166. package/assets/leaves/redAlder.albedo.avif +0 -0
  167. package/assets/leaves/redAlder.normal.avif +0 -0
  168. package/assets/leaves/redOak.albedo.avif +0 -0
  169. package/assets/leaves/redOak.normal.avif +0 -0
  170. package/assets/leaves/round.albedo.avif +0 -0
  171. package/assets/leaves/round.normal.avif +0 -0
  172. package/assets/leaves/scale.albedo.avif +0 -0
  173. package/assets/leaves/scale.normal.avif +0 -0
  174. package/assets/leaves/scotsPineClump.albedo.avif +0 -0
  175. package/assets/leaves/scotsPineClump.normal.avif +0 -0
  176. package/assets/leaves/seaBuckthornSprig.albedo.avif +0 -0
  177. package/assets/leaves/seaBuckthornSprig.normal.avif +0 -0
  178. package/assets/leaves/serrate.albedo.avif +0 -0
  179. package/assets/leaves/serrate.normal.avif +0 -0
  180. package/assets/leaves/sitkaShoot.albedo.avif +0 -0
  181. package/assets/leaves/sitkaShoot.normal.avif +0 -0
  182. package/assets/leaves/stonePineCanopy.albedo.avif +0 -0
  183. package/assets/leaves/stonePineCanopy.normal.avif +0 -0
  184. package/assets/leaves/stonePineCushion.albedo.avif +0 -0
  185. package/assets/leaves/stonePineCushion.normal.avif +0 -0
  186. package/assets/leaves/sycamore.albedo.avif +0 -0
  187. package/assets/leaves/sycamore.normal.avif +0 -0
  188. package/assets/leaves/torreyPine.albedo.avif +0 -0
  189. package/assets/leaves/torreyPine.normal.avif +0 -0
  190. package/assets/leaves/whitePine.albedo.avif +0 -0
  191. package/assets/leaves/whitePine.normal.avif +0 -0
  192. package/assets/leaves/whiteSpruceShoot.albedo.avif +0 -0
  193. package/assets/leaves/whiteSpruceShoot.normal.avif +0 -0
  194. package/assets/leaves/whiteWillow.albedo.avif +0 -0
  195. package/assets/leaves/whiteWillow.normal.avif +0 -0
  196. package/assets/leaves/willow.albedo.avif +0 -0
  197. package/assets/leaves/willow.normal.avif +0 -0
  198. package/assets/marks/marks.json +894 -0
  199. package/assets/marks/painterly.avif +0 -0
  200. package/assets/marks/sheets.avif +0 -0
  201. package/assets/scans.json +6066 -0
  202. package/lib/age.d.ts +36 -0
  203. package/lib/age.d.ts.map +1 -0
  204. package/lib/age.js +170 -0
  205. package/lib/age.js.map +1 -0
  206. package/lib/atmosphere.d.ts +64 -0
  207. package/lib/atmosphere.d.ts.map +1 -0
  208. package/lib/atmosphere.js +260 -0
  209. package/lib/atmosphere.js.map +1 -0
  210. package/lib/dabs.d.ts +4 -0
  211. package/lib/dabs.d.ts.map +1 -0
  212. package/lib/dabs.js +77 -0
  213. package/lib/dabs.js.map +1 -0
  214. package/lib/engine.d.ts +211 -0
  215. package/lib/engine.d.ts.map +1 -0
  216. package/lib/engine.js +3808 -0
  217. package/lib/engine.js.map +1 -0
  218. package/lib/genetics.d.ts +129 -0
  219. package/lib/genetics.d.ts.map +1 -0
  220. package/lib/genetics.js +721 -0
  221. package/lib/genetics.js.map +1 -0
  222. package/lib/geometry.d.ts +237 -0
  223. package/lib/geometry.d.ts.map +1 -0
  224. package/lib/geometry.js +1944 -0
  225. package/lib/geometry.js.map +1 -0
  226. package/lib/grow.d.ts +83 -0
  227. package/lib/grow.d.ts.map +1 -0
  228. package/lib/grow.js +3851 -0
  229. package/lib/grow.js.map +1 -0
  230. package/lib/hiz.d.ts +74 -0
  231. package/lib/hiz.d.ts.map +1 -0
  232. package/lib/hiz.js +161 -0
  233. package/lib/hiz.js.map +1 -0
  234. package/lib/impostor.d.ts +106 -0
  235. package/lib/impostor.d.ts.map +1 -0
  236. package/lib/impostor.js +450 -0
  237. package/lib/impostor.js.map +1 -0
  238. package/lib/index.d.ts +17 -0
  239. package/lib/index.d.ts.map +1 -0
  240. package/lib/index.js +16 -0
  241. package/lib/index.js.map +1 -0
  242. package/lib/leaves.d.ts +30 -0
  243. package/lib/leaves.d.ts.map +1 -0
  244. package/lib/leaves.js +829 -0
  245. package/lib/leaves.js.map +1 -0
  246. package/lib/light.d.ts +110 -0
  247. package/lib/light.d.ts.map +1 -0
  248. package/lib/light.js +430 -0
  249. package/lib/light.js.map +1 -0
  250. package/lib/lobes.d.ts +25 -0
  251. package/lib/lobes.d.ts.map +1 -0
  252. package/lib/lobes.js +151 -0
  253. package/lib/lobes.js.map +1 -0
  254. package/lib/marks.d.ts +63 -0
  255. package/lib/marks.d.ts.map +1 -0
  256. package/lib/marks.js +553 -0
  257. package/lib/marks.js.map +1 -0
  258. package/lib/mips.d.ts +42 -0
  259. package/lib/mips.d.ts.map +1 -0
  260. package/lib/mips.js +220 -0
  261. package/lib/mips.js.map +1 -0
  262. package/lib/paintedMarks.d.ts +21 -0
  263. package/lib/paintedMarks.d.ts.map +1 -0
  264. package/lib/paintedMarks.js +53 -0
  265. package/lib/paintedMarks.js.map +1 -0
  266. package/lib/palm.d.ts +162 -0
  267. package/lib/palm.d.ts.map +1 -0
  268. package/lib/palm.js +779 -0
  269. package/lib/palm.js.map +1 -0
  270. package/lib/palmAtlas.d.ts +79 -0
  271. package/lib/palmAtlas.d.ts.map +1 -0
  272. package/lib/palmAtlas.js +335 -0
  273. package/lib/palmAtlas.js.map +1 -0
  274. package/lib/palmGeometry.d.ts +41 -0
  275. package/lib/palmGeometry.d.ts.map +1 -0
  276. package/lib/palmGeometry.js +309 -0
  277. package/lib/palmGeometry.js.map +1 -0
  278. package/lib/phenology.d.ts +21 -0
  279. package/lib/phenology.d.ts.map +1 -0
  280. package/lib/phenology.js +164 -0
  281. package/lib/phenology.js.map +1 -0
  282. package/lib/random.d.ts +34 -0
  283. package/lib/random.d.ts.map +1 -0
  284. package/lib/random.js +92 -0
  285. package/lib/random.js.map +1 -0
  286. package/lib/scans.d.ts +232 -0
  287. package/lib/scans.d.ts.map +1 -0
  288. package/lib/scans.js +391 -0
  289. package/lib/scans.js.map +1 -0
  290. package/lib/scatter.d.ts +70 -0
  291. package/lib/scatter.d.ts.map +1 -0
  292. package/lib/scatter.js +186 -0
  293. package/lib/scatter.js.map +1 -0
  294. package/lib/species.d.ts +369 -0
  295. package/lib/species.d.ts.map +1 -0
  296. package/lib/species.js +2817 -0
  297. package/lib/species.js.map +1 -0
  298. package/lib/sprays.d.ts +112 -0
  299. package/lib/sprays.d.ts.map +1 -0
  300. package/lib/sprays.js +1137 -0
  301. package/lib/sprays.js.map +1 -0
  302. package/lib/stand.d.ts +52 -0
  303. package/lib/stand.d.ts.map +1 -0
  304. package/lib/stand.js +279 -0
  305. package/lib/stand.js.map +1 -0
  306. package/lib/styles.d.ts +135 -0
  307. package/lib/styles.d.ts.map +1 -0
  308. package/lib/styles.js +79 -0
  309. package/lib/styles.js.map +1 -0
  310. package/lib/tree.d.ts +134 -0
  311. package/lib/tree.d.ts.map +1 -0
  312. package/lib/tree.js +57 -0
  313. package/lib/tree.js.map +1 -0
  314. package/lib/variants.d.ts +157 -0
  315. package/lib/variants.d.ts.map +1 -0
  316. package/lib/variants.js +532 -0
  317. package/lib/variants.js.map +1 -0
  318. package/lib/visibility.d.ts +105 -0
  319. package/lib/visibility.d.ts.map +1 -0
  320. package/lib/visibility.js +242 -0
  321. package/lib/visibility.js.map +1 -0
  322. package/package.json +62 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geometry.js","sourceRoot":"","sources":["../src/geometry.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,4EAA4E;AAC5E,EAAE;AACF,uEAAuE;AACvE,oEAAoE;AACpE,uEAAuE;AACvE,4EAA4E;AAC5E,iCAAiC;AACjC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AA8BvC,8GAA8G;AAC9G,qGAAqG;AACrG,4GAA4G;AAC5G,8EAA8E;AAC9E,MAAM,CAAC,MAAM,WAAW,GAAyB;IAC/C,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;IACtJ,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EA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AC,CAAC,IAAI,EAAE,CAAC;AAClB,CAAC","sourcesContent":["// What is drawn of a grown tree, at each distance: its wood as tubes and its\n// clumps of leaves as dabs, many and small close to, few and broad far off.\n//\n// Every variant's pieces at one distance go into one buffer, one after\n// another, so one mesh draws them all: the graphics card draws each\n// variant's range once for every tree of it that it found in view (see\n// engine.ts). Positions are the variant's own, in metres from its foot; the\n// shaders fit them to each tree.\n//\n// A dab's corners all carry the dab's centre: it is turned to face the eye\n// in the shader, and lit as one thing, the way a brush lays a dab.\n\nimport { flareHeight } from \"./grow.ts\";\nimport { palmStemInto } from \"./palmGeometry.ts\";\nimport { hash01 } from \"./variants.ts\";\nimport { type GrownTree } from \"./tree.ts\";\n\n/** How each distance draws a tree. */\nexport interface TierShape {\n /** Dabs to a clump of leaves (0: the clumps are gathered into `gather` broad dabs instead). */\n dabsPerClump: number;\n /** How big a dab is beside its clump. */\n dabSize: number;\n /** With dabsPerClump 0: how many broad dabs the whole crown is gathered into. */\n gather: number;\n /** Wood thinner than this share of the trunk is not drawn. 1 or more: no wood, only a stroke for the trunk. */\n woodFrom: number;\n /** Sides to a tube of wood: the trunk's, and the thinnest's (between, by its radius to the trunk's to the 3/4). */\n sides: [number, number];\n /** The most a tube of thick wood turns between two of its rings (degrees); thin wood a little further. */\n turn: number;\n /** The most rings a piece of wood between two nodes is cut into: thick wood's, and thin's. */\n rings: [number, number];\n /**\n * A twig's (wood thinner than `TWIG`): its sides (2: a ribbon turned to the eye, `woodPieces`), the most rings\n * to a piece of it, and the most it turns between two (degrees). Most of a near tree's wood is twigs, a pixel\n * or two across even close to: near, a ribbon of two vertices a ring where its tube had four, and its rings\n * every 20 degrees of its turning where they were every 14.\n */\n twig: { sides: number; rings: number; turn: number };\n /** Rounded wood: a collar where a limb leaves its parent, buttresses round a stem's foot. */\n round: boolean;\n}\n\n// (Near, all the wood: every leaf grows from a twig, and a twig left out leaves its leaves in the air and the\n// branch it grew on ending bare. A twig thinner than a pixel is shrunk away in the shader (engine.ts\n// `keepThin`). Mid, the branches that are still a pixel or so across where a tree is handed to it, reaching\n// up into the leaves; its twigs would be under a pixel there, and only cost.)\nexport const TIER_SHAPES: readonly TierShape[] = [\n { dabsPerClump: 3, dabSize: 1.0, gather: 0, woodFrom: 0, sides: [16, 4], turn: 9, rings: [8, 3], twig: { sides: 2, rings: 3, turn: 20 }, round: true },\n { dabsPerClump: 0, dabSize: 1, gather: 56, woodFrom: 0.1, sides: [7, 3], turn: 18, rings: [3, 1], twig: { sides: 3, rings: 1, turn: 28.8 }, round: false },\n { dabsPerClump: 0, dabSize: 1, gather: 16, woodFrom: 9, sides: [3, 3], turn: 30, rings: [1, 1], twig: { sides: 3, rings: 1, turn: 48 }, round: false },\n];\n\n/** A run of one variant's pieces in a buffer: what one indirect draw draws. */\nexport interface Range {\n firstIndex: number;\n indexCount: number;\n baseVertex: number;\n /**\n * Wood's bands (`WOOD_BANDS`), thickest first: for each, the indices and the vertices from the run's first\n * up to and with that band (the last band's are the run's own).\n */\n bands?: { indexCount: number; vertexCount: number }[];\n}\n\n/** Plain arrays for a buffer of pieces, and where each variant's run of them is. */\nexport interface Pieces {\n attributes: Record<string, { array: Float32Array; size: number }>;\n index: Uint32Array;\n ranges: Range[];\n}\n\nexport class Builder {\n /**\n * Each attribute's numbers so far, as doubles (rounded to floats only by `done`), in typed arrays that grow as\n * they fill: the near wood lays some millions of numbers a course, and as arrays of numbers, each vertex an object\n * of arrays, laying them was half its time. `filled[k]` is how many of `floats[k]` are laid.\n */\n readonly floats: Record<string, Float64Array> = {};\n readonly filled: Record<string, number> = {};\n readonly index: number[] = [];\n readonly ranges: Range[] = [];\n vertices = 0;\n /** Where the variant being built starts: its first index and vertex. */\n start = { index: 0, vertex: 0 };\n // (Not a parameter property: node runs this file's tests by stripping its types, which those are not.)\n readonly sizes: Record<string, number>;\n /** The attributes by number (`slot`), for laying numbers without looking them up by name. */\n private readonly names: string[];\n private readonly data: Float64Array[];\n private readonly at: number[];\n constructor(sizes: Record<string, number>) {\n this.sizes = sizes;\n this.names = Object.keys(sizes);\n this.data = this.names.map((k) => new Float64Array(1024 * sizes[k]));\n this.at = this.names.map(() => 0);\n this.names.forEach((k, i) => {\n Object.defineProperty(this.floats, k, { get: () => this.data[i], enumerable: true });\n Object.defineProperty(this.filled, k, { get: () => this.at[i], enumerable: true });\n });\n }\n /** An attribute's number, for `putAt`. */\n slot(k: string): number {\n return this.names.indexOf(k);\n }\n /** Room in an attribute's numbers for `more` of them. */\n private room(i: number, more: number): Float64Array {\n let a = this.data[i];\n const need = this.at[i] + more;\n if (need > a.length) {\n const b = new Float64Array(Math.max(need, 2 * a.length));\n b.set(a.subarray(0, this.at[i]));\n this.data[i] = a = b;\n }\n return a;\n }\n begin(): void {\n this.start = { index: this.index.length, vertex: this.vertices };\n }\n end(): void {\n this.ranges.push({ firstIndex: this.start.index, indexCount: this.index.length - this.start.index, baseVertex: this.start.vertex });\n }\n /**\n * End a variant whose triangles were put in bands (`bands[k]`, indices numbered from its first vertex) rather\n * than in `index`: laid out band by band, and its vertices renumbered in the order they are first used, so a\n * run of its first bands uses only the vertices at the start of its run.\n */\n endBands(bands: number[][]): void {\n const from = this.start.vertex;\n const count = this.vertices - from;\n const order = new Int32Array(count).fill(-1);\n let next = 0;\n const cumulative: { indexCount: number; vertexCount: number }[] = [];\n const index = this.index;\n const first = index.length;\n for (const band of bands) {\n for (let j = 0; j < band.length; j++) {\n const k = band[j];\n if (order[k] < 0) order[k] = next++;\n index.push(order[k]);\n }\n cumulative.push({ indexCount: index.length - first, vertexCount: next });\n }\n // (Any vertex no triangle uses goes last.)\n for (let k = 0; k < count; k++) if (order[k] < 0) order[k] = next++;\n this.names.forEach((_, i) => {\n const size = this.sizes[this.names[i]];\n const a = this.data[i];\n const old = a.slice(from * size, (from + count) * size);\n for (let k = 0; k < count; k++) {\n const to = (from + order[k]) * size;\n const at = k * size;\n for (let j = 0; j < size; j++) a[to + j] = old[at + j];\n }\n });\n this.ranges.push({ firstIndex: this.start.index, indexCount: index.length - first, baseVertex: from, bands: cumulative });\n }\n /** A vertex, numbered from the variant's first. */\n vertex(values: Record<string, ArrayLike<number>>): number {\n for (const k in values) {\n const i = this.names.indexOf(k);\n const from = values[k];\n const to = this.room(i, from.length);\n let n = this.at[i];\n for (let j = 0; j < from.length; j++) to[n++] = from[j];\n this.at[i] = n;\n }\n return this.vertices++ - this.start.vertex;\n }\n /** One attribute's numbers (by its `slot`) for the vertex being laid (then `next`): as `vertex` lays them, without an object of arrays. */\n putAt(i: number, x: number, y: number, z: number, w?: number): void {\n const to = this.room(i, 4);\n let n = this.at[i];\n to[n++] = x;\n to[n++] = y;\n to[n++] = z;\n if (w !== undefined) to[n++] = w;\n this.at[i] = n;\n }\n /** The vertex whose attributes were `putAt`, numbered from the variant's first. */\n next(): number {\n return this.vertices++ - this.start.vertex;\n }\n done(): Pieces {\n const attributes: Pieces[\"attributes\"] = {};\n this.names.forEach((k, i) => (attributes[k] = { array: Float32Array.from(this.data[i].subarray(0, this.at[i])), size: this.sizes[k] }));\n return { attributes, index: new Uint32Array(this.index), ranges: this.ranges };\n }\n}\n\nconst CORNERS = [\n [-1, -1],\n [1, -1],\n [1, 1],\n [-1, 1],\n];\n\n/**\n * The dabs of every variant at one distance. Each dab: `position` its centre; `aDab` its corner (x, y),\n * its size (m, across half of it) and a number of its own; `aNormal` its clump's outward normal and how\n * deep in the crown it is; `aOffset` which way it lies from its clump's centre and what it is (0 leaves,\n * 1 a stroke for the trunk, whose half-width is in `aNormal.x`); `aLimb` the foot of the limb it is on, and\n * its variant. A variant `skip` says is left without leaves (its range is empty).\n */\nexport function dabPieces(trees: readonly GrownTree[], shape: TierShape, part: \"leaves\" | \"stroke\" = \"leaves\", skip?: readonly boolean[]): Pieces {\n const b = new Builder({ position: 3, aDab: 4, aNormal: 4, aOffset: 4, aLimb: 4 });\n const [P, DAB, NORMAL, OFFSET, LIMB] = [\"position\", \"aDab\", \"aNormal\", \"aOffset\", \"aLimb\"].map((k) => b.slot(k));\n const quad = (c: number[], size: number, own: number, n: number[], depth: number, off: number[], kind: number, limb: number[], variant: number) => {\n let f = -1;\n for (const [cx, cy] of CORNERS) {\n b.putAt(P, c[0], c[1], c[2]);\n b.putAt(DAB, cx, cy, size, own);\n b.putAt(NORMAL, n[0], n[1], n[2], depth);\n b.putAt(OFFSET, off[0], off[1], off[2], kind);\n b.putAt(LIMB, limb[0], limb[1], limb[2], variant);\n const k = b.next();\n if (f < 0) f = k;\n }\n b.index.push(f, f + 1, f + 2, f, f + 2, f + 3);\n };\n trees.forEach((tree, v) => {\n b.begin();\n const { clumps: cl, skeleton: sk } = tree;\n const limbOf = windLimbs(sk).foot;\n if (part === \"stroke\") {\n // (The trunk, far off: one upright stroke from the ground into the crown.)\n if (shape.woodFrom >= 1) {\n // (From its lowest leaves: a crown kept to the top of its size's, a stone pine's or one its stand has\n // lifted, has its trunk bare up to it.)\n let low = tree.size.height;\n for (let c = 0; c < cl.count; c++) low = Math.min(low, cl.y[c] - cl.radius[c]);\n const from = Math.max(tree.size.crownBase, low < tree.size.height ? low : tree.size.crownBase);\n const top = from + (tree.size.height - from) * 0.25;\n quad([0, top / 2, 0], top / 2, 0.5, [trunkHalfWidth(tree), 0, 0], 0, [0, 0, 0], 1, [0, -1, 0], v);\n }\n } else if (skip?.[v]) {\n // (Its leaves are drawn otherwise: a conifer's near boughs as sheets, `sheetPieces`.)\n } else if (shape.dabsPerClump > 0) {\n const twigs = clumpTwigs(tree);\n for (let c = 0; c < cl.count; c++) {\n const centre = [cl.x[c], cl.y[c], cl.z[c]];\n const n = [cl.nx[c], cl.ny[c], cl.nz[c]];\n const r = cl.radius[c];\n // (A clump deep in the crown is mostly hidden by those outside it: one dab is all of it that shows.)\n // (And a finer clump than its kind's, fewer: as many dabs over the crown as its kind's clumps would lay.)\n const dabs = cl.depth[c] > 0.65 ? 1 : dabsOf(shape.dabsPerClump, tree.clumpShare ?? 1, hash01(c * 31, v * 977 + 5));\n const laid: number[][] = [];\n for (let d = 0; d < dabs; d++) {\n const own = hash01(c * 31 + d, v * 977 + 3);\n let off = [0, 0, 0];\n if (dabs > 1) {\n // (Spread over the clump, more on its outer side: the leaves face the light.)\n const u = hash01(c * 31 + d, 11) * 2 - 1;\n const a = hash01(c * 31 + d, 12) * Math.PI * 2;\n const s = Math.sqrt(1 - u * u);\n off = [s * Math.cos(a) + n[0] * 0.6, u + n[1] * 0.6, s * Math.sin(a) + n[2] * 0.6];\n const l = Math.hypot(off[0], off[1], off[2]) || 1;\n off = off.map((q) => q / l);\n }\n const reach = dabs > 1 ? r * 0.5 : 0;\n const size = dabs >= shape.dabsPerClump ? shape.dabSize : dabs > 1 ? DAB_TWO : 1.45;\n const at = [centre[0] + off[0] * reach, centre[1] + off[1] * reach, centre[2] + off[2] * reach];\n laid.push([...at, r * size * (0.85 + own * 0.3)]);\n quad(at, laid[d][3], own, n, cl.depth[c], off, 0, limbOf(cl.node[c]), v);\n }\n // (And one more over each of its twigs' ends that none of those covers, half way in to its centre:\n // no twig of a clump pokes out of it bare.)\n twigs[c].forEach((t, j) => {\n if (laid.some((q) => Math.hypot(sk.x[t] - q[0], sk.y[t] - q[1], sk.z[t] - q[2]) < q[3])) return;\n const own = hash01(c * 31 + dabs + j, v * 977 + 3);\n const at = [(sk.x[t] + centre[0]) / 2, (sk.y[t] + centre[1]) / 2, (sk.z[t] + centre[2]) / 2];\n const off = norm([sk.x[t] - centre[0], sk.y[t] - centre[1], sk.z[t] - centre[2]]);\n quad(at, r * shape.dabSize * (0.85 + own * 0.3), own, n, cl.depth[c], off, 0, limbOf(t), v);\n });\n }\n } else {\n for (const g of gatherClumps(tree, shape.gather)) {\n quad(g.centre, g.size * shape.dabSize, g.own, g.normal, g.depth, [0, 0, 0], 0, g.limb, v);\n }\n }\n b.end();\n });\n return b.done();\n}\n\n/** Two dabs to a clump: each this big beside it, between three's (`TierShape.dabSize`) and one's (1.45). */\nconst DAB_TWO = 1.2;\n\n/**\n * How many dabs a clump takes, of `most`, its clump this share of its kind's size (`GrownTree.clumpShare`):\n * as many as cover the same share of the crown, `most` times its area, at least one; a fraction made up by\n * the clump's own number `u`.\n */\nexport function dabsOf(most: number, share: number, u: number): number {\n const want = Math.max(1, most * Math.min(1, share) ** 2);\n const n = Math.floor(want);\n return Math.min(most, n + (u < want - n ? 1 : 0));\n}\n\nfunction trunkHalfWidth(tree: GrownTree): number {\n return tree.size.trunkRadius * 1.15;\n}\n\n/** A crown's clumps gathered into a few broad ones: where each lies, how big it is, which way it faces, and its limb's foot. */\nexport function gatherClumps(tree: GrownTree, count: number): { centre: number[]; size: number; normal: number[]; depth: number; own: number; limb: [number, number, number] }[] {\n const cl = tree.clumps;\n const n = cl.count;\n if (n === 0) return [];\n const wl = windLimbs(tree.skeleton);\n const k = Math.min(count, n);\n // (k-means over the clumps' centres, from clumps at even steps through them.)\n const cx: number[] = [];\n const cy: number[] = [];\n const cz: number[] = [];\n for (let g = 0; g < k; g++) {\n const i = Math.floor(((g + 0.5) * n) / k);\n cx.push(cl.x[i]);\n cy.push(cl.y[i]);\n cz.push(cl.z[i]);\n }\n const of = new Int32Array(n);\n for (let round = 0; round < 10; round++) {\n for (let i = 0; i < n; i++) {\n let best = 0;\n let bestD = Infinity;\n for (let g = 0; g < k; g++) {\n const d = (cl.x[i] - cx[g]) ** 2 + (cl.y[i] - cy[g]) ** 2 + (cl.z[i] - cz[g]) ** 2;\n if (d < bestD) {\n bestD = d;\n best = g;\n }\n }\n of[i] = best;\n }\n const sum = Array.from({ length: k }, () => [0, 0, 0, 0]);\n for (let i = 0; i < n; i++) {\n const s = sum[of[i]];\n const w = cl.radius[i] ** 2;\n s[0] += cl.x[i] * w;\n s[1] += cl.y[i] * w;\n s[2] += cl.z[i] * w;\n s[3] += w;\n }\n for (let g = 0; g < k; g++) {\n if (sum[g][3] > 0) {\n cx[g] = sum[g][0] / sum[g][3];\n cy[g] = sum[g][1] / sum[g][3];\n cz[g] = sum[g][2] / sum[g][3];\n }\n }\n }\n const out: { centre: number[]; size: number; normal: number[]; depth: number; own: number; limb: [number, number, number] }[] = [];\n for (let g = 0; g < k; g++) {\n let reach = 0;\n let area = 0;\n const nn = [0, 0, 0];\n let depth = 0;\n let m = 0;\n let bestI = -1;\n let bestD = Infinity;\n for (let i = 0; i < n; i++) {\n if (of[i] !== g) continue;\n const d2 = (cl.x[i] - cx[g]) ** 2 + (cl.y[i] - cy[g]) ** 2 + (cl.z[i] - cz[g]) ** 2;\n if (d2 < bestD) {\n bestD = d2;\n bestI = i;\n }\n const d = Math.sqrt(d2) + cl.radius[i];\n reach = Math.max(reach, d);\n area += cl.radius[i] ** 2;\n nn[0] += cl.nx[i];\n nn[1] += cl.ny[i];\n nn[2] += cl.nz[i];\n depth += cl.depth[i];\n m++;\n }\n if (m === 0) continue;\n const l = Math.hypot(nn[0], nn[1], nn[2]) || 1;\n // (Big enough to cover what it gathers, seen from any side, short of its farthest edge: a group of\n // clumps is not a ball of them.)\n // (And never past it: a dab reaching out of the crown shows, as a tree passes from tier to tier and each\n // draws in the other's pixels, as specks of leaves floating round its top.)\n out.push({ centre: [cx[g], cy[g], cz[g]], size: Math.min(reach, Math.max(Math.sqrt(area) * 1.1, reach * 0.8)), normal: nn.map((q) => q / l), depth: depth / m, own: hash01(g, 41), limb: wl.foot(cl.node[bestI]) });\n }\n return out;\n}\n\n/** A sample of a drawn centre line, in a line's array: where it is (3), which way the wood runs (3), its radius, how fast that changes along it (per m), and how far along the wood from the ground it is. */\nexport const LINE_STRIDE = 9;\n\nconst DEG = Math.PI / 180;\n/** Wood at least this thick (m) is thick: it turns by a tier's `turn` between rings, and thinner wood by `THIN_TURN` times that. */\nconst THICK = 0.035;\nconst THIN_TURN = 1.6;\n/** Wood thinner than this (m) is a twig, with a tier's twig's sides and rings. */\nexport const TWIG = 0.02;\n/** A twig's ribbon's half width, in its radii: as wide as the four-sided tube it was, on average over the ways that was turned (2 sqrt(2) / pi). */\nexport const RIBBON_WIDE = (2 * Math.SQRT2) / Math.PI;\n/**\n * The near tier's wood in bands by how thick it is (m, as grown): the trunk and wood at least the first, then\n * wood thinner than each. Each variant's triangles are laid out band by band, thickest first, and its\n * vertices in the order they are first used, so drawing a variant's first few bands draws only their\n * vertices: the engine draws, for each tree, the bands that are a pixel's fraction or more across where it\n * stands (engine.ts `WOOD_DEPTHS`); wood thinner than that the shader would shrink to nothing anyway.\n */\nexport const WOOD_BANDS: readonly number[] = [0.016, 0.006];\n/** How far a limb's tube, where it leaves its parent's, is turned towards the way its parent runs: it leaves in a curve, not at an angle. */\nconst LEAVE = 0.35;\n/**\n * A fork: a limb nearly as thick as its parent there (from the first share of its radius to the second) is\n * the parent dividing, not a limb put out of its side. Its tube starts back inside the parent's, up to a\n * parent's radius back, running the parent's way, and bends out of it.\n */\nconst FORK: [number, number] = [0.35, 0.85];\n/** A limb's collar: how much thicker it is where it leaves its parent (at most), in how many of its radii past its parent's surface the swelling falls by e (a trumpet's flare, not a bulb), and the thinnest that has one (m). */\nconst COLLAR = 0.5;\nconst COLLAR_FALL = 0.9;\nconst COLLAR_FROM = 0.025;\n/** A stem's buttresses: how much they swell it at the ground, over how much of its flare's height they ease away, and how far the foot goes on under the ground (m, and its radii). */\nconst BUTTRESS = 0.75;\nconst BUTTRESS_RISE = 0.55;\n/** How wide a buttress is round the stem, in its share of the spacing between them; more sides go round a stem's foot to draw them. */\nconst BUTTRESS_WIDTH = 0.22;\nconst BUTTRESS_SIDES = 16;\nconst UNDERGROUND = 0.25;\nconst UNDERGROUND_RADII = 0.75;\n/** A cap closing a tube's end: a ring this far round from its side towards its tip (rad), on wood with at least `CAP_RING_SIDES` sides. */\nconst CAP_RING = 55 * DEG;\nconst CAP_RING_SIDES = 6;\n\n/**\n * The wood's centre lines as a tier draws them. Each node drawn has a line from its parent's node to it,\n * both ends included (`LINE_STRIDE` numbers to a sample): a curve through the nodes, as a cubic Hermite\n * piece whose ends run the way the wood runs through each node, so a tube bends through a node and does not\n * kink there; a limb leaves its parent at the parent's centre line, bending out of it, its collar thickening\n * it where it leaves. Cut into as many samples as it needs to turn no more than the tier's `turn` between\n * two. `main` is the child each node's tube runs on into (its thickest); a node's line is null if the tier\n * does not draw it (or it is a stem's foot).\n */\nexport interface WoodLines {\n line: (Float64Array | null)[];\n main: Int32Array;\n /**\n * Where each limb's line starts on its parent's: the parent's sample just before it (the line's start lies\n * on the piece from it to the next), or -1 if it starts at the parent's node itself.\n */\n from: Int32Array;\n}\n\n/** Each grown tree's wood lines, by tier: the near cards, the near wood and the clumps' shoots all ask for the same ones. */\nconst LINES = new WeakMap<GrownTree, Map<TierShape, WoodLines>>();\n\nexport function woodLines(tree: GrownTree, shape: TierShape): WoodLines {\n let byShape = LINES.get(tree);\n if (!byShape) LINES.set(tree, (byShape = new Map()));\n let lines = byShape.get(shape);\n if (!lines) byShape.set(shape, (lines = linesOf(tree, shape)));\n return lines;\n}\n\nfunction linesOf(tree: GrownTree, shape: TierShape): WoodLines {\n const sk = tree.skeleton;\n const n = sk.count;\n const R = sk.radius;\n const trunk = R[0] || tree.size.trunkRadius;\n const thinnest = trunk * shape.woodFrom;\n const line: (Float64Array | null)[] = new Array(n).fill(null);\n const main = mainChildren(sk);\n const from = new Int32Array(n).fill(-1);\n if (shape.woodFrom >= 1) return { line, main, from };\n const drawn = (i: number) => i >= 0 && sk.parent[i] >= 0 && R[i] >= thinnest;\n const len = new Float64Array(n);\n const dirIn: number[][] = new Array(n);\n for (let i = 0; i < n; i++) {\n const p = sk.parent[i];\n if (p < 0) {\n const c = main[i];\n dirIn[i] = c >= 0 ? norm([sk.x[c] - sk.x[i], sk.y[c] - sk.y[i], sk.z[c] - sk.z[i]]) : [0, 1, 0];\n continue;\n }\n const d = [sk.x[i] - sk.x[p], sk.y[i] - sk.y[p], sk.z[i] - sk.z[p]];\n len[i] = Math.hypot(d[0], d[1], d[2]);\n dirIn[i] = len[i] > 1e-6 ? [d[0] / len[i], d[1] / len[i], d[2] / len[i]] : dirIn[p];\n }\n // (The way a tube runs through each node: halfway between the pieces either side, if it runs on.)\n const tan: number[][] = new Array(n);\n for (let i = 0; i < n; i++) {\n const c = main[i];\n tan[i] = sk.parent[i] >= 0 && drawn(c) ? norm(add(dirIn[i], dirIn[c])) : dirIn[i];\n }\n // (How fast its radius falls along it there: between the pieces either side, flat where it swells.)\n const slope = new Float64Array(n);\n for (let i = 0; i < n; i++) {\n const p = sk.parent[i];\n const c = main[i];\n if (p < 0) {\n slope[i] = c >= 0 && len[c] > 1e-6 ? (R[c] - R[i]) / len[c] : 0;\n continue;\n }\n const before = main[p] === i ? R[p] : R[i];\n if (drawn(c)) {\n const g = (R[c] - before) / Math.max(1e-6, len[i] + len[c]);\n slope[i] = (before - R[i]) * (R[i] - R[c]) >= 0 ? g : 0;\n } else slope[i] = (R[i] - before) / Math.max(1e-6, len[i]);\n }\n const hf = flareHeight(tree.size, tree.buttress ?? 0);\n for (let i = 0; i < n; i++) {\n if (!drawn(i)) continue;\n const p = sk.parent[i];\n const lateral = main[p] !== i;\n const b = [sk.x[i], sk.y[i], sk.z[i]];\n let a = [sk.x[p], sk.y[p], sk.z[p]];\n let ta = tan[p];\n let back = 0;\n let fork = 0;\n if (lateral) {\n // (A fork's tube starts back inside its parent's, so the two part as one divides; a limb's at its parent's centre.)\n const u = Math.min(1, Math.max(0, (R[i] / R[p] - FORK[0]) / (FORK[1] - FORK[0])));\n fork = u * u * (3 - 2 * u);\n back = fork * Math.min(R[p], sk.parent[p] >= 0 ? 0.8 * len[p] : R[p]);\n // (Back along the parent's own line as drawn, so it starts on the parent's wood.)\n let way = tan[p];\n const pl = line[p];\n if (back > 0 && pl) {\n let left = back;\n let o = pl.length - LINE_STRIDE;\n while (o > 0) {\n const q = o - LINE_STRIDE;\n const piece = Math.hypot(pl[o] - pl[q], pl[o + 1] - pl[q + 1], pl[o + 2] - pl[q + 2]);\n if (left <= piece || q === 0) {\n const f = Math.min(1, left / Math.max(piece, 1e-9));\n a = [pl[o] + (pl[q] - pl[o]) * f, pl[o + 1] + (pl[q + 1] - pl[o + 1]) * f, pl[o + 2] + (pl[q + 2] - pl[o + 2]) * f];\n way = [pl[q + 3], pl[q + 4], pl[q + 5]];\n from[i] = q / LINE_STRIDE;\n break;\n }\n left -= piece;\n o = q;\n }\n } else if (back > 0) a = sub(a, scale(tan[p], back));\n const chord = norm(sub(b, a));\n ta = norm(add(chord, scale(way, LEAVE + 1.5 * fork)));\n if (dot(ta, chord) < 0.3) ta = chord;\n }\n const L = Math.max(Math.hypot(b[0] - a[0], b[1] - a[1], b[2] - a[2]), 1e-6);\n const tb = tan[i];\n const r0 = lateral ? R[i] : R[p];\n const g0 = lateral ? 0 : slope[p];\n const r1 = R[i];\n const g1 = slope[i];\n const thick = Math.max(r0, r1) >= THICK;\n const twig = Math.max(r0, r1) < TWIG;\n // (How far it turns along its length, and where: rings go at even steps of its turning, so where it bends\n // hardest, near a node it leaves at an angle, they come closest.)\n const FINE = 24;\n const turned = [0];\n let before = ta;\n for (let q = 1; q <= FINE; q++) {\n const t = q / FINE;\n const t2 = t * t;\n const w0 = 6 * t2 - 6 * t;\n const w1 = (3 * t2 - 4 * t + 1) * L;\n const w2 = -6 * t2 + 6 * t;\n const w3 = (3 * t2 - 2 * t) * L;\n const way = norm([w0 * a[0] + w1 * ta[0] + w2 * b[0] + w3 * tb[0], w0 * a[1] + w1 * ta[1] + w2 * b[1] + w3 * tb[1], w0 * a[2] + w1 * ta[2] + w2 * b[2] + w3 * tb[2]]);\n turned.push(turned[q - 1] + Math.acos(Math.min(1, Math.max(-1, dot(before, way)))));\n before = way;\n }\n const turn = turned[FINE];\n let k = Math.ceil(turn / ((thick ? shape.turn : twig ? shape.twig.turn : shape.turn * THIN_TURN) * DEG) - 1e-9);\n k = Math.min(Math.max(k, 1), thick ? shape.rings[0] : twig ? Math.min(shape.rings[1], shape.twig.rings) : shape.rings[1]);\n const ts: number[] = [0];\n for (let q = 1, j = 1; q < k; q++) {\n const want = (turn * q) / k;\n while (j < FINE && turned[j] < want) j++;\n const f = (want - turned[j - 1]) / Math.max(1e-9, turned[j] - turned[j - 1]);\n ts.push((j - 1 + Math.min(1, Math.max(0, f))) / FINE);\n }\n ts.push(1);\n // (A stem's foot in finer rings, where its buttresses ease away.)\n if (shape.round && sk.order[i] === 0 && sk.y[p] - sk.y[sk.limb[i]] < 2 * hf) {\n const m = Math.min(6, Math.ceil(L / (0.3 * hf)));\n for (let q = 1; q < m; q++) ts.push(q / m);\n }\n // (A limb's collar: swollen inside its parent and where it leaves its surface, falling away fast out of\n // it and then slowly, as a trumpet flares, to nothing by the next node.)\n let collar = { from: 0, C: 0, fall: 1, gone: 1 };\n if (lateral && shape.round && r1 >= COLLAR_FROM) {\n const rp = R[p];\n const c = dot(norm(sub(b, a)), tan[p]);\n const sinA = Math.sqrt(Math.max(0, 1 - c * c));\n const from = Math.min(back + rp / Math.max(sinA, 0.25) - 0.5 * r1, 0.6 * L);\n // (None on a fork: its two tubes run on together inside the parent's, and one swollen would show round the other.)\n const C = Math.min(COLLAR * (1 - fork), Math.max(0, (rp * 0.97) / r1 - 1));\n const fall = COLLAR_FALL * r1;\n if (C > 0.02 && L - from > 0.5 * fall) {\n collar = { from, C, fall, gone: Math.exp(-(L - from) / fall) };\n for (const f of [0, 0.7, 1.6, 3]) if (from + f * fall < L) ts.push((from + f * fall) / L);\n }\n }\n ts.sort((a, b) => a - b);\n const kept = ts.filter((t, j) => t <= 1 && (j === 0 || t - ts[j - 1] > 0.02 || t === 1));\n for (let j = kept.length - 2; j > 0; j--) if (kept[j + 1] - kept[j] <= 0.02) kept.splice(j, 1);\n const out = new Float64Array(kept.length * LINE_STRIDE);\n const lo = Math.min(r0, r1);\n const hi = Math.max(r0, r1);\n kept.forEach((t, q) => {\n const t2 = t * t;\n const t3 = t2 * t;\n const h00 = 2 * t3 - 3 * t2 + 1;\n const h10 = t3 - 2 * t2 + t;\n const h01 = -2 * t3 + 3 * t2;\n const h11 = t3 - t2;\n const d00 = 6 * t2 - 6 * t;\n const d10 = 3 * t2 - 4 * t + 1;\n const d01 = -6 * t2 + 6 * t;\n const d11 = 3 * t2 - 2 * t;\n const o = q * LINE_STRIDE;\n const dv = [0, 0, 0];\n for (let x = 0; x < 3; x++) {\n out[o + x] = h00 * a[x] + h10 * L * ta[x] + h01 * b[x] + h11 * L * tb[x];\n dv[x] = d00 * a[x] + d10 * L * ta[x] + d01 * b[x] + d11 * L * tb[x];\n }\n const d = norm(dv);\n out[o + 3] = d[0];\n out[o + 4] = d[1];\n out[o + 5] = d[2];\n let r = h00 * r0 + h10 * L * g0 + h01 * r1 + h11 * L * g1;\n let g = (d00 * r0 + d10 * L * g0 + d01 * r1 + d11 * L * g1) / L;\n if (r < lo || r > hi) {\n r = Math.min(hi, Math.max(lo, r));\n g = 0;\n }\n const s = t * L;\n if (collar.C > 0) {\n const x = Math.exp(-Math.max(0, s - collar.from) / collar.fall);\n const f = 1 + (collar.C * (x - collar.gone)) / (1 - collar.gone);\n const df = s > collar.from ? (-collar.C * x) / collar.fall / (1 - collar.gone) : 0;\n g = g * f + r * df;\n r *= f;\n }\n out[o + 6] = r;\n out[o + 7] = g;\n out[o + 8] = sk.along[p] + s - back;\n });\n line[i] = out;\n }\n return { line, main, from };\n}\n\n/**\n * The child each node's wood runs on into: the thickest, as it is the one going straightest on (a leader a\n * little thinner than a limb leaving at an angle carries the stem on; the limb leaves it).\n */\nfunction mainChildren(sk: GrownTree[\"skeleton\"]): Int32Array {\n const n = sk.count;\n const main = new Int32Array(n).fill(-1);\n const score = new Float64Array(n);\n for (let i = 0; i < n; i++) {\n const p = sk.parent[i];\n if (p < 0) continue;\n const g = sk.parent[p];\n const into = g < 0 ? [0, 1, 0] : norm([sk.x[p] - sk.x[g], sk.y[p] - sk.y[g], sk.z[p] - sk.z[g]]);\n const out = norm([sk.x[i] - sk.x[p], sk.y[i] - sk.y[p], sk.z[i] - sk.z[p]]);\n score[i] = sk.radius[i] * (0.5 + 0.5 * dot(into, out));\n if (main[p] < 0 || score[i] > score[main[p]]) main[p] = i;\n }\n return main;\n}\n\n/**\n * How many sides a tier gives wood of radius `r` on a tree whose trunk's is `trunk`: a twig the least (most of\n * the wood is twigs, and a twig is a few pixels across even close to), wood thicker than that more, the more\n * of the trunk's radius it has, up to the most on the trunk itself.\n */\nfunction sidesFor(shape: TierShape, r: number, trunk: number): number {\n const [most, least] = shape.sides;\n // (A tube: a twig drawn as a ribbon is not one.)\n if (r < TWIG) return Math.max(3, Math.min(least, shape.twig.sides));\n return Math.max(least, Math.min(most, Math.round(least + 1 + (most - least - 1) * Math.min(1, r / trunk) ** 0.75)));\n}\n\n/**\n * A stem's buttresses: lobes round its foot where its roots run off, each its own size and a little off even\n * spacing. Gives `swell` — how much they widen the stem at an angle round it (1 none) and a height above\n * its foot, and how fast that changes round it (per radian) and up it (per m) — plus the `lobes` themselves so\n * radiating surface roots follow the same ridges.\n */\nfunction buttresses(seed: number, hf: number, foot = 0): {\n swell: (angle: number, h: number) => [number, number, number];\n lobes: { angle: number; size: number }[];\n} {\n // (A buttressed species' foot has more of them, and they stand out further: a cedar's fluted foot.)\n const count = 4 + Math.floor(hash01(seed, 17) * 3) + Math.round(3 * foot);\n const step = (Math.PI * 2) / count;\n const lobes: { angle: number; size: number }[] = [];\n for (let k = 0; k < count; k++) {\n lobes.push({\n angle: step * (k + (hash01(seed + k, 18) - 0.5) * 0.7),\n size: 0.35 + 0.65 * hash01(seed + k, 19),\n });\n }\n const sigma = step * BUTTRESS_WIDTH;\n const rise = BUTTRESS_RISE * hf;\n const swell = (angle: number, h: number): [number, number, number] => {\n let lobe = 0;\n let dLobe = 0;\n for (let k = 0; k < count; k++) {\n let d = angle - lobes[k].angle;\n d -= Math.round(d / (Math.PI * 2)) * Math.PI * 2;\n const g = lobes[k].size * Math.exp(-0.5 * (d / sigma) ** 2);\n lobe += g;\n dLobe += (-g * d) / (sigma * sigma);\n }\n const A = BUTTRESS * (1 + 0.6 * foot) * Math.exp(-Math.max(0, h) / rise);\n const dA = h > 0 ? -A / rise : 0;\n const shape = Math.max(-0.04, lobe - 0.06);\n return [1 + A * shape, A * dLobe, dA * shape];\n };\n return { swell, lobes };\n}\n\n/**\n * How a stem's bark is laid over its root flare, from its centre lines (its first pieces, from its foot at\n * `y0`), the flare's height `hf` and its buttresses (`swell`, as `buttresses`): `along(a, angle)`, how far along\n * the wood a point is over its surface (not up its centre line: where the flare widens, and more on a\n * buttress, the surface runs out as well as up, and bark laid up the centre line was drawn out along it in\n * long smears); and `radius`, the stem's radius over its flare, which the bark is laid round there as round the\n * stem above (the shader's `aWood.w`, as a share of the radius), so its furrows run on down the flare and\n * spread out, as a real stem's do, and do not turn aside, crossing in chevrons where the bark's two sides\n * meet. Above twice the flare's height it is the centre line's own.\n */\nexport function flareBark(lines: readonly Float64Array[], y0: number, hf: number, swell?: (angle: number, h: number) => [number, number, number]): { along: (a: number, angle: number) => number; radius: number } {\n // (The centre line's samples up to twice the flare's height: how far along, how high, and the radius.)\n const as: number[] = [];\n const hs: number[] = [];\n const rs: number[] = [];\n let radius = 0;\n outer: for (const l of lines) {\n for (let o = 0; o < l.length; o += LINE_STRIDE) {\n if (as.length > 0 && l[o + 8] <= as[as.length - 1]) continue;\n const h = l[o + 1] - y0;\n as.push(l[o + 8]);\n hs.push(h);\n rs.push(l[o + 6]);\n if (h >= hf && radius === 0) radius = l[o + 6];\n if (h >= 2 * hf) break outer;\n }\n }\n if (radius === 0) radius = rs[rs.length - 1] ?? 0;\n const top = as[as.length - 1] ?? 0;\n /** The centre line's height and radius at `a` along it (on at the first piece's slope under its first sample). */\n const at = (a: number): [number, number] => {\n if (as.length < 2) return [a, rs[0] ?? 0];\n let k = 0;\n while (k + 1 < as.length - 1 && as[k + 1] <= a) k++;\n const f = (a - as[k]) / Math.max(1e-9, as[k + 1] - as[k]);\n return [hs[k] + (hs[k + 1] - hs[k]) * f, Math.max(0, rs[k] + (rs[k + 1] - rs[k]) * Math.max(0, f))];\n };\n /** The surface's distance out from the centre line at `a`, round at `angle`. */\n const out = (a: number, angle: number): number => {\n const [h, r] = at(a);\n return r * (swell ? swell(angle, h)[0] : 1);\n };\n const STEPS = 16;\n const along = (a: number, angle: number): number => {\n if (as.length < 2 || a >= top) return a;\n // (The surface's length from here up to the top of the flare, over its length up the centre line.)\n let extra = 0;\n let prev = out(a, angle);\n for (let k = 1; k <= STEPS; k++) {\n const da = (top - a) / STEPS;\n const next = out(a + da * k, angle);\n extra += Math.hypot(da, next - prev) - da;\n prev = next;\n }\n return a - extra;\n };\n return { along, radius };\n}\n\n/**\n * The wood of every variant at one distance, as tubes along the curves `woodLines` draws: one tube from each\n * stem's foot, and from where each limb leaves its parent, on through each node's thickest child, its rings\n * as many-sided as the wood is thick there (a ring with fewer sides than the one before it is stitched to\n * it), each tube's end closed in a rounded cap. Each vertex: `position` a point on the centre line;\n * `aRadial` which way the surface lies from it (as long as the surface swells there: buttresses), and the\n * radius there; `aNormal` which way the surface faces; `aLimb` the foot of the limb it is on (a stem's:\n * below its foot), and its variant; `aWood` how far along the wood from the ground (m, over the surface of\n * a stem's root flare: `flareBark`), its order, a number of its own (its tube's), and how much of its radius\n * the bark is laid round (under 1 on a root flare: `flareBark`); `aFrame` the ring's\n * own first direction out from the centre line (carried along the tube without twisting) and `aAxis` the\n * way the wood runs there, so a picture of bark can be wrapped round it (engine.ts).\n */\nexport function woodPieces(trees: readonly GrownTree[], shape: TierShape): Pieces {\n const b = new Builder({ position: 3, aRadial: 4, aNormal: 3, aLimb: 4, aWood: 4, aFrame: 3, aAxis: 3 });\n const [P, RADIAL, NORMAL, LIMB, WOOD, FRAME, AXIS] = [\"position\", \"aRadial\", \"aNormal\", \"aLimb\", \"aWood\", \"aFrame\", \"aAxis\"].map((k) => b.slot(k));\n trees.forEach((tree, v) => {\n b.begin();\n if (tree.palm) {\n // (A palm's stem, as palm.ts shaped it, all of it in the first band; its fronds' rachises are its leaves'\n // to draw: palmGeometry.ts.)\n palmStemInto(b, tree, shape, v);\n const all = b.index.splice(b.start.index);\n b.endBands([all, ...WOOD_BANDS.map(() => [])]);\n return;\n }\n const sk = tree.skeleton;\n const W = woodLines(tree, shape);\n // (Each band's triangles; a piece of tube goes in the band of the thicker of its two rings.)\n const bands: number[][] = [[], ...WOOD_BANDS.map(() => [])];\n const bandOf = (r: number) => WOOD_BANDS.reduce((k, e) => (r < e ? k + 1 : k), 0);\n const trunk = sk.radius[0] || tree.size.trunkRadius;\n const hf = flareHeight(tree.size, tree.buttress ?? 0);\n const ownOf = new Float64Array(sk.count).fill(0.5);\n const kidCount = new Uint16Array(sk.count);\n // (Children of a fair size: a stem dividing, not a stub or a twig leaving it.)\n for (let i = 0; i < sk.count; i++) if (sk.parent[i] >= 0 && sk.radius[i] >= 0.3 * sk.radius[sk.parent[i]]) kidCount[sk.parent[i]]++;\n const stitch = (a: number, na: number, c: number, nc: number, r: number) => {\n const into = bands[bandOf(r)];\n let i = 0;\n let j = 0;\n while (i < na || j < nc) {\n if (j >= nc || (i < na && (i + 1) / na <= (j + 1) / nc)) {\n into.push(a + (i % na), c + (j % nc), a + ((i + 1) % na));\n i++;\n } else {\n into.push(a + (i % na), c + (j % nc), c + ((j + 1) % nc));\n j++;\n }\n }\n };\n for (let j = 0; j < sk.count; j++) {\n const p = sk.parent[j];\n // A tube starts at a stem's foot, or where a limb leaves its parent.\n const chain: number[] = [];\n let at = p < 0 ? W.main[j] : W.line[j] && W.main[p] !== j ? j : -1;\n while (at >= 0 && W.line[at]) {\n chain.push(at);\n at = W.main[at];\n }\n if (chain.length === 0) continue;\n // (Each tube a shade of its own, from its parent's where it leaves it: no seam of colour at a fork.)\n const own = hash01(chain[0], v * 131 + 5);\n const ownFrom = p < 0 ? own : ownOf[p];\n const blend = p < 0 ? 1 : 4 * sk.radius[j] + 0.3;\n for (const i of chain) ownOf[i] = own;\n if (p < 0) ownOf[j] = own;\n const foot = p < 0 ? j : -1;\n const flared = foot >= 0 && shape.round && sk.radius[foot] > 0.06 && sk.radius[foot] > 1.02 * sk.radius[chain[0]];\n const buttSpec = flared ? buttresses(foot * 7 + v * 1013, hf, tree.buttress ?? 0) : null;\n const lobe = buttSpec ? buttSpec.swell : null;\n let u: number[] = [];\n let last = -1;\n let lastSides = 0;\n let lastR = 0;\n let lastKey = \"\";\n let end = { c: [0, 1, 0], d: [0, 1, 0], r: 0, attrs: { limb: [0, 0, 0], order: 0, along: 0 } };\n const startAlong = W.line[chain[0]]![8];\n // (Over its root flare up to where the stem first divides, if lower: a forked trunk's or a clump's stems\n // narrow fast where they part, and that is not flare to lay bark over.)\n const parts = flared ? chain.findIndex((i) => (kidCount[i] ?? 0) > 1) : -1;\n const bark = flared ? flareBark((parts >= 0 ? chain.slice(0, parts + 1) : chain).map((i) => W.line[i]!), sk.y[foot], hf, lobe ?? undefined) : null;\n const ownAt = (along: number) => {\n const f = Math.min(1, Math.max(0, (along - startAlong) / blend));\n return ownFrom + (own - ownFrom) * f * f * (3 - 2 * f);\n };\n // (Where a limb leaves its parent, its surface is lit as its parent's is, easing to its own over its\n // first radius or so out of it: two tubes meet in a crease, and lit as two they show it as a seam; lit\n // as one, the eye reads the crotch of a fork, the swell of a collar.)\n const parentLines = p >= 0 && shape.round ? [W.line[p], W.line[W.main[p]]].filter((l): l is Float64Array => l !== null) : [];\n const leaving = (x: number[], rLimb: number): { n: number[]; w: number } | null => {\n let best = Infinity;\n let n: number[] = [];\n for (const l of parentLines) {\n for (let o = 0; o + LINE_STRIDE < l.length; o += LINE_STRIDE) {\n const a = [l[o], l[o + 1], l[o + 2]];\n const dd = [l[o + LINE_STRIDE] - a[0], l[o + LINE_STRIDE + 1] - a[1], l[o + LINE_STRIDE + 2] - a[2]];\n const l2 = dot(dd, dd);\n const f = l2 > 0 ? Math.min(1, Math.max(0, dot(sub(x, a), dd) / l2)) : 0;\n const off = sub(x, add(a, scale(dd, f)));\n const out = Math.hypot(off[0], off[1], off[2]) - (l[o + 6] + (l[o + LINE_STRIDE + 6] - l[o + 6]) * f);\n if (out < best) {\n best = out;\n n = norm(off);\n }\n }\n }\n if (n.length === 0) return null;\n const t = Math.min(1, Math.max(0, best / (1.5 * rLimb)));\n return { n, w: 1 - t * t * (3 - 2 * t) };\n };\n const ring = (c: number[], d: number[], r: number, g: number, limb: number[], order: number, along: number, blend = false): number => {\n u = u.length ? norm(sub(u, scale(d, dot(u, d)))) : basis(d)[0];\n if (!Number.isFinite(u[0]) || Math.hypot(u[0], u[1], u[2]) < 0.5) u = basis(d)[0];\n const w = cross(d, u);\n const h = foot >= 0 ? c[1] - sk.y[foot] : 0;\n const swells = lobe !== null && h < 2.5 * hf;\n // (Its bark laid over the root flare as over the stem above it: see `flareBark`.)\n const barkShare = bark ? Math.min(1, bark.radius / Math.max(r, 1e-4)) : 1;\n const sides = sidesFor(shape, r, trunk) + (swells ? BUTTRESS_SIDES : 0);\n let first = -1;\n // (Its numbers laid one by one (`Builder.put`), each worked out as before, without arrays a vertex.)\n const own = ownAt(along);\n for (let s = 0; s < sides; s++) {\n const a = (s / sides) * Math.PI * 2;\n const cs = Math.cos(a);\n const sn = Math.sin(a);\n const e0 = u[0] * cs + w[0] * sn;\n const e1 = u[1] * cs + w[1] * sn;\n const e2 = u[2] * cs + w[2] * sn;\n const r0 = -u[0] * sn + w[0] * cs;\n const r1 = -u[1] * sn + w[1] * cs;\n const r2 = -u[2] * sn + w[2] * cs;\n let m = 1;\n let mA = 0;\n let mH = 0;\n if (swells) [m, mA, mH] = lobe(a, h);\n // (The surface's normal: out, tipped back where it swells along the wood and round where it swells round it.)\n const slopeAlong = g * m + r * mH * d[1];\n const q0 = e0 - r0 * (mA / m) - d[0] * slopeAlong;\n const q1 = e1 - r1 * (mA / m) - d[1] * slopeAlong;\n const q2 = e2 - r2 * (mA / m) - d[2] * slopeAlong;\n const ql = Math.hypot(q0, q1, q2) || 1;\n let n0 = q0 / ql;\n let n1 = q1 / ql;\n let n2 = q2 / ql;\n if (blend) {\n const at = leaving([c[0] + e0 * r, c[1] + e1 * r, c[2] + e2 * r], r);\n if (at && at.w > 0) [n0, n1, n2] = norm(add(scale([n0, n1, n2], 1 - at.w), scale(at.n, at.w)));\n }\n const barkAlong = bark ? bark.along(along, a) : along;\n b.putAt(P, c[0], c[1], c[2]);\n b.putAt(RADIAL, e0 * m, e1 * m, e2 * m, r);\n b.putAt(NORMAL, n0, n1, n2);\n b.putAt(LIMB, limb[0], limb[1], limb[2], v);\n b.putAt(WOOD, barkAlong, order, own, barkShare);\n b.putAt(FRAME, u[0], u[1], u[2]);\n b.putAt(AXIS, d[0], d[1], d[2]);\n const k = b.next();\n if (first < 0) first = k;\n }\n if (last >= 0) stitch(last, lastSides, first, sides, Math.max(lastR, r));\n last = first;\n lastSides = sides;\n lastR = r;\n end = { c, d, r, attrs: { limb, order, along } };\n return first;\n };\n // A tube's end closed: a rounded cap (a ring part way round and its tip), or on thin wood its tip alone.\n const capTube = () => {\n const { c, d, r, attrs } = end;\n const w = cross(d, u);\n let rim = last;\n let rimSides = lastSides;\n if (lastSides >= CAP_RING_SIDES) {\n const cs = Math.cos(CAP_RING);\n const sn = Math.sin(CAP_RING);\n let first = -1;\n for (let s = 0; s < lastSides; s++) {\n const a = (s / lastSides) * Math.PI * 2;\n const e = [u[0] * Math.cos(a) + w[0] * Math.sin(a), u[1] * Math.cos(a) + w[1] * Math.sin(a), u[2] * Math.cos(a) + w[2] * Math.sin(a)];\n const dir = [e[0] * cs + d[0] * sn, e[1] * cs + d[1] * sn, e[2] * cs + d[2] * sn];\n const k = b.vertex({ position: c, aRadial: [...dir, r], aNormal: dir, aLimb: [...attrs.limb, v], aWood: [attrs.along, attrs.order, ownAt(attrs.along), 1], aFrame: u, aAxis: d });\n if (first < 0) first = k;\n }\n stitch(rim, rimSides, first, lastSides, r);\n rim = first;\n }\n const tip = b.vertex({ position: c, aRadial: [...d, r], aNormal: d, aLimb: [...attrs.limb, v], aWood: [attrs.along, attrs.order, ownAt(attrs.along), 1], aFrame: u, aAxis: d });\n for (let s = 0; s < rimSides; s++) bands[bandOf(r)].push(rim + s, tip, rim + ((s + 1) % rimSides));\n };\n // (A twig, near: a ribbon of two vertices a ring, turned to the eye in the shader (engine.ts), its own\n // side of the centre line in `aRadial.x`, as wide as the four-sided tube it was (`RIBBON_WIDE`); no normal\n // (`aNormal` 0: the shader rounds it, facing the eye in the middle and out to its sides at its edges).\n // Its side is the wood's way crossed with the way to the eye, so its triangles, wound from its -1 side\n // to its +1 and on along the wood, always face the eye.)\n let inRibbon = false;\n const ribbonRing = (c: number[], d: number[], r: number, limb: number[], order: number, along: number) => {\n u = u.length ? norm(sub(u, scale(d, dot(u, d)))) : basis(d)[0];\n if (!Number.isFinite(u[0]) || Math.hypot(u[0], u[1], u[2]) < 0.5) u = basis(d)[0];\n const own = ownAt(along);\n let k = -1;\n for (const side of [-RIBBON_WIDE, RIBBON_WIDE]) {\n b.putAt(P, c[0], c[1], c[2]);\n b.putAt(RADIAL, side, 0, 0, r);\n b.putAt(NORMAL, 0, 0, 0);\n b.putAt(LIMB, limb[0], limb[1], limb[2], v);\n b.putAt(WOOD, along, order, own, 1);\n b.putAt(FRAME, u[0], u[1], u[2]);\n b.putAt(AXIS, d[0], d[1], d[2]);\n const at = b.next();\n if (k < 0) k = at;\n }\n if (last >= 0) bands[bandOf(Math.max(lastR, r))].push(last, last + 1, k, last + 1, k + 1, k);\n last = k;\n lastSides = 2;\n lastR = r;\n end = { c, d, r, attrs: { limb, order, along } };\n };\n // (Its end: a point a radius on.)\n const ribbonTip = () => {\n const { c, d, r, attrs } = end;\n if (last < 0) return;\n const tip = b.vertex({ position: [c[0] + d[0] * r, c[1] + d[1] * r, c[2] + d[2] * r], aRadial: [0, 0, 0, r], aNormal: [0, 0, 0], aLimb: [...attrs.limb, v], aWood: [attrs.along + r, attrs.order, ownAt(attrs.along), 1], aFrame: u, aAxis: d });\n bands[bandOf(r)].push(last, last + 1, tip);\n };\n // (A ring of the tube, or of its ribbon once it is a twig: a tube closed where its ribbon starts, and a\n // ribbon a ribbon to its end.)\n const put = (c: number[], d: number[], r: number, g: number, limb: number[], order: number, along: number, blend = false) => {\n if (shape.twig.sides === 2 && (inRibbon || r < TWIG)) {\n if (!inRibbon) {\n inRibbon = true;\n if (last >= 0) {\n // (Closed with its tip, and its ribbon starting at its last ring, as thick as the ribbon is here,\n // in the tip: the piece between that ring and this one is the ribbon's.)\n capTube();\n last = -1;\n ribbonRing(end.c, end.d, r, end.attrs.limb, end.attrs.order, end.attrs.along);\n }\n }\n ribbonRing(c, d, r, limb, order, along);\n } else ring(c, d, r, g, limb, order, along, blend);\n };\n const wl = windLimbs(sk);\n for (let q = 0; q < chain.length; q++) {\n const i = chain[q];\n const line = W.line[i]!;\n const limbNode = wl.node[i];\n const limb = wl.foot(i);\n const key = `${limbNode},${sk.order[i]}`;\n const samples = line.length / LINE_STRIDE;\n for (let s = 0; s < samples; s++) {\n const o = s * LINE_STRIDE;\n const c = [line[o], line[o + 1], line[o + 2]];\n const d = [line[o + 3], line[o + 4], line[o + 5]];\n if (s === 0) {\n // (Where one piece runs on into the next, they share a ring; where a tube runs on into wood of\n // another limb or order, which the wind moves its own way, a ring of its own starts it again.)\n if (q > 0 && key === lastKey) continue;\n if (q > 0) last = -1;\n if (q === 0 && foot >= 0) {\n // (A stem's foot goes on a little into the ground, so it stands in it on a slope.)\n const deep = UNDERGROUND + UNDERGROUND_RADII * line[o + 6];\n put([c[0] - d[0] * deep, c[1] - d[1] * deep, c[2] - d[2] * deep], d, line[o + 6] * 1.15, 0, limb, sk.order[i], line[o + 8] - deep);\n }\n }\n put(c, d, line[o + 6], line[o + 7], limb, sk.order[i], line[o + 8], q === 0 && parentLines.length > 0);\n }\n lastKey = key;\n }\n if (inRibbon) ribbonTip();\n else capTube();\n // Radiating surface roots on mature near-tier flared stems: sinuous tapering tubes emerging from the\n // strongest buttress ridges, hugging the turf, and diving underground at their capped tips.\n if (buttSpec && sk.radius[foot] >= 0.12) {\n const rFoot = sk.radius[foot];\n const butt = tree.buttress ?? 0.25;\n const sorted = [...buttSpec.lobes].sort((a, b) => b.size - a.size);\n const strong = sorted.filter((l) => l.size >= 0.48);\n const pool = strong.length >= 3 ? strong : sorted;\n const rootCount = Math.min(pool.length, Math.max(3, Math.round(3 + 3 * butt)));\n const rootLimb = wl.foot(foot);\n const cx0 = sk.x[foot];\n const cy0 = sk.y[foot];\n const cz0 = sk.z[foot];\n const ROOT_STATIONS = [0, 0.24, 0.52, 0.80, 1.0] as const;\n const ROOT_SIDES = 10;\n const rMaxCap = 0.44 * trunk;\n for (let ri = 0; ri < rootCount; ri++) {\n const lb = pool[ri];\n const rBase = Math.max(0.022, Math.min(rMaxCap, rFoot * (0.20 + 0.13 * lb.size) * (0.85 + 0.30 * butt)));\n const rTip = Math.max(0.018, Math.min(0.35 * rBase, 0.045 * rFoot));\n const reach = rFoot * (1.35 + 1.55 * butt) * (0.78 + 0.42 * lb.size);\n const rStart = 0.22 * rFoot;\n const wiggle = (hash01(foot * 31 + v * 977 + ri, 71) - 0.5) * 0.28;\n const hook = (hash01(foot * 31 + v * 977 + ri, 72) - 0.5) * 0.16;\n const rads = ROOT_STATIONS.map((t) => (t >= 1 ? rTip : Math.max(rTip, Math.min(rMaxCap, rBase * (1 - 0.62 * t) ** 1.15))));\n const pts = ROOT_STATIONS.map((t, k) => {\n const dist = rStart + (reach - rStart) * t;\n const az = lb.angle + wiggle * Math.sin(Math.PI * t) + hook * t * t;\n const rk = rads[k];\n const yOff =\n k === 0\n ? Math.min(0.18 * hf, 0.28 * rFoot)\n : k === 1\n ? 0.14 * rk\n : k === 2\n ? 0.02 * rk\n : k === 3\n ? -0.16 * rk\n : -0.34 - 0.4 * rBase;\n return [cx0 + dist * Math.cos(az), cy0 + yOff, cz0 + dist * Math.sin(az)];\n });\n const dirs = pts.map((_, k) => {\n const a = pts[Math.max(0, k - 1)];\n const q = pts[Math.min(pts.length - 1, k + 1)];\n return norm([q[0] - a[0], q[1] - a[1], q[2] - a[2]]);\n });\n let ru = norm(sub([0, 1, 0], scale(dirs[0], dirs[0][1])));\n if (!Number.isFinite(ru[0]) || Math.hypot(ru[0], ru[1], ru[2]) < 0.5) ru = basis(dirs[0])[0];\n const ringIds: number[] = [];\n let rootAlong = startAlong;\n for (let k = 0; k < pts.length; k++) {\n const c = pts[k];\n const d = dirs[k];\n if (k > 0) rootAlong -= Math.hypot(c[0] - pts[k - 1][0], c[1] - pts[k - 1][1], c[2] - pts[k - 1][2]) * 0.7;\n ru = norm(sub(ru, scale(d, dot(ru, d))));\n if (!Number.isFinite(ru[0]) || Math.hypot(ru[0], ru[1], ru[2]) < 0.5) ru = basis(d)[0];\n const rw = cross(d, ru);\n const r = rads[k];\n const squash = k >= 1 && k <= 3 ? 0.72 : 0.85;\n const segBefore = k > 0 ? Math.hypot(c[0] - pts[k - 1][0], c[1] - pts[k - 1][1], c[2] - pts[k - 1][2]) : 0;\n const segAfter = k + 1 < pts.length ? Math.hypot(pts[k + 1][0] - c[0], pts[k + 1][1] - c[1], pts[k + 1][2] - c[2]) : 0;\n const slope =\n k === 0\n ? (rads[1] - r) / Math.max(segAfter, 1e-4)\n : k === pts.length - 1\n ? (r - rads[k - 1]) / Math.max(segBefore, 1e-4)\n : (rads[k + 1] - rads[k - 1]) / Math.max(segBefore + segAfter, 1e-4);\n let firstV = -1;\n for (let s = 0; s < ROOT_SIDES; s++) {\n const a = (s / ROOT_SIDES) * Math.PI * 2;\n const cs = Math.cos(a);\n const sn = Math.sin(a);\n const e0 = ru[0] * (cs * squash) + rw[0] * sn;\n const e1 = ru[1] * (cs * squash) + rw[1] * sn;\n const e2 = ru[2] * (cs * squash) + rw[2] * sn;\n const nu = cs / squash;\n const nw = sn;\n const q0 = ru[0] * nu + rw[0] * nw - d[0] * slope;\n const q1 = ru[1] * nu + rw[1] * nw - d[1] * slope;\n const q2 = ru[2] * nu + rw[2] * nw - d[2] * slope;\n const ql = Math.hypot(q0, q1, q2) || 1;\n b.putAt(P, c[0], c[1], c[2]);\n b.putAt(RADIAL, e0, e1, e2, r);\n b.putAt(NORMAL, q0 / ql, q1 / ql, q2 / ql);\n b.putAt(LIMB, rootLimb[0], rootLimb[1], rootLimb[2], v);\n b.putAt(WOOD, rootAlong, 0, ownFrom, 0.75);\n b.putAt(FRAME, ru[0], ru[1], ru[2]);\n b.putAt(AXIS, d[0], d[1], d[2]);\n const idx = b.next();\n if (firstV < 0) firstV = idx;\n }\n ringIds.push(firstV);\n if (k > 0) stitch(ringIds[k - 1], ROOT_SIDES, firstV, ROOT_SIDES, Math.max(rads[k - 1], r));\n }\n const dStart = dirs[0];\n const startApex = b.vertex({\n position: pts[0],\n aRadial: [-dStart[0], -dStart[1], -dStart[2], 0.1 * rads[0]],\n aNormal: [-dStart[0], -dStart[1], -dStart[2]],\n aLimb: [...rootLimb, v],\n aWood: [startAlong, 0, ownFrom, 0.75],\n aFrame: ru,\n aAxis: dStart,\n });\n const r0 = ringIds[0];\n for (let s = 0; s < ROOT_SIDES; s++) bands[0].push(r0 + s, r0 + ((s + 1) % ROOT_SIDES), startApex);\n const dEnd = dirs[dirs.length - 1];\n const endApex = b.vertex({\n position: pts[pts.length - 1],\n aRadial: [dEnd[0], dEnd[1], dEnd[2], rTip],\n aNormal: dEnd,\n aLimb: [...rootLimb, v],\n aWood: [rootAlong, 0, ownFrom, 0.75],\n aFrame: ru,\n aAxis: dEnd,\n });\n const rLast = ringIds[ringIds.length - 1];\n for (let s = 0; s < ROOT_SIDES; s++) bands[0].push(rLast + s, endApex, rLast + ((s + 1) % ROOT_SIDES));\n }\n }\n }\n b.endBands(bands);\n });\n return b.done();\n}\n\nfunction add(a: number[], b: number[]): number[] {\n return [a[0] + b[0], a[1] + b[1], a[2] + b[2]];\n}\n\nfunction sub(a: number[], b: number[]): number[] {\n return [a[0] - b[0], a[1] - b[1], a[2] - b[2]];\n}\n\nfunction scale(a: number[], k: number): number[] {\n return [a[0] * k, a[1] * k, a[2] * k];\n}\n\nfunction dot(a: number[], b: number[]): number {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n}\n\nfunction cross(a: number[], b: number[]): number[] {\n return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];\n}\n\nfunction norm(a: number[]): number[] {\n const l = Math.hypot(a[0], a[1], a[2]) || 1;\n return [a[0] / l, a[1] / l, a[2] / l];\n}\n\n/** Two directions square to `d` and to each other, chosen the same way for every `d`, so rings along a branch do not twist. */\nfunction basis(d: number[]): [number[], number[]] {\n const ref = Math.abs(d[1]) < 0.9 ? [0, 1, 0] : [1, 0, 0];\n const u = norm([ref[1] * d[2] - ref[2] * d[1], ref[2] * d[0] - ref[0] * d[2], ref[0] * d[1] - ref[1] * d[0]]);\n const w = [d[1] * u[2] - d[2] * u[1], d[2] * u[0] - d[0] * u[2], d[0] * u[1] - d[1] * u[0]];\n return [u, w];\n}\n\n/** How far from a clump's centre (in its radii) a twig's end may be and still be one of the clump's twigs: a little past the grower's 0.8, which the fitting and the outline move. */\nexport const IN_CLUMP = 1.2;\n/** How far back along the wood from a clump's twig end its cards' feet may be, in the clump's radii. */\nconst SHOOT = 1.1;\n/** Where a spray's twig enters its card, from the card's centre, in its half-lengths (the sprays in leaves.ts start 0.7 to 0.97 below). */\nexport const SPRAY_FOOT = 0.8;\n/** An upright cushion card's size about its kind's, from 1 - this / 2 to 1 + this / 2; and how far up or down its twig it stands, in its clump's radii. */\nconst CUSHION_VARY = 0.7;\nconst CUSHION_RISE = 0.55;\n\n/**\n * Each clump's twigs: the node it hangs on, then the ends of the other twigs inside it. A clump is a spray of\n * leaves over the twigs where it hangs, and the grower keeps the twigs inside one for that (grow.ts\n * `leafy`); a twig's end that no clump hangs on goes to the clump it is deepest in, if it is in one.\n */\n/** Each grown tree's clumps' twigs (`clumpTwigs`), worked out once: its dabs, near cards and mid cards each ask. */\nconst TWIGS = new WeakMap<GrownTree, number[][]>();\n\nexport function clumpTwigs(tree: GrownTree): number[][] {\n let twigs = TWIGS.get(tree);\n if (!twigs) TWIGS.set(tree, (twigs = twigsOf(tree)));\n return twigs;\n}\n\nfunction twigsOf(tree: GrownTree): number[][] {\n const { clumps: cl, skeleton: sk } = tree;\n const out: number[][] = [];\n const hung = new Uint8Array(sk.count);\n for (let c = 0; c < cl.count; c++) {\n out.push([cl.node[c]]);\n hung[cl.node[c]] = 1;\n }\n const kids = new Uint8Array(sk.count);\n for (let i = 0; i < sk.count; i++) if (sk.parent[i] >= 0) kids[sk.parent[i]] = 1;\n for (let i = 0; i < sk.count; i++) {\n if (kids[i] || hung[i] || sk.parent[i] < 0) continue;\n let best = -1;\n let bestF = IN_CLUMP;\n for (let c = 0; c < cl.count; c++) {\n const f = Math.hypot(sk.x[i] - cl.x[c], sk.y[i] - cl.y[c], sk.z[i] - cl.z[c]) / cl.radius[c];\n if (f < bestF) {\n bestF = f;\n best = c;\n }\n }\n if (best >= 0) out[best].push(i);\n }\n return out;\n}\n\n/**\n * The wood leading to a node, back from it along its parents for up to `most` metres (not down onto a stem,\n * unless the node is on one), along its centre line as drawn close to (`lines`): `at(s)` is the point `s`\n * metres back from the node, and which way the wood runs there (out, towards the node).\n */\nfunction shootOf(sk: GrownTree[\"skeleton\"], lines: WoodLines, node: number, most: number): { length: number; at(s: number): { p: number[]; d: number[] } } {\n const pts: number[][] = [[sk.x[node], sk.y[node], sk.z[node]]];\n const dirs: number[][] = [];\n const lens: number[] = [];\n let length = 0;\n const back = (q: number[]) => {\n const a = pts[pts.length - 1];\n const seg = [a[0] - q[0], a[1] - q[1], a[2] - q[2]];\n const l = Math.hypot(seg[0], seg[1], seg[2]);\n if (l <= 1e-6) return;\n pts.push(q);\n dirs.push(seg.map((x) => x / l));\n lens.push(l);\n length += l;\n };\n // (Down each line from where the wood came onto it: a node's own line from its end, its parent's from\n // where the node's line left it.)\n let at = -1;\n for (let i = node; length < most; ) {\n const p = sk.parent[i];\n if (p < 0 || (sk.order[i] === 0 && sk.order[node] > 0)) break;\n const line = lines.line[i];\n const top = at >= 0 ? at * LINE_STRIDE : line ? line.length - 2 * LINE_STRIDE : 0;\n if (line) for (let o = top; o >= 0 && length < most; o -= LINE_STRIDE) back([line[o], line[o + 1], line[o + 2]]);\n else back([sk.x[p], sk.y[p], sk.z[p]]);\n at = lines.from[i];\n i = p;\n }\n length = Math.min(length, most);\n return {\n length,\n at(s: number) {\n if (dirs.length === 0) return { p: pts[0], d: [0, 1, 0] };\n let left = Math.min(Math.max(0, s), length);\n for (let j = 0; j < lens.length; j++) {\n if (left <= lens[j] || j === lens.length - 1) {\n const f = Math.min(1, left / lens[j]);\n const a = pts[j];\n const b = pts[j + 1];\n return { p: [a[0] + (b[0] - a[0]) * f, a[1] + (b[1] - a[1]) * f, a[2] + (b[2] - a[2]) * f], d: dirs[j] };\n }\n left -= lens[j];\n }\n return { p: pts[0], d: dirs[0] };\n },\n };\n}\n\n/** How a conifer's sheet is shaped: rows along it, columns across it (a sheet is (ROWS-1) (COLS-1) quads). */\nexport const SHEET_ALONG = 4;\nexport const SHEET_ACROSS = 3;\n/** The most sheets a clump of its own is laid with: one along its own twig, and one along another of its twigs that reaches out of the first. */\nexport const SHEETS_PER_CLUMP = 2;\n/** A clump's own sheet: its length, and its half width, in the clump's radii; how far back along the wood its foot is. */\nconst SHEET_LENGTH = 3.6;\nconst SHEET_HALF = 1.4;\n/** A spire's sheets round its leader: how many to a clump, and how long and wide, in its clump's radii. */\nconst SPIRE_SHEETS = 3;\nconst SPIRE_SHEET_LENGTH = 2.2;\nconst SPIRE_SHEET_HALF = 0.95;\nconst SHEET_BACK = 0.75;\n/**\n * How far a sheet's edges fall away for a species whose side shoots hang in curtains (`habit.sprayHang` 1),\n * over its own arch, in its half widths: a Norway spruce's low boughs hang their combs of shoots, so from the\n * side a bough is a fringe the depth of the gap to the next, and the crown is closed. The highest boughs hang\n * this share of it.\n */\nconst CURTAIN = 1.4;\n/** The most a sheet's edges fall for curtains, over its own arch (half widths): its top still faces up. */\nconst CURTAIN_MOST = 0.6;\nconst CURTAIN_TOP = 0.35;\n\n/** How much a sheet's edges fall, over its own arch, for a tree's habit, its foot at height `y`. */\nfunction curtainOf(tree: GrownTree, y: number): number {\n const hang = tree.habit?.sprayHang ?? 0;\n if (hang <= 0) return 0;\n const { crownBase, height } = tree.size;\n const up = Math.min(1, Math.max(0, (y - crownBase) / Math.max(0.01, height - crownBase)));\n return Math.min(CURTAIN_MOST, CURTAIN * hang * (CURTAIN_TOP + (1 - CURTAIN_TOP) * (1 - up)));\n}\n\n/** A bough's sheets: each this many of its clumps' radii long, the next starting this share of it on. */\nconst BOUGH_PIECE = 3.2;\nconst BOUGH_STEP = 0.62;\n\n/**\n * A conifer's near foliage as sheets: curved strips lying along its boughs, a comb of needles (Koerye's\n * foliage-mass study found these read as tiered boughs from every side, where loose leaves gave spiky balls\n * and closed blocks cushions). Each bough is laid with a run of them along its own wood, from its first\n * clump to its tip, overlapping, each as wide as its clumps reach either side of it; a clump off its bough's\n * line, or on the leader, a sheet or two of its own along its twig. Each sheet's foot is on the wood. It is lifted there and droops to its tip, its edges falling\n * away either side of its middle, a little twisted, so seen from the side it is a bough hanging its fringe\n * and from below a bough's shade.\n *\n * `kinds[v]` says what kind of sheet each variant's clumps are laid with (an index into marks.ts\n * `SHEET_KINDS`: 0 fir, 1 cedar), or -1 for none (its clumps are dabs). Each vertex: `position` where\n * it is (its variant's frame); `aDab` where it is on the sheet's picture (x across, y along its length, each\n * -1..1), half the sheet's length (m), and a number of the sheet's own; `aNormal` its clump's outward normal\n * and depth; `aOffset` the sheet's own normal there (its top's side) and its kind; `aLimb` the foot of its\n * limb and its variant; `aSpine` from it to the sheet's middle line, across.\n */\nexport function sheetPieces(trees: readonly GrownTree[], kinds: readonly number[], coarse = false): Pieces {\n const b = new Builder({ position: 3, aDab: 4, aNormal: 4, aOffset: 4, aLimb: 4, aSpine: 3 });\n trees.forEach((tree, v) => {\n b.begin();\n const kind = kinds[v] ?? -1;\n if (kind >= 0) {\n const { clumps: cl, skeleton: sk } = tree;\n const lines = woodLines(tree, TIER_SHAPES[0]);\n const covered = new Uint8Array(cl.count);\n boughSheets(b, tree, lines, kind, v, covered, coarse);\n const twigs = clumpTwigs(tree);\n const spire: number[] = [];\n for (let c = 0; c < cl.count; c++) {\n if (covered[c]) continue;\n const r = cl.radius[c];\n const n = [cl.nx[c], cl.ny[c], cl.nz[c]];\n // (Along its own twig first, then along the twig of it that reaches farthest from that sheet's line.)\n const laid: { foot: number[]; dir: number[]; length: number }[] = [];\n // (Mid, only the leader's: a bough's own sheets, wider there, cover its side shoots' clumps well enough\n // from where a mid tree is seen.)\n if (coarse && sk.order[cl.node[c]] > 0) continue;\n if (sk.order[cl.node[c]] === 0 && coarse) {\n // (Mid, the spire is one: below.)\n spire.push(c);\n continue;\n }\n if (sk.order[cl.node[c]] === 0) {\n // (On the leader, its spire: short sheets round it, splayed out and up as a fir's top shoots are,\n // each turned from the last, so the leader is clothed in needles all round and ends in a point.)\n const node = cl.node[c];\n const foot = [sk.x[node], sk.y[node] - r * 0.35, sk.z[node]];\n const around = coarse ? 2 : SPIRE_SHEETS;\n const turn0 = c * 2.39996;\n for (let s = 0; s < around; s++) {\n const a = turn0 + (s * 2 * Math.PI) / around;\n const out = [Math.cos(a), 0, Math.sin(a)];\n const k = c * 53 + s;\n const dir = norm([out[0] * 0.85, 1, out[2] * 0.85]);\n const length = r * SPIRE_SHEET_LENGTH * (0.9 + 0.2 * hash01(k, 12));\n sheet(b, foot, dir, length, r * SPIRE_SHEET_HALF, { lift: 0.04, droop: 0.12 + 0.08 * hash01(k, 14), arch: 0.5 + 0.3 * hash01(k, 15), twist: (hash01(k, 16) - 0.5) * 0.4 }, hash01(k, v * 389 + 11), n, cl.depth[c], kind, limbOf(sk, node), v, coarse ? 2 : SHEET_ALONG);\n }\n continue;\n }\n const most = cl.depth[c] > 0.65 || coarse ? 1 : SHEETS_PER_CLUMP;\n const order = [...twigs[c]].sort((p, q) => (p === cl.node[c] ? -1 : q === cl.node[c] ? 1 : 0));\n for (const t of order) {\n if (laid.length >= most) break;\n const tip = [sk.x[t], sk.y[t], sk.z[t]];\n if (laid.some((s) => offLine(tip, s.foot, s.dir, s.length) < r * 0.7)) continue;\n const k = c * 53 + laid.length;\n const shoot = shootOf(sk, lines, t, r * SHEET_BACK * 1.5);\n const foot = shoot.at(Math.min(shoot.length, r * SHEET_BACK)).p;\n // (Along its limb more than along its own twig, out from the trunk, and nearer level than either:\n // sprays lie flat and turn up only a little.)\n const d0 = shoot.at(0).d;\n const l = sk.limb[t];\n const limb = sk.order[t] === 0 ? d0 : norm([tip[0] - sk.x[l], tip[1] - sk.y[l], tip[2] - sk.z[l]]);\n const out = norm([tip[0], 0, tip[2]]);\n const run = add(add(scale(limb, 0.6), scale(d0, 0.4)), scale(out, 0.2));\n // (On the leader, upright: a conifer's top is a spire, not a flag.)\n const dir = sk.order[t] === 0 ? norm([d0[0] * 0.3, 1, d0[2] * 0.3]) : norm([run[0], run[1] * 0.45 + 0.03, run[2]]);\n const length = r * SHEET_LENGTH * (0.85 + 0.3 * hash01(k, 12)) * (coarse ? 1.2 : 1);\n const half = r * SHEET_HALF * (0.85 + 0.3 * hash01(k, 13)) * (coarse ? 1.15 : 1) * (sk.order[t] === 0 ? 0.3 : 1);\n laid.push({ foot, dir, length });\n const a = hash01(k, 14);\n sheet(b, foot, dir, length, half, { lift: 0.1 + 0.08 * a, droop: 0.26 + 0.22 * a, arch: 0.55 + 0.35 * hash01(k, 15) + curtainOf(tree, foot[1]), twist: (hash01(k, 16) - 0.5) * 0.7 }, hash01(k, v * 389 + 11), n, cl.depth[c], kind, limbOf(sk, t), v, coarse ? 2 : SHEET_ALONG);\n }\n }\n // (Any twig's end the sheets leave out, a sheet of its own along that twig, over its end: a twig poking out\n // of a conifer's needles bare is a dead stick, which it is not.)\n coverEnds(b, tree, lines, kind, v, coarse);\n if (spire.length > 0) {\n // (Mid, a spire is two sheets crossed, from its lowest needles to its tip, widest at its foot: a\n // narrow point and not a string of beads, which a few small sheets each its own read as.)\n let lo = Infinity;\n let hi = -Infinity;\n let wide = 0;\n let lowest = spire[0];\n for (const c of spire) {\n const r = cl.radius[c];\n if (cl.y[c] - r * 0.6 < lo) {\n lo = cl.y[c] - r * 0.6;\n lowest = c;\n }\n hi = Math.max(hi, cl.y[c] + r * 0.9);\n wide = Math.max(wide, r);\n }\n const node = cl.node[lowest];\n const foot = [sk.x[node], lo, sk.z[node]];\n const n = [cl.nx[lowest], cl.ny[lowest], cl.nz[lowest]];\n for (let s = 0; s < 2; s++) {\n const a = lowest * 2.39996 + s * Math.PI * 0.5;\n const dir = norm([Math.cos(a) * 0.04, 1, Math.sin(a) * 0.04]);\n sheet(b, foot, dir, hi - lo, wide * 1.15, { lift: 0, droop: 0.02, arch: 0.25, twist: 0, point: true }, hash01(lowest * 53 + s, v * 389 + 11), n, cl.depth[lowest], kind, limbOf(sk, node), v, 2);\n }\n }\n }\n b.end();\n });\n return b.done();\n}\n\n/**\n * A fir's boughs: each limb's clumps that lie along its own wood, laid as a run of overlapping sheets on that\n * wood from its first clump to past its last, each as wide as those clumps reach either side of it. The\n * clumps it covers are marked in `covered`; one off its line is left to a sheet of its own.\n */\nfunction boughSheets(b: Builder, tree: GrownTree, lines: WoodLines, kind: number, v: number, covered: Uint8Array, coarse: boolean): void {\n const { clumps: cl, skeleton: sk } = tree;\n const byLimb = new Map<number, number[]>();\n for (let c = 0; c < cl.count; c++) {\n const node = cl.node[c];\n if (sk.order[node] === 0) continue;\n const l = sk.limb[node];\n if (!byLimb.has(l)) byLimb.set(l, []);\n byLimb.get(l)!.push(c);\n }\n let piece = 0;\n for (const [l, list] of byLimb) {\n // (The bough's wood as drawn: its centre line from where it leaves the trunk, on through its thickest child.)\n const pts: number[][] = [];\n for (let i = l; i >= 0 && lines.line[i]; i = lines.main[i]) {\n const line = lines.line[i]!;\n for (let o = 0; o < line.length; o += LINE_STRIDE) {\n const p = [line[o], line[o + 1], line[o + 2]];\n const last = pts[pts.length - 1];\n if (!last || Math.hypot(p[0] - last[0], p[1] - last[1], p[2] - last[2]) > 1e-4) pts.push(p);\n }\n }\n if (pts.length < 2) continue;\n const along = [0];\n for (let q = 1; q < pts.length; q++) along.push(along[q - 1] + Math.hypot(pts[q][0] - pts[q - 1][0], pts[q][1] - pts[q - 1][1], pts[q][2] - pts[q - 1][2]));\n const total = along[along.length - 1];\n const at = (s: number): number[] => {\n const t = Math.min(total, Math.max(0, s));\n let q = 1;\n while (q < pts.length - 1 && along[q] < t) q++;\n const f = (t - along[q - 1]) / Math.max(1e-9, along[q] - along[q - 1]);\n return [pts[q - 1][0] + (pts[q][0] - pts[q - 1][0]) * f, pts[q - 1][1] + (pts[q][1] - pts[q - 1][1]) * f, pts[q - 1][2] + (pts[q][2] - pts[q - 1][2]) * f];\n };\n // (Where each clump lies along the bough, and how far off it.)\n const on: { c: number; s: number; off: number }[] = [];\n for (const c of list) {\n const p = [cl.x[c], cl.y[c], cl.z[c]];\n let best = { s: 0, off: Infinity };\n for (let q = 1; q < pts.length; q++) {\n const a = pts[q - 1];\n const d = sub(pts[q], a);\n const l2 = dot(d, d);\n const f = l2 > 0 ? Math.min(1, Math.max(0, dot(sub(p, a), d) / l2)) : 0;\n const off = Math.hypot(p[0] - a[0] - d[0] * f, p[1] - a[1] - d[1] * f, p[2] - a[2] - d[2] * f);\n if (off < best.off) best = { s: along[q - 1] + f * (along[q] - along[q - 1]), off };\n }\n on.push({ c, ...best });\n }\n const rMean = on.reduce((sum, o) => sum + cl.radius[o.c], 0) / on.length;\n // (A clump far off the bough's line is a side shoot of its own: its own sheet.)\n const near = on.filter((o) => o.off < cl.radius[o.c] * 2.2 + rMean * (coarse ? 1.5 : 0.5));\n if (near.length === 0) continue;\n // (From its first clump, or from a third of the way out if that is nearer the trunk: a bough is leafy\n // along most of its length, and the grower's clumps keep to its outer part.)\n const s0 = Math.max(0, Math.min(total * 0.3, ...near.map((o) => o.s - cl.radius[o.c] * 1.2)));\n const s1 = Math.min(total + rMean, Math.max(...near.map((o) => o.s + cl.radius[o.c] * 1.4)));\n // (Mid, longer pieces, fewer of them: a bough or two to a sheet.)\n const length = rMean * BOUGH_PIECE * (coarse ? 2.8 : 1);\n const count = Math.max(1, Math.ceil((s1 - s0 - length) / (length * BOUGH_STEP)) + 1);\n const step = count > 1 ? (s1 - s0 - length) / (count - 1) : 0;\n for (const o of near) covered[o.c] = 1;\n for (let k = 0; k < count; k++) {\n const sa = s0 + step * k;\n const sb = sa + length;\n const foot = at(sa);\n // (Its clumps: those it lies over, for how wide it is, which way they face, how deep they are.)\n const mine = near.filter((o) => o.s > sa - cl.radius[o.c] && o.s < sb + cl.radius[o.c]);\n const use = mine.length ? mine : near;\n const half = Math.max(rMean * 1.3, Math.max(...use.map((o) => o.off + cl.radius[o.c])) * 1.15) * (coarse ? 1.15 : 1);\n const nn = norm(use.reduce((m, o) => [m[0] + cl.nx[o.c], m[1] + cl.ny[o.c], m[2] + cl.nz[o.c]], [0, 0, 0]));\n const depth = use.reduce((m, o) => m + cl.depth[o.c], 0) / use.length;\n // (Along the bough's chord over its length, nearer level: past the bough's tip, on as it ran.)\n const end = sb <= total ? at(sb) : add(at(total), scale(norm(sub(at(total), at(Math.max(0, total - length * 0.5)))), sb - total));\n const chord = norm(sub(end, foot));\n const dir = norm([chord[0], chord[1] * 0.5 + 0.02, chord[2]]);\n // (The last of a bough's sheets hangs most, as its tip does; those along it lie as the wood does.)\n const tipward = sb >= s1 - 1e-6 ? 1 : 0.35;\n const h = piece * 31 + v * 7;\n sheet(b, foot, dir, length * (0.95 + 0.1 * hash01(h, 21)), half, { lift: 0.06, droop: (0.12 + 0.12 * hash01(h, 22)) * (0.5 + tipward) * (coarse ? 0.7 : 1), arch: 0.55 + 0.3 * hash01(h, 23) + curtainOf(tree, foot[1]), twist: (hash01(h, 24) - 0.5) * 0.4 }, hash01(h, v * 389 + 11), nn, depth, kind, limbOf(sk, l), v, coarse ? 2 : SHEET_ALONG);\n piece++;\n }\n }\n}\n\n/** How far past a sheet a twig's end may be (in its clump's radii, near and mid) before it is given a sheet of its own. */\nconst END_UNDER = [0.18, 0.4];\n\n/**\n * Each twig's end in the crown that the variant's sheets so far (those since `b.begin()`) leave more than\n * `END_UNDER` of a clump's radius from them: a short sheet along its twig, over its end.\n */\nfunction coverEnds(b: Builder, tree: GrownTree, lines: WoodLines, kind: number, v: number, coarse: boolean): void {\n const { clumps: cl, skeleton: sk } = tree;\n if (cl.count === 0) return;\n const pos = b.floats.position;\n // (This variant's triangles, as corner positions.)\n const start = b.start;\n const tris: number[] = [];\n for (let t = start.index; t < b.index.length; t += 3) {\n for (let c = 0; c < 3; c++) {\n const vtx = (b.index[t + c] + start.vertex) * 3;\n tris.push(pos[vtx], pos[vtx + 1], pos[vtx + 2]);\n }\n }\n const has = new Uint8Array(sk.count);\n for (let i = 0; i < sk.count; i++) if (sk.parent[i] >= 0) has[sk.parent[i]] = 1;\n // (Each end's clump: the nearest whose ball it is in, for the size of what covers it.)\n let rMean = 0;\n for (let c = 0; c < cl.count; c++) rMean += cl.radius[c] / cl.count;\n const reach = END_UNDER[coarse ? 1 : 0];\n const off = (p: number[], most: number): number => {\n let best = most;\n for (let t = 0; t < tris.length; t += 9) {\n const lo = Math.max(Math.min(tris[t], tris[t + 3], tris[t + 6]) - p[0], p[0] - Math.max(tris[t], tris[t + 3], tris[t + 6]), Math.min(tris[t + 1], tris[t + 4], tris[t + 7]) - p[1], p[1] - Math.max(tris[t + 1], tris[t + 4], tris[t + 7]), Math.min(tris[t + 2], tris[t + 5], tris[t + 8]) - p[2], p[2] - Math.max(tris[t + 2], tris[t + 5], tris[t + 8]));\n if (lo >= best) continue;\n best = Math.min(best, triangleDistance(p, tris, t));\n }\n return best;\n };\n for (let i = 0; i < sk.count; i++) {\n if (has[i] || sk.parent[i] < 0 || sk.order[i] === 0 || sk.y[i] < tree.size.crownBase) continue;\n const tip = [sk.x[i], sk.y[i], sk.z[i]];\n let r = rMean;\n let nearest = Infinity;\n for (let c = 0; c < cl.count; c++) {\n const d = Math.hypot(cl.x[c] - tip[0], cl.y[c] - tip[1], cl.z[c] - tip[2]);\n if (d < nearest) {\n nearest = d;\n r = cl.radius[c];\n }\n }\n r = Math.min(r, rMean);\n if (off(tip, reach * r + 1e-6) <= reach * r) continue;\n const shoot = shootOf(sk, lines, i, r * 1.2);\n const foot = shoot.at(Math.min(shoot.length, r * 0.9)).p;\n const along = norm(sub(tip, foot));\n const dir = along;\n const k = i * 37 + 5;\n const length = Math.max(r * 1.7, Math.hypot(...sub(tip, foot)) * 1.6);\n sheet(b, foot, dir, length, r * (coarse ? 0.9 : 0.75), { lift: 0, droop: 0.02 + 0.04 * hash01(k, 22), arch: 0.35, twist: (hash01(k, 24) - 0.5) * 0.4 }, hash01(k, v * 389 + 11), norm([tip[0], 0.4, tip[2]]), 0.3, kind, limbOf(sk, i), v, coarse ? 2 : SHEET_ALONG);\n // (Its triangles count for the ends after it.)\n const vtx = b.vertices - (coarse ? 2 : SHEET_ALONG) * SHEET_ACROSS;\n const rows = coarse ? 2 : SHEET_ALONG;\n for (let j = 0; j + 1 < rows; j++)\n for (let q = 0; q + 1 < SHEET_ACROSS; q++) {\n const a = (vtx + j * SHEET_ACROSS + q) * 3;\n const c2 = (vtx + (j + 1) * SHEET_ACROSS + q) * 3;\n for (const [x, y, z] of [\n [a, a + 3, c2],\n [a + 3, c2 + 3, c2],\n ])\n tris.push(pos[x], pos[x + 1], pos[x + 2], pos[y], pos[y + 1], pos[y + 2], pos[z], pos[z + 1], pos[z + 2]);\n }\n }\n}\n\n/** How far a point is from the triangle at `t` in a flat list of corners. */\nfunction triangleDistance(p: number[], tris: number[], t: number): number {\n const a = [tris[t], tris[t + 1], tris[t + 2]];\n const ab = [tris[t + 3] - a[0], tris[t + 4] - a[1], tris[t + 5] - a[2]];\n const ac = [tris[t + 6] - a[0], tris[t + 7] - a[1], tris[t + 8] - a[2]];\n const ap = sub(p, a);\n const d1 = dot(ab, ap);\n const d2 = dot(ac, ap);\n const d00 = dot(ab, ab);\n const d01 = dot(ab, ac);\n const d11 = dot(ac, ac);\n const den = d00 * d11 - d01 * d01;\n if (den > 1e-12) {\n const s = (d11 * d1 - d01 * d2) / den;\n const w = (d00 * d2 - d01 * d1) / den;\n if (s >= 0 && w >= 0 && s + w <= 1) return Math.hypot(ap[0] - ab[0] * s - ac[0] * w, ap[1] - ab[1] * s - ac[1] * w, ap[2] - ab[2] * s - ac[2] * w);\n }\n const seg = (u: number[], d: number[]) => {\n const f = Math.min(1, Math.max(0, dot(sub(p, u), d) / Math.max(1e-12, dot(d, d))));\n return Math.hypot(p[0] - u[0] - d[0] * f, p[1] - u[1] - d[1] * f, p[2] - u[2] - d[2] * f);\n };\n const b = [tris[t + 3], tris[t + 4], tris[t + 5]];\n return Math.min(seg(a, ab), seg(a, ac), seg(b, [tris[t + 6] - b[0], tris[t + 7] - b[1], tris[t + 8] - b[2]]));\n}\n\n/** How far a point lies from a sheet's line (its foot, the way it runs, its length): 0 on it. */\nfunction offLine(p: number[], foot: number[], dir: number[], length: number): number {\n const d = sub(p, foot);\n const s = Math.min(length, Math.max(0, dot(d, dir)));\n return Math.hypot(d[0] - dir[0] * s, d[1] - dir[1] * s, d[2] - dir[2] * s);\n}\n\ninterface WindLimbs {\n node: Int32Array;\n foot: (n: number) => [number, number, number];\n}\n\nconst WIND_LIMBS = new WeakMap<GrownTree[\"skeleton\"], WindLimbs>();\n\n/**\n * Resolves each skeleton node's wind-limb anchor without mutating `sk.order` or `sk.limb`.\n * Keeps V-fork `k = 0` arms symmetric with their `order === 1` siblings (skipping vertical\n * `FORK_APART` crotch spacers) and places `foot(n)` on the parent stem's bark collar so\n * short whorl boughs keep their full first-internode lever arm and wood collars do not tear.\n */\nfunction windLimbs(sk: GrownTree[\"skeleton\"]): WindLimbs {\n const cached = WIND_LIMBS.get(sk);\n if (cached) return cached;\n const kids: number[][] = Array.from({ length: sk.count }, () => []);\n const queue: number[] = [];\n for (let i = 0; i < sk.count; i++) {\n const p = sk.parent[i];\n if (p < 0) queue.push(i);\n else kids[p].push(i);\n }\n const wnode = new Int32Array(sk.count).fill(-1);\n for (let q = 0; q < queue.length; q++) {\n const i = queue[q];\n for (const c of kids[i]) queue.push(c);\n if (sk.order[i] !== 0) {\n wnode[i] = sk.limb[i];\n continue;\n }\n const p = sk.parent[i];\n if (p < 0) continue;\n if (wnode[p] >= 0) {\n wnode[i] = wnode[p];\n continue;\n }\n const hasForkSibling = kids[p].some((s) => s !== i && sk.order[s] === 1 && sk.radius[s] >= 0.4 * sk.radius[p]);\n if (hasForkSibling && Math.hypot(sk.x[i] - sk.x[p], sk.z[i] - sk.z[p]) > 0.08 * Math.max(0.1, sk.y[i] - sk.y[p])) {\n wnode[i] = i;\n }\n }\n const feet = new Map<number, [number, number, number]>();\n const foot = (n: number): [number, number, number] => {\n const l = wnode[n];\n if (l < 0) return [0, -1, 0];\n const hit = feet.get(l);\n if (hit) return hit;\n const p = sk.parent[l];\n let res: [number, number, number];\n if (p < 0) {\n res = [sk.x[l], Math.max(0, sk.y[l]), sk.z[l]];\n } else {\n const dx = sk.x[l] - sk.x[p];\n const dy = sk.y[l] - sk.y[p];\n const dz = sk.z[l] - sk.z[p];\n const segLen = Math.hypot(dx, dy, dz);\n if (segLen < 1e-6) {\n res = [sk.x[p], Math.max(0, sk.y[p]), sk.z[p]];\n } else {\n const step = Math.min(0.5 * segLen, Math.max(0.02, sk.radius[p]));\n res = [sk.x[p] + (dx / segLen) * step, Math.max(0, sk.y[p] + (dy / segLen) * step), sk.z[p] + (dz / segLen) * step];\n }\n }\n feet.set(l, res);\n return res;\n };\n const wl = { node: wnode, foot };\n WIND_LIMBS.set(sk, wl);\n return wl;\n}\n\nfunction limbOf(sk: GrownTree[\"skeleton\"], node: number): number[] {\n return windLimbs(sk).foot(node);\n}\n\n/** How a sheet curves: lifted at its foot and drooping to its tip (shares of its length), its edges falling (a share of its half width), and twisted (rad). */\ninterface SheetShape {\n lift: number;\n droop: number;\n arch: number;\n twist: number;\n /** Widest at its foot and narrowing to a point at its tip (a spire's), not narrower at both ends. */\n point?: boolean;\n}\n\n/**\n * One sheet: `rows` rows of `SHEET_ACROSS` points from its foot along `dir`, `length` long and `half`\n * wide either side at its widest, curved as `shape` says.\n */\nfunction sheet(b: Builder, foot: number[], dir: number[], length: number, half: number, shape: SheetShape, own: number, n: number[], depth: number, kind: number, limb: number[], v: number, rows = SHEET_ALONG): void {\n const up = [0, 1, 0];\n let side = cross(up, dir);\n if (Math.hypot(side[0], side[1], side[2]) < 0.2) side = basis(dir)[0];\n side = norm(side);\n const top = norm(cross(dir, side));\n const { lift, droop, arch, twist } = shape;\n const point = (u: number, s: number): number[] => {\n // (Its middle line: on along the bough, up a little at first, then down to its tip as it hangs.)\n const h = length * (lift * u * (1 - u) * 2 - droop * u * u);\n const c = [foot[0] + dir[0] * length * u, foot[1] + dir[1] * length * u + h, foot[2] + dir[2] * length * u];\n // (Across it, turned about its length by its twist, more towards its tip; narrower at its foot and its tip.)\n const t = twist * u;\n const sd = add(scale(side, Math.cos(t)), scale(top, Math.sin(t)));\n const tp = sub(scale(top, Math.cos(t)), scale(side, Math.sin(t)));\n const wide = shape.point ? half * Math.max(0.03, 1 - u) ** 0.85 : half * (0.62 + 0.38 * Math.sin(Math.PI * Math.min(1, 0.15 + u * 0.95)));\n return add(add(c, scale(sd, s * wide)), scale(tp, -arch * wide * s * s));\n };\n let first = -1;\n for (let j = 0; j < rows; j++) {\n const u = j / (rows - 1);\n for (let i = 0; i < SHEET_ACROSS; i++) {\n const s = (i / (SHEET_ACROSS - 1)) * 2 - 1;\n const p = point(u, s);\n // (Its normal, from the way it runs along and across here: its top's side.)\n const e = 1e-3;\n const du = sub(point(Math.min(1, u + e), s), point(Math.max(0, u - e), s));\n const ds = sub(point(u, Math.min(1, s + e)), point(u, Math.max(-1, s - e)));\n let nrm = norm(cross(du, ds));\n if (dot(nrm, top) < 0) nrm = scale(nrm, -1);\n // (And where its middle line is, from it: a sheet may be turned about it, as the painterly look does.)\n const mid = point(u, 0);\n const k = b.vertex({ position: p, aDab: [s, u * 2 - 1, length / 2, own], aNormal: [...n, depth], aOffset: [...nrm, kind], aLimb: [...limb, v], aSpine: sub(mid, p) });\n if (first < 0) first = k;\n }\n }\n for (let j = 0; j + 1 < rows; j++) {\n for (let i = 0; i + 1 < SHEET_ACROSS; i++) {\n const q = first + j * SHEET_ACROSS + i;\n // (Wound so its top faces the way its normal does.)\n b.index.push(q, q + SHEET_ACROSS, q + SHEET_ACROSS + 1, q, q + SHEET_ACROSS + 1, q + 1);\n }\n }\n}\n\n/**\n * The realistic look's near leaves: each clump as `perClump` cards (close to, at least one for each of its\n * twigs), each a spray of leaves growing from the tree's own wood, its foot on one of the clump's\n * twigs, set in the crown at angles of their own (not turned to the eye: a card's face shows as it is). They face\n * out of the crown and a little up, as leaves turn to the light, each its own way about that. Each card:\n * `position` its centre; `aDab` its corner, its size (m, across half of it), a number of its own;\n * `aNormal` its clump's outward normal and depth; `aOffset` its own facing (unit) and 0; `aTangent` the\n * way its twig runs (unit, square to its facing) and how high the corner is in its clump (its radii); `aLimb` the foot of its limb and its variant. A variant\n * `skip` says is left without cards.\n */\n/**\n * A tree whose leaves lie in pads (`habit.pads` 1): its near sprays spread this much wider about their shoots\n * and this share less high, and lie this share nearer level, facing up by this much more, so a pad is a\n * shelf, flat-topped and thin.\n */\n/** A clump faces up past this when its sprays hang less there (`FixedCards.hangTop`). */\nconst HANG_TOP_FROM = 0.3;\nconst PAD_WIDE = 0.5;\nconst PAD_FLAT = 0.75;\nconst PAD_LEVEL = 0.8;\nconst PAD_FACE_UP = 1.65;\n/** How far back along the wood under a clump its clothing sprays reach (m, `FixedCards.clothe`), and how big they are beside its own. */\nconst CLOTHE_REACH = 3.5;\n/** A crown this far in pads is shelves (a coastal cypress's), each laid on its wood and not hung below it. */\nconst PAD_SHELF = 0.8;\nconst CLOTHE_SIZE = 0.8;\n\n/** Near cards of a size of their own (m, half across), as many to a clump as cover it, hanging as much as `hang` (0..1). */\nexport interface FixedCards {\n half: number;\n /** How much more of a card its spray fills than a whole clump's picture does (so how many fewer are needed). */\n fill: number;\n /** The most cards to a clump. */\n most: number;\n /** Big cards to a clump besides, `bigSize` of its radius from their middle (`aOffset.w` 1 on them). */\n big: number;\n bigSize: number;\n hang: number;\n /**\n * How much less its sprays hang on a clump facing straight up, over the top of its crown (a weeping willow's:\n * hung all below their twigs there, they left the wood over them a bare wire along the crown's top).\n */\n hangTop?: number;\n /** Whether its sprays spring from as high as their clump is hung over its wood (a weeping crown's clothed top: `clothed`). */\n lift?: boolean;\n /** How far its sprays turn up along their twigs, 0..1 (a pine's shoots turn up to the light, their tufts like brushes held up). */\n rise?: number;\n /**\n * How many short sprays to lay along the wood leading up into each clump, under it (`CLOTHE_REACH` metres of it, past\n * the clump's own): a coastal cypress's limbs are clothed in sprays below its shelves, not bare wavy sticks up to a\n * floating disc.\n */\n clothe?: number;\n}\n\nexport function cardPieces(trees: readonly GrownTree[], perClump: number, size: number, skip?: readonly boolean[], fixed?: readonly (FixedCards | null)[], rises?: readonly number[], upright?: readonly boolean[], sizes?: readonly number[]): Pieces {\n const b = new Builder({ position: 3, aDab: 4, aNormal: 4, aOffset: 4, aTangent: 4, aLimb: 4 });\n const [P, DAB, NORMAL, OFFSET, TANGENT, LIMB] = [\"position\", \"aDab\", \"aNormal\", \"aOffset\", \"aTangent\", \"aLimb\"].map((k) => b.slot(k));\n trees.forEach((tree, v) => {\n b.begin();\n if (skip?.[v]) {\n // (Its leaves are drawn as sheets: `sheetPieces`.)\n b.end();\n return;\n }\n const { clumps: cl, skeleton: sk } = tree;\n const wl = windLimbs(sk);\n const twigs = clumpTwigs(tree);\n const lines = woodLines(tree, TIER_SHAPES[0]);\n const pads = Math.min(1, Math.max(0, tree.habit?.pads ?? 0));\n for (let c = 0; c < cl.count; c++) {\n const n = [cl.nx[c], cl.ny[c], cl.nz[c]];\n const r = cl.radius[c];\n // (Its twigs in turn, the one it hangs on first. Close to, a card for each at the least: no twig of it\n // is left bare. A few broad cards a clump (mid) cover it whole, and its twigs are under a pixel there.\n // Deep in the crown, fewer: little of it shows.)\n const shoots = twigs[c].map((t) => shootOf(sk, lines, t, r * SHOOT));\n const fix = fixed?.[v] ?? null;\n // (Cards of a fixed size: as many as cover the clump as the usual ones would, the leaves' spray a card\n // fills more of than a whole clump's; the deep ones fewer, as below.)\n const own = fix ? Math.round(Math.min(fix.most, Math.max(perClump, perClump * ((r * size) / fix.half) ** 2 * fix.fill))) : perClump;\n const base = cl.depth[c] > 0.65 ? Math.max(1, own >> 1) : own;\n const count = fix ? base : perClump >= 4 ? Math.max(base, Math.min(shoots.length, 4 * perClump)) : base;\n // (With small cards, a few big ones too, a clump wide, set a little into it: the mass of its leaves, which\n // the small ones at its surface lay their detail over.)\n const big = fix ? (cl.depth[c] > 0.65 ? Math.min(1, fix.big) : fix.big) : 0;\n // (Sprays clothing the wood under it (`clothe`): along its first twig's wood, back past its own reach.)\n const clothes = fix?.clothe && cl.depth[c] <= 0.65 ? fix.clothe : 0;\n const unders = clothes > 0 ? twigs[c].slice(0, 2).map((t) => shootOf(sk, lines, t, r * SHOOT + CLOTHE_REACH)) : [];\n for (let d = 0; d < count + big + clothes; d++) {\n const clothing = d >= count + big;\n const filler = d >= count && !clothing;\n const twig = twigs[c][d % shoots.length];\n const shoot = clothing && unders.length > 0 ? unders[d % unders.length] : shoots[d % shoots.length];\n const reach = shoot.length;\n const limb = wl.foot(twig);\n const k = c * 37 + d;\n const own = hash01(k, v * 613 + 7);\n const u = hash01(k, 21) * 2 - 1;\n const a = hash01(k, 22) * Math.PI * 2;\n const s = Math.sqrt(1 - u * u);\n const off = [s * Math.cos(a), u, s * Math.sin(a)];\n // (Its foot is on the wood: on its twig, or on the last of the wood leading to it, more of them near\n // its end, and each twig's first card at its very end. A spray grows from a shoot; set about the\n // clump's centre, the cards hang in the air beside the twig, and past its end.)\n const near0 = Math.min(reach, r * SHOOT);\n const at0 = clothing ? shoot.at(near0 + (reach - near0) * ((d - count - big + hash01(k, 25)) / clothes)) : shoot.at(reach * hash01(k, 25) ** 1.6 * (d < shoots.length ? 0.2 : 1));\n // (Small cards spread through the clump about their shoots, as its side twigs carry them: else they\n // would crowd along a line or two.)\n // (In a tree whose leaves lie in pads, `habit.pads`, flattened into a shelf: wider, and thin.)\n const spread = fix && !filler ? r * (clothing ? 0.2 : 0.55) * Math.sqrt(hash01(k, 26)) : 0;\n const pineShelf = fix && (fix.rise ?? 0) >= 0.7 ? 1 : 0;\n const wide = Math.max(1 + PAD_WIDE * pads, 1 + 0.28 * pineShelf);\n const flatV = Math.min(1 - PAD_FLAT * pads, 1 - 0.55 * pineShelf);\n // (A weeping tree's sprays, `lift`, spring from as high as their clump is hung over its wood: a\n // whip's arch, its crown's clothed top. Hung from the wood, they left it bare over them.)\n const lift = fix?.lift ? Math.max(0, cl.y[c] - at0.p[1]) : 0;\n // (A pine's tufts, held up off their shoots, make a layered bough shelf rather than hanging below the branch.)\n const offUp = fix && (fix.rise ?? 0) > 0.5 ? Math.abs(off[1]) : off[1];\n const from = fix && !filler ? { p: [at0.p[0] + off[0] * spread * wide, at0.p[1] + lift + offUp * spread * flatV, at0.p[2] + off[2] * spread * wide], d: at0.d } : lift > 0 ? { p: [at0.p[0], at0.p[1] + lift, at0.p[2]], d: at0.d } : at0;\n // (A hanging spray's twig turned down, as far as the species' sprays hang: a eucalyptus's, a willow's;\n // its big cards too, the clump's hanging mass.)\n // (Less on a clump facing the sky, as far as its kind says: `hangTop`.)\n const top = Math.max(0, (n[1] - HANG_TOP_FROM) / (1 - HANG_TOP_FROM));\n const hang = fix ? fix.hang * (filler ? 0.85 : 0.75 + 0.5 * hash01(k, 27)) * (1 - (fix.hangTop ?? 0) * top) : 0;\n // (Its facing: out of the crown and up, turned its own way by as much again; a hanging spray's no\n // more up than its leaves let it, as they hang edge to the sky: a card facing up has no way down\n // along it, and its leaves would lie flat.)\n // (So too a spray that rises along its twig, half as far.)\n // (Its big cards too, and a mid card of a variant `rises` says, as far: a pine's big card is a branch's\n // cushion of tufts held up off it, flat beneath and domed above; spun any way about its facing, a blot.)\n const rise = fix ? (fix.rise ?? 0) : (rises?.[v] ?? 0);\n // (A pad's sprays face the sky, as a shelf's top does.)\n const face = norm([n[0] * 0.9 + off[0] * 0.8, (n[1] * 0.9 + off[1] * 0.8 + 0.5) * (1 - 0.85 * Math.min(1, hang)) * (1 - 0.5 * rise) + PAD_FACE_UP * pads, n[2] * 0.9 + off[2] * 0.8]);\n // (Its twig: on along the wood its foot is on, out of the crown a little, turned its own way (a\n // frond's leaves follow the frond, a whip's hang with the whip), and square to its facing.)\n const [e1, e2] = basis(face);\n const t = hash01(k, 23) * Math.PI * 2;\n const spin = [e1[0] * Math.cos(t) + e2[0] * Math.sin(t), e1[1] * Math.cos(t) + e2[1] * Math.sin(t), e1[2] * Math.cos(t) + e2[2] * Math.sin(t)];\n // (A rising spray's shoots point out of the crown as well as up: a pine's tufts bristle from its outline.)\n const out = 0.3 + 0.5 * rise;\n const along0 = [from.d[0] + spin[0] * 0.6 * (1 - 0.5 * rise) + n[0] * out, from.d[1] + spin[1] * 0.6 * (1 - 0.5 * rise) + n[1] * out + rise, from.d[2] + spin[2] * 0.6 * (1 - 0.5 * rise) + n[2] * out];\n const l0 = Math.hypot(along0[0], along0[1], along0[2]) || 1;\n // (A pad's sprays, its big cards too, lie level: from the side a pad is a band of them, not a ball.)\n const level = 1 - PAD_LEVEL * pads * (1 - Math.min(1, rise));\n const along = [(along0[0] / l0) * (1 - hang), ((along0[1] / l0) * (1 - hang) - hang) * level, (along0[2] / l0) * (1 - hang)];\n const dotF = along[0] * face[0] + along[1] * face[1] + along[2] * face[2];\n const flat = [along[0] - face[0] * dotF, along[1] - face[1] * dotF, along[2] - face[2] * dotF];\n // (A variant `upright` says stands its big cards (a near tree's, every one of a mid tree's) upright on\n // their twigs, facing out of the crown level: a pine's cushion picture, its flat base kept level, which the\n // shader turns to the eye about the vertical.)\n const stands = upright?.[v] === true && (!fix || filler);\n const tangent = stands ? [0, 1, 0] : Math.hypot(flat[0], flat[1], flat[2]) > 1e-3 ? norm(flat) : norm(spin);\n const facing = stands ? (Math.hypot(n[0], n[2]) > 1e-3 ? norm([n[0], 0, n[2]]) : norm([off[0] + 1e-3, 0, off[2]])) : face;\n // (A variant's own size for its cards where `sizes` gives one: a stone pine's mid cards, strips of its canopy.)\n // (Upright cushions vary more, and stand at heights of their own about their twigs, a half of the\n // clump's radius up or down: at one height, a crown of them seen from beneath was rings of plates.)\n const vary = stands ? CUSHION_VARY : 0.4;\n const half = (fix && !filler ? fix.half * (clothing ? CLOTHE_SIZE : 1) : fix ? r * fix.bigSize : r * (sizes?.[v] ?? size)) * (1 - vary / 2 + hash01(k, 24) * vary);\n // (The spray's own twig enters its picture near the bottom edge (leaves.ts): its centre is that far\n // on from its foot.)\n // (A shelf (a crown in pads, `pads` 0.8 or more) only up from its wood: dropped under it, it hung below its own\n // limb, the limb running on bare above it.)\n const upDown = pads >= PAD_SHELF ? 0.5 * hash01(k, 28) : hash01(k, 28) - 0.5;\n const on = half * SPRAY_FOOT + (stands ? upDown * r * CUSHION_RISE : 0);\n const at = [from.p[0] + tangent[0] * on, from.p[1] + tangent[1] * on, from.p[2] + tangent[2] * on];\n let f = -1;\n for (const [cx, cy] of CORNERS) {\n // (How high the corner is in its clump, in the clump's radii: along the twig, which the card keeps\n // however it is turned to the eye. A dense clump's needles low in it are in its own shade.)\n const inClump = Math.max(-1.5, Math.min(1.5, (at[1] + tangent[1] * cy * half - cl.y[c]) / Math.max(r, 1e-3)));\n b.putAt(P, at[0], at[1], at[2]);\n b.putAt(DAB, cx, cy, half, own);\n b.putAt(NORMAL, n[0], n[1], n[2], cl.depth[c]);\n b.putAt(OFFSET, facing[0], facing[1], facing[2], filler ? 1 : 0);\n b.putAt(TANGENT, tangent[0], tangent[1], tangent[2], inClump);\n b.putAt(LIMB, limb[0], limb[1], limb[2], v);\n const i = b.next();\n if (f < 0) f = i;\n }\n b.index.push(f, f + 1, f + 2, f, f + 2, f + 3);\n }\n }\n b.end();\n });\n return b.done();\n}\n"]}