@automovie/render 0.2.0 → 0.3.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 (681) hide show
  1. package/lib/IAutoMovieCaptionEntry.d.ts +1 -28
  2. package/lib/IAutoMovieCaptionSidecar.d.ts +1 -25
  3. package/lib/IAutoMovieCapturedFrame.d.ts +1 -22
  4. package/lib/IAutoMovieGuidePassOutput.d.ts +1 -23
  5. package/lib/IAutoMoviePoseKeypointActor.d.ts +1 -36
  6. package/lib/IAutoMoviePoseKeypointFrame.d.ts +1 -25
  7. package/lib/IAutoMoviePoseKeypointSidecar.d.ts +1 -21
  8. package/lib/IAutoMovieRenderAdapters.d.ts +1 -34
  9. package/lib/IAutoMovieRenderAndSeeRequest.d.ts +1 -32
  10. package/lib/IAutoMovieRenderAndSeeResult.d.ts +1 -20
  11. package/lib/IAutoMovieRenderChunk.d.ts +1 -48
  12. package/lib/IAutoMovieRenderChunkPlan.d.ts +1 -32
  13. package/lib/IAutoMovieRenderPassManifest.d.ts +1 -21
  14. package/lib/IAutoMovieRenderReassembly.d.ts +1 -24
  15. package/lib/IAutoMovieRenderResult.d.ts +1 -39
  16. package/lib/IAutoMovieSequenceRenderAdapters.d.ts +1 -36
  17. package/lib/IAutoMovieSequenceRenderAndSeeRequest.d.ts +1 -36
  18. package/lib/IAutoMovieSequenceRenderAndSeeResult.d.ts +1 -23
  19. package/lib/IAutoMovieSequenceRenderFrame.d.ts +1 -41
  20. package/lib/IAutoMovieSequenceRenderPlan.d.ts +1 -76
  21. package/lib/IAutoMovieSequenceRenderResult.d.ts +1 -44
  22. package/lib/IAutoMovieSequenceRenderShotSpan.d.ts +1 -39
  23. package/lib/IAutoMovieSequenceRenderTransitionSpan.d.ts +1 -39
  24. package/lib/audio/mixAutoMovieAudioPcm.d.ts +2 -39
  25. package/lib/audio/mixAutoMovieAudioPcm.js.map +1 -1
  26. package/lib/audio/mixAutoMovieAudioPcm.mjs.map +1 -1
  27. package/lib/auditAutoMovieRenderObservation.d.ts +2 -14
  28. package/lib/auditAutoMovieRenderObservation.js.map +1 -1
  29. package/lib/auditAutoMovieRenderObservation.mjs.map +1 -1
  30. package/lib/cache/createAutoMovieHttpArtifactStore.d.ts +1 -1
  31. package/lib/cache/createAutoMovieHttpArtifactStore.mjs.map +1 -1
  32. package/lib/caption/IAutoMovieBeatCaption.d.ts +1 -22
  33. package/lib/caption/beatCaptions.d.ts +1 -2
  34. package/lib/caption/beatCaptions.js.map +1 -1
  35. package/lib/caption/beatCaptions.mjs.map +1 -1
  36. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.d.ts +1 -12
  37. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js.map +1 -1
  38. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.mjs.map +1 -1
  39. package/lib/caption/parseAutoMovieCaptionLanguage.d.ts +1 -14
  40. package/lib/caption/parseAutoMovieCaptionLanguage.js.map +1 -1
  41. package/lib/caption/parseAutoMovieCaptionLanguage.mjs.map +1 -1
  42. package/lib/capture/AutoMovieCaptureFolder.d.ts +3 -13
  43. package/lib/capture/AutoMovieCaptureFolder.js.map +1 -1
  44. package/lib/capture/AutoMovieCaptureFolder.mjs.map +1 -1
  45. package/lib/capture/IAutoMovieCaptureBudget.d.ts +1 -24
  46. package/lib/capture/IAutoMovieCaptureCell.d.ts +1 -33
  47. package/lib/capture/IAutoMovieCaptureComparison.d.ts +1 -75
  48. package/lib/capture/IAutoMovieCaptureDrawing.d.ts +1 -56
  49. package/lib/capture/IAutoMovieCaptureLayout.d.ts +1 -47
  50. package/lib/capture/IAutoMovieCapturePlan.d.ts +1 -30
  51. package/lib/capture/IAutoMovieCapturePlanRequest.d.ts +1 -97
  52. package/lib/capture/IAutoMovieCaptureRecord.d.ts +1 -134
  53. package/lib/capture/IAutoMovieCaptureRequestSource.d.ts +1 -36
  54. package/lib/capture/IAutoMovieCaptureResolution.d.ts +1 -20
  55. package/lib/capture/IAutoMovieCaptureSelection.d.ts +1 -23
  56. package/lib/capture/IAutoMovieCaptureStorage.d.ts +1 -76
  57. package/lib/capture/IAutoMovieCaptureSubject.d.ts +1 -81
  58. package/lib/capture/IAutoMovieCaptureTime.d.ts +1 -16
  59. package/lib/capture/IAutoMovieCaptureWindow.d.ts +1 -24
  60. package/lib/capture/compareAutoMovieCaptureRounds.d.ts +2 -23
  61. package/lib/capture/compareAutoMovieCaptureRounds.js.map +1 -1
  62. package/lib/capture/compareAutoMovieCaptureRounds.mjs.map +1 -1
  63. package/lib/capture/formatAutoMovieCapturePlanRequest.d.ts +1 -1
  64. package/lib/capture/formatAutoMovieCapturePlanRequest.js.map +1 -1
  65. package/lib/capture/formatAutoMovieCapturePlanRequest.mjs.map +1 -1
  66. package/lib/capture/markAutoMovieCaptureCell.d.ts +1 -1
  67. package/lib/capture/markAutoMovieCaptureCell.mjs.map +1 -1
  68. package/lib/capture/parseAutoMovieCapturePlanRequest.d.ts +1 -2
  69. package/lib/capture/parseAutoMovieCapturePlanRequest.js.map +1 -1
  70. package/lib/capture/parseAutoMovieCapturePlanRequest.mjs.map +1 -1
  71. package/lib/capture/planAutoMovieCapture.d.ts +2 -11
  72. package/lib/capture/planAutoMovieCapture.js.map +1 -1
  73. package/lib/capture/planAutoMovieCapture.mjs.map +1 -1
  74. package/lib/capture/planAutoMovieCaptureFrames.d.ts +2 -22
  75. package/lib/capture/planAutoMovieCaptureFrames.js.map +1 -1
  76. package/lib/capture/planAutoMovieCaptureFrames.mjs.map +1 -1
  77. package/lib/capture/planAutoMovieCaptureLayout.d.ts +2 -16
  78. package/lib/capture/planAutoMovieCaptureLayout.js.map +1 -1
  79. package/lib/capture/planAutoMovieCaptureLayout.mjs.map +1 -1
  80. package/lib/capture/planAutoMovieVideoFrames.d.ts +2 -8
  81. package/lib/capture/planAutoMovieVideoFrames.js.map +1 -1
  82. package/lib/capture/planAutoMovieVideoFrames.mjs.map +1 -1
  83. package/lib/capture/planAutoMovieVideoSceneCuts.d.ts +2 -8
  84. package/lib/capture/planAutoMovieVideoSceneCuts.js.map +1 -1
  85. package/lib/capture/planAutoMovieVideoSceneCuts.mjs.map +1 -1
  86. package/lib/capture/readAutoMovieVideoSceneCuts.d.ts +2 -6
  87. package/lib/capture/readAutoMovieVideoSceneCuts.js.map +1 -1
  88. package/lib/capture/readAutoMovieVideoSceneCuts.mjs.map +1 -1
  89. package/lib/capture/resolveAutoMovieCapturePatterns.d.ts +2 -10
  90. package/lib/capture/resolveAutoMovieCapturePatterns.js.map +1 -1
  91. package/lib/capture/resolveAutoMovieCapturePatterns.mjs.map +1 -1
  92. package/lib/capture/runAutoMovieCapture.d.ts +2 -21
  93. package/lib/capture/runAutoMovieCapture.js.map +1 -1
  94. package/lib/capture/runAutoMovieCapture.mjs.map +1 -1
  95. package/lib/capture/runAutoMovieVideoCapture.d.ts +2 -20
  96. package/lib/capture/runAutoMovieVideoCapture.js.map +1 -1
  97. package/lib/capture/runAutoMovieVideoCapture.mjs.map +1 -1
  98. package/lib/capture/scaleAutoMovieCaptureLabels.d.ts +2 -5
  99. package/lib/capture/scaleAutoMovieCaptureLabels.js.map +1 -1
  100. package/lib/capture/scaleAutoMovieCaptureLabels.mjs.map +1 -1
  101. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.d.ts +2 -6
  102. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js.map +1 -1
  103. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.mjs.map +1 -1
  104. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.d.ts +2 -14
  105. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js.map +1 -1
  106. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.mjs.map +1 -1
  107. package/lib/delivery/AutoMovieProductionPngRole.d.ts +1 -14
  108. package/lib/delivery/IAutoMovieProductionPngProfile.d.ts +1 -41
  109. package/lib/delivery/IAutoMovieProductionVideoProfile.d.ts +1 -46
  110. package/lib/delivery/assertAutoMovieCaptureClock.d.ts +2 -9
  111. package/lib/delivery/assertAutoMovieCaptureClock.js.map +1 -1
  112. package/lib/delivery/assertAutoMovieCaptureClock.mjs.map +1 -1
  113. package/lib/delivery/assertProductionPngPicture.d.ts +2 -6
  114. package/lib/delivery/assertProductionPngPicture.js.map +1 -1
  115. package/lib/delivery/assertProductionPngPicture.mjs.map +1 -1
  116. package/lib/delivery/assertProductionVideoProfile.d.ts +2 -6
  117. package/lib/delivery/assertProductionVideoProfile.js.map +1 -1
  118. package/lib/delivery/assertProductionVideoProfile.mjs.map +1 -1
  119. package/lib/delivery/auditAutoMovieDecodedFrames.d.ts +2 -35
  120. package/lib/delivery/auditAutoMovieDecodedFrames.js.map +1 -1
  121. package/lib/delivery/auditAutoMovieDecodedFrames.mjs.map +1 -1
  122. package/lib/delivery/auditAutoMovieEncodedPresentation.d.ts +2 -8
  123. package/lib/delivery/auditAutoMovieEncodedPresentation.js.map +1 -1
  124. package/lib/delivery/auditAutoMovieEncodedPresentation.mjs.map +1 -1
  125. package/lib/delivery/planAutoMovieVideoEncoding.d.ts +2 -18
  126. package/lib/delivery/planAutoMovieVideoEncoding.js.map +1 -1
  127. package/lib/delivery/planAutoMovieVideoEncoding.mjs.map +1 -1
  128. package/lib/delivery/productionOpusDescription.d.ts +2 -6
  129. package/lib/delivery/productionOpusDescription.js.map +1 -1
  130. package/lib/delivery/productionOpusDescription.mjs.map +1 -1
  131. package/lib/delivery/resolveProductionPngProfile.d.ts +2 -7
  132. package/lib/delivery/resolveProductionPngProfile.js.map +1 -1
  133. package/lib/delivery/resolveProductionPngProfile.mjs.map +1 -1
  134. package/lib/delivery/resolveProductionVideoProfile.d.ts +2 -7
  135. package/lib/delivery/resolveProductionVideoProfile.js.map +1 -1
  136. package/lib/delivery/resolveProductionVideoProfile.mjs.map +1 -1
  137. package/lib/draw/AutoMovieDrawSession.d.ts +3 -16
  138. package/lib/draw/AutoMovieDrawSession.js.map +1 -1
  139. package/lib/draw/AutoMovieDrawSession.mjs.map +1 -1
  140. package/lib/draw/IAutoMovieDrawCall.d.ts +1 -27
  141. package/lib/draw/IAutoMovieDrawDescription.d.ts +1 -15
  142. package/lib/draw/IAutoMovieDrawFunction.d.ts +1 -3
  143. package/lib/draw/IAutoMovieDrawResult.d.ts +1 -36
  144. package/lib/draw/IAutoMovieDrawScene.d.ts +9 -2
  145. package/lib/draw/decodeAutoMovieDrawPixels.d.ts +2 -6
  146. package/lib/draw/decodeAutoMovieDrawPixels.js.map +1 -1
  147. package/lib/draw/decodeAutoMovieDrawPixels.mjs.map +1 -1
  148. package/lib/draw/describeAutoMovieDrawScene.d.ts +4 -4
  149. package/lib/draw/describeAutoMovieDrawScene.js +10 -4
  150. package/lib/draw/describeAutoMovieDrawScene.js.map +1 -1
  151. package/lib/draw/describeAutoMovieDrawScene.mjs +8 -4
  152. package/lib/draw/describeAutoMovieDrawScene.mjs.map +1 -1
  153. package/lib/draw/index.d.ts +1 -0
  154. package/lib/draw/index.js +1 -0
  155. package/lib/draw/index.js.map +1 -1
  156. package/lib/draw/index.mjs +2 -1
  157. package/lib/draw/installAutoMovieDraw.d.ts +6 -6
  158. package/lib/draw/installAutoMovieDraw.js +18 -23
  159. package/lib/draw/installAutoMovieDraw.js.map +1 -1
  160. package/lib/draw/installAutoMovieDraw.mjs +16 -23
  161. package/lib/draw/installAutoMovieDraw.mjs.map +1 -1
  162. package/lib/draw/planAutoMovieDrawCall.d.ts +1 -3
  163. package/lib/draw/planAutoMovieDrawCall.js.map +1 -1
  164. package/lib/draw/planAutoMovieDrawCall.mjs.map +1 -1
  165. package/lib/draw/renderAutoMovieDrawnVideo.d.ts +2 -12
  166. package/lib/draw/renderAutoMovieDrawnVideo.js.map +1 -1
  167. package/lib/draw/renderAutoMovieDrawnVideo.mjs.map +1 -1
  168. package/lib/draw/replaceAutoMovieDrawInspection.d.ts +24 -0
  169. package/lib/draw/replaceAutoMovieDrawInspection.js +29 -0
  170. package/lib/draw/replaceAutoMovieDrawInspection.js.map +1 -0
  171. package/lib/draw/replaceAutoMovieDrawInspection.mjs +29 -0
  172. package/lib/draw/replaceAutoMovieDrawInspection.mjs.map +1 -0
  173. package/lib/draw/stampAutoMovieDrawLegend.d.ts +2 -4
  174. package/lib/draw/stampAutoMovieDrawLegend.js.map +1 -1
  175. package/lib/draw/stampAutoMovieDrawLegend.mjs.map +1 -1
  176. package/lib/film/AutoMovieOrderedScalar.d.ts +1 -15
  177. package/lib/film/IAutoMovieProductionAudioAssetIdentity.d.ts +1 -28
  178. package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.d.ts +1 -29
  179. package/lib/film/IAutoMovieProductionEncoderIdentity.d.ts +1 -36
  180. package/lib/film/IAutoMovieProductionRenderChunk.d.ts +1 -39
  181. package/lib/film/IAutoMovieProductionRenderJobPlan.d.ts +1 -53
  182. package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.d.ts +1 -31
  183. package/lib/film/IAutoMovieProductionRenderTier.d.ts +1 -25
  184. package/lib/film/equalOrderedScalars.d.ts +2 -5
  185. package/lib/film/equalOrderedScalars.js.map +1 -1
  186. package/lib/film/equalOrderedScalars.mjs.map +1 -1
  187. package/lib/film/normalizeAudioAssets.d.ts +1 -1
  188. package/lib/film/normalizeAudioAssets.js.map +1 -1
  189. package/lib/film/normalizeAudioAssets.mjs.map +1 -1
  190. package/lib/film/normalizeRenderTier.d.ts +1 -1
  191. package/lib/film/normalizeRenderTier.mjs.map +1 -1
  192. package/lib/film/planProductionRenderJob.d.ts +2 -16
  193. package/lib/film/planProductionRenderJob.js.map +1 -1
  194. package/lib/film/planProductionRenderJob.mjs.map +1 -1
  195. package/lib/film/resolveProductionRenderTierFrameFormat.d.ts +1 -2
  196. package/lib/film/resolveProductionRenderTierFrameFormat.mjs.map +1 -1
  197. package/lib/film/validWaveAudioIdentity.d.ts +1 -1
  198. package/lib/film/validWaveAudioIdentity.mjs.map +1 -1
  199. package/lib/index.mjs +8 -7
  200. package/lib/picture/AutoMovieRasterSheet.d.ts +2 -2
  201. package/lib/picture/AutoMovieRasterSheet.js.map +1 -1
  202. package/lib/picture/AutoMovieRasterSheet.mjs.map +1 -1
  203. package/lib/picture/IAutoMovieRasterComparison.d.ts +1 -33
  204. package/lib/picture/IAutoMovieRasterImage.d.ts +1 -17
  205. package/lib/picture/compareAutoMovieRasters.d.ts +1 -2
  206. package/lib/picture/compareAutoMovieRasters.js.map +1 -1
  207. package/lib/picture/compareAutoMovieRasters.mjs.map +1 -1
  208. package/lib/picture/decodeAutoMovieRasterPng.d.ts +1 -1
  209. package/lib/picture/decodeAutoMovieRasterPng.js.map +1 -1
  210. package/lib/picture/decodeAutoMovieRasterPng.mjs.map +1 -1
  211. package/lib/picture/encodeAutoMovieRasterPng.d.ts +1 -1
  212. package/lib/picture/encodeAutoMovieRasterPng.js.map +1 -1
  213. package/lib/picture/encodeAutoMovieRasterPng.mjs.map +1 -1
  214. package/lib/picture/hashAutoMovieRasterImage.d.ts +1 -1
  215. package/lib/picture/hashAutoMovieRasterImage.mjs.map +1 -1
  216. package/lib/picture/stampAutoMovieRasterLabel.d.ts +2 -5
  217. package/lib/picture/stampAutoMovieRasterLabel.js.map +1 -1
  218. package/lib/picture/stampAutoMovieRasterLabel.mjs.map +1 -1
  219. package/lib/planCaptionSidecar.d.ts +2 -8
  220. package/lib/planCaptionSidecar.js.map +1 -1
  221. package/lib/planCaptionSidecar.mjs.map +1 -1
  222. package/lib/planChunkedSequenceRender.d.ts +2 -9
  223. package/lib/planChunkedSequenceRender.js.map +1 -1
  224. package/lib/planChunkedSequenceRender.mjs.map +1 -1
  225. package/lib/planGuidePassOutputs.d.ts +2 -6
  226. package/lib/planGuidePassOutputs.js.map +1 -1
  227. package/lib/planGuidePassOutputs.mjs.map +1 -1
  228. package/lib/planPoseKeypointSidecar.d.ts +2 -12
  229. package/lib/planPoseKeypointSidecar.js.map +1 -1
  230. package/lib/planPoseKeypointSidecar.mjs.map +1 -1
  231. package/lib/planSequenceRender.d.ts +2 -9
  232. package/lib/planSequenceRender.js.map +1 -1
  233. package/lib/planSequenceRender.mjs.map +1 -1
  234. package/lib/planViewerFrameTimes.d.ts +2 -16
  235. package/lib/planViewerFrameTimes.js.map +1 -1
  236. package/lib/planViewerFrameTimes.mjs.map +1 -1
  237. package/lib/renderAndSee.d.ts +1 -2
  238. package/lib/renderAndSee.js.map +1 -1
  239. package/lib/renderAndSee.mjs.map +1 -1
  240. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.d.ts +1 -41
  241. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.d.ts +1 -53
  242. package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.d.ts +1 -27
  243. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.d.ts +2 -13
  244. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js.map +1 -1
  245. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.mjs.map +1 -1
  246. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.d.ts +2 -8
  247. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js.map +1 -1
  248. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.mjs.map +1 -1
  249. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.d.ts +1 -1
  250. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js.map +1 -1
  251. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.mjs.map +1 -1
  252. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.d.ts +1 -2
  253. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js.map +1 -1
  254. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.mjs.map +1 -1
  255. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.d.ts +2 -8
  256. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js.map +1 -1
  257. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.mjs.map +1 -1
  258. package/lib/renderCaptionSidecar.d.ts +1 -1
  259. package/lib/renderCaptionSidecar.mjs.map +1 -1
  260. package/lib/renderPoseKeypointSidecar.d.ts +1 -1
  261. package/lib/renderPoseKeypointSidecar.mjs.map +1 -1
  262. package/lib/renderSequenceAndSee.d.ts +1 -2
  263. package/lib/renderSequenceAndSee.js.map +1 -1
  264. package/lib/renderSequenceAndSee.mjs.map +1 -1
  265. package/lib/renderSequenceVideo.d.ts +1 -3
  266. package/lib/renderSequenceVideo.js.map +1 -1
  267. package/lib/renderSequenceVideo.mjs.map +1 -1
  268. package/lib/renderVideo.d.ts +1 -3
  269. package/lib/renderVideo.js.map +1 -1
  270. package/lib/renderVideo.mjs.map +1 -1
  271. package/lib/scene/AutoMovieFilmBeautyComposition.d.ts +1 -25
  272. package/lib/scene/AutoMoviePlayer.d.ts +1 -2
  273. package/lib/scene/AutoMoviePlayer.js.map +1 -1
  274. package/lib/scene/AutoMoviePlayer.mjs.map +1 -1
  275. package/lib/scene/IApplyAutoMovieSectionPlanesProps.d.ts +1 -1
  276. package/lib/scene/IAutoMovieFilmBeautyLayer.d.ts +1 -12
  277. package/lib/scene/IAutoMovieFormationPoseTake.d.ts +1 -22
  278. package/lib/scene/IAutoMovieFormationViewerObject.d.ts +1 -2
  279. package/lib/scene/IAutoMovieRigLocalTransform.d.ts +1 -15
  280. package/lib/scene/IAutoMovieSpringAxisSettlement.d.ts +2 -2
  281. package/lib/scene/IBakeFormationCycleProps.d.ts +1 -2
  282. package/lib/scene/applyAutoMovieRigLocals.d.ts +1 -2
  283. package/lib/scene/applyAutoMovieRigLocals.js.map +1 -1
  284. package/lib/scene/applyAutoMovieRigLocals.mjs.map +1 -1
  285. package/lib/scene/applyAutoMovieSectionPlanes.mjs.map +1 -1
  286. package/lib/scene/applyFormationCycleCadence.d.ts +1 -1
  287. package/lib/scene/applyFormationCycleCadence.mjs.map +1 -1
  288. package/lib/scene/applyPose.d.ts +1 -2
  289. package/lib/scene/applyPose.js.map +1 -1
  290. package/lib/scene/applyPose.mjs.map +1 -1
  291. package/lib/scene/applyRenderMode.js.map +1 -1
  292. package/lib/scene/applyRenderMode.mjs.map +1 -1
  293. package/lib/scene/applySampledObjectMotion.d.ts +1 -1
  294. package/lib/scene/applySampledObjectMotion.mjs.map +1 -1
  295. package/lib/scene/applySemanticMaskMode.d.ts +1 -1
  296. package/lib/scene/applySemanticMaskMode.js.map +1 -1
  297. package/lib/scene/applySemanticMaskMode.mjs.map +1 -1
  298. package/lib/scene/autoMovieAnalysisRampColor.d.ts +2 -5
  299. package/lib/scene/autoMovieAnalysisRampColor.js.map +1 -1
  300. package/lib/scene/autoMovieAnalysisRampColor.mjs.map +1 -1
  301. package/lib/scene/bakeFormationCycle.d.ts +2 -1
  302. package/lib/scene/bakeFormationCycle.js +3 -2
  303. package/lib/scene/bakeFormationCycle.js.map +1 -1
  304. package/lib/scene/bakeFormationCycle.mjs +3 -2
  305. package/lib/scene/bakeFormationCycle.mjs.map +1 -1
  306. package/lib/scene/buildAutoMovieConstruction.d.ts +2 -5
  307. package/lib/scene/buildAutoMovieConstruction.js.map +1 -1
  308. package/lib/scene/buildAutoMovieConstruction.mjs.map +1 -1
  309. package/lib/scene/buildGeometry.d.ts +1 -1
  310. package/lib/scene/buildGeometry.js.map +1 -1
  311. package/lib/scene/buildGeometry.mjs.map +1 -1
  312. package/lib/scene/buildInstancedEffect.js.map +1 -1
  313. package/lib/scene/buildInstancedEffect.mjs.map +1 -1
  314. package/lib/scene/buildInstancedFormation.js.map +1 -1
  315. package/lib/scene/buildInstancedFormation.mjs.map +1 -1
  316. package/lib/scene/buildSpaceObject.js.map +1 -1
  317. package/lib/scene/buildSpaceObject.mjs.map +1 -1
  318. package/lib/scene/createAutoMoviePhysicalPoseAdapter.d.ts +2 -2
  319. package/lib/scene/createAutoMoviePhysicalPoseAdapter.js.map +1 -1
  320. package/lib/scene/createAutoMoviePhysicalPoseAdapter.mjs.map +1 -1
  321. package/lib/scene/describeFormationTextureSources.d.ts +1 -2
  322. package/lib/scene/describeFormationTextureSources.mjs.map +1 -1
  323. package/lib/scene/formation/index.d.ts +1 -1
  324. package/lib/scene/formationCycleCadence.d.ts +1 -1
  325. package/lib/scene/formationCycleCadence.mjs.map +1 -1
  326. package/lib/scene/human-polygon/AutoMovieHumanPolygon.d.ts +7 -57
  327. package/lib/scene/human-polygon/applyHumanPolygonPose.d.ts +2 -2
  328. package/lib/scene/human-polygon/applyHumanPolygonPose.js.map +1 -1
  329. package/lib/scene/human-polygon/applyHumanPolygonPose.mjs.map +1 -1
  330. package/lib/scene/human-polygon/buildHumanPolygon.d.ts +2 -1
  331. package/lib/scene/human-polygon/buildHumanPolygon.js.map +1 -1
  332. package/lib/scene/human-polygon/buildHumanPolygon.mjs.map +1 -1
  333. package/lib/scene/human-polygon/buildHumanPolygonModule.d.ts +2 -2
  334. package/lib/scene/human-polygon/buildHumanPolygonModule.js.map +1 -1
  335. package/lib/scene/human-polygon/buildHumanPolygonModule.mjs.map +1 -1
  336. package/lib/scene/human-polygon/buildHumanPolygonParts.d.ts +2 -2
  337. package/lib/scene/human-polygon/buildHumanPolygonParts.js.map +1 -1
  338. package/lib/scene/human-polygon/buildHumanPolygonParts.mjs.map +1 -1
  339. package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.d.ts +3 -2
  340. package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.js.map +1 -1
  341. package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.mjs.map +1 -1
  342. package/lib/scene/index.d.ts +1 -1
  343. package/lib/scene/index.js +0 -1
  344. package/lib/scene/index.js.map +1 -1
  345. package/lib/scene/index.mjs +6 -6
  346. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.d.ts +2 -4
  347. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.js.map +1 -1
  348. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.mjs.map +1 -1
  349. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.d.ts +1 -1
  350. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.mjs.map +1 -1
  351. package/lib/scene/inspection/IApplyAutoMovieInspectionProps.d.ts +2 -3
  352. package/lib/scene/inspection/IAutoMovieInspectionCamera.d.ts +1 -29
  353. package/lib/scene/inspection/IAutoMovieInspectionHandle.d.ts +3 -6
  354. package/lib/scene/inspection/IAutoMovieInspectionKind.d.ts +1 -16
  355. package/lib/scene/inspection/IAutoMovieInspectionLabel.d.ts +1 -18
  356. package/lib/scene/inspection/IAutoMovieInspectionLegendEntry.d.ts +1 -22
  357. package/lib/scene/inspection/IAutoMovieInspectionMarkSet.d.ts +1 -1
  358. package/lib/scene/inspection/IAutoMovieInspectionMeasured.d.ts +1 -1
  359. package/lib/scene/inspection/IAutoMovieInspectionRequest.d.ts +1 -99
  360. package/lib/scene/inspection/IAutoMovieInspectionTrail.d.ts +1 -18
  361. package/lib/scene/inspection/IAutoMovieInspectionView.d.ts +1 -80
  362. package/lib/scene/inspection/applyAutoMovieInspection.js.map +1 -1
  363. package/lib/scene/inspection/applyAutoMovieInspection.mjs.map +1 -1
  364. package/lib/scene/inspection/applyAutoMovieInspectionSection.d.ts +1 -1
  365. package/lib/scene/inspection/applyAutoMovieInspectionSection.mjs.map +1 -1
  366. package/lib/scene/inspection/applyAutoMovieInspectionShade.d.ts +2 -2
  367. package/lib/scene/inspection/applyAutoMovieInspectionShade.js.map +1 -1
  368. package/lib/scene/inspection/applyAutoMovieInspectionShade.mjs.map +1 -1
  369. package/lib/scene/inspection/buildAutoMovieInspectionMarks.mjs.map +1 -1
  370. package/lib/scene/inspection/chooseAutoMovieInspectionMarks.d.ts +1 -1
  371. package/lib/scene/inspection/chooseAutoMovieInspectionMarks.mjs.map +1 -1
  372. package/lib/scene/inspection/colorAutoMovieInspectionObjects.d.ts +3 -3
  373. package/lib/scene/inspection/colorAutoMovieInspectionObjects.js.map +1 -1
  374. package/lib/scene/inspection/colorAutoMovieInspectionObjects.mjs.map +1 -1
  375. package/lib/scene/inspection/expandAutoMovieInspectionSweep.d.ts +2 -17
  376. package/lib/scene/inspection/expandAutoMovieInspectionSweep.js.map +1 -1
  377. package/lib/scene/inspection/expandAutoMovieInspectionSweep.mjs.map +1 -1
  378. package/lib/scene/inspection/focusAutoMovieInspection.d.ts +2 -3
  379. package/lib/scene/inspection/focusAutoMovieInspection.js.map +1 -1
  380. package/lib/scene/inspection/focusAutoMovieInspection.mjs.map +1 -1
  381. package/lib/scene/inspection/formatAutoMovieInspectionCameraView.d.ts +1 -1
  382. package/lib/scene/inspection/formatAutoMovieInspectionCameraView.js.map +1 -1
  383. package/lib/scene/inspection/formatAutoMovieInspectionCameraView.mjs.map +1 -1
  384. package/lib/scene/inspection/formatAutoMovieInspectionRequest.d.ts +1 -1
  385. package/lib/scene/inspection/formatAutoMovieInspectionRequest.js.map +1 -1
  386. package/lib/scene/inspection/formatAutoMovieInspectionRequest.mjs.map +1 -1
  387. package/lib/scene/inspection/formatAutoMovieInspectionView.d.ts +1 -1
  388. package/lib/scene/inspection/formatAutoMovieInspectionView.js.map +1 -1
  389. package/lib/scene/inspection/formatAutoMovieInspectionView.mjs.map +1 -1
  390. package/lib/scene/inspection/legendAutoMovieInspectionMarks.d.ts +2 -6
  391. package/lib/scene/inspection/legendAutoMovieInspectionMarks.js.map +1 -1
  392. package/lib/scene/inspection/legendAutoMovieInspectionMarks.mjs.map +1 -1
  393. package/lib/scene/inspection/listAutoMovieInspectionKinds.d.ts +2 -9
  394. package/lib/scene/inspection/listAutoMovieInspectionKinds.js.map +1 -1
  395. package/lib/scene/inspection/listAutoMovieInspectionKinds.mjs.map +1 -1
  396. package/lib/scene/inspection/markAutoMovieInspectionTrails.d.ts +1 -2
  397. package/lib/scene/inspection/markAutoMovieInspectionTrails.js.map +1 -1
  398. package/lib/scene/inspection/markAutoMovieInspectionTrails.mjs.map +1 -1
  399. package/lib/scene/inspection/measureAutoMovieInspectionDefects.d.ts +1 -1
  400. package/lib/scene/inspection/measureAutoMovieInspectionDefects.js.map +1 -1
  401. package/lib/scene/inspection/measureAutoMovieInspectionDefects.mjs.map +1 -1
  402. package/lib/scene/inspection/measureAutoMovieInspectionEdges.mjs.map +1 -1
  403. package/lib/scene/inspection/measureAutoMovieInspectionMeshes.d.ts +1 -1
  404. package/lib/scene/inspection/measureAutoMovieInspectionMeshes.mjs.map +1 -1
  405. package/lib/scene/inspection/measureAutoMovieInspectionPaths.d.ts +2 -7
  406. package/lib/scene/inspection/measureAutoMovieInspectionPaths.js.map +1 -1
  407. package/lib/scene/inspection/measureAutoMovieInspectionPaths.mjs.map +1 -1
  408. package/lib/scene/inspection/mergeAutoMovieInspectionLegends.d.ts +1 -1
  409. package/lib/scene/inspection/mergeAutoMovieInspectionLegends.mjs.map +1 -1
  410. package/lib/scene/inspection/parseAutoMovieInspectionRequest.d.ts +1 -1
  411. package/lib/scene/inspection/parseAutoMovieInspectionRequest.js.map +1 -1
  412. package/lib/scene/inspection/parseAutoMovieInspectionRequest.mjs.map +1 -1
  413. package/lib/scene/inspection/parseAutoMovieInspectionView.d.ts +1 -1
  414. package/lib/scene/inspection/parseAutoMovieInspectionView.js.map +1 -1
  415. package/lib/scene/inspection/parseAutoMovieInspectionView.mjs.map +1 -1
  416. package/lib/scene/inspection/placeAutoMovieInspectionLabels.d.ts +2 -6
  417. package/lib/scene/inspection/placeAutoMovieInspectionLabels.js.map +1 -1
  418. package/lib/scene/inspection/placeAutoMovieInspectionLabels.mjs.map +1 -1
  419. package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.d.ts +2 -9
  420. package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.js.map +1 -1
  421. package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.mjs.map +1 -1
  422. package/lib/scene/inspection/resolveAutoMovieInspectionColors.d.ts +2 -18
  423. package/lib/scene/inspection/resolveAutoMovieInspectionColors.js.map +1 -1
  424. package/lib/scene/inspection/resolveAutoMovieInspectionColors.mjs.map +1 -1
  425. package/lib/scene/inspection/resolveAutoMovieInspectionView.d.ts +1 -2
  426. package/lib/scene/inspection/resolveAutoMovieInspectionView.js.map +1 -1
  427. package/lib/scene/inspection/resolveAutoMovieInspectionView.mjs.map +1 -1
  428. package/lib/scene/inspection/sampleAutoMovieInspectionTrails.d.ts +1 -1
  429. package/lib/scene/inspection/sampleAutoMovieInspectionTrails.js.map +1 -1
  430. package/lib/scene/inspection/sampleAutoMovieInspectionTrails.mjs.map +1 -1
  431. package/lib/scene/matchesAutoMovieShadowTextureProfile.d.ts +1 -1
  432. package/lib/scene/matchesAutoMovieShadowTextureProfile.mjs.map +1 -1
  433. package/lib/scene/observeAutoMovieRendererFrame.d.ts +2 -5
  434. package/lib/scene/observeAutoMovieRendererFrame.js.map +1 -1
  435. package/lib/scene/observeAutoMovieRendererFrame.mjs.map +1 -1
  436. package/lib/scene/planAutoMovieShadowTextureTarget.d.ts +1 -1
  437. package/lib/scene/planAutoMovieShadowTextureTarget.mjs.map +1 -1
  438. package/lib/scene/readAutoMovieFilmDisplayTextureResidency.d.ts +2 -6
  439. package/lib/scene/readAutoMovieFilmDisplayTextureResidency.js.map +1 -1
  440. package/lib/scene/readAutoMovieFilmDisplayTextureResidency.mjs.map +1 -1
  441. package/lib/scene/readAutoMovieMaterialTextureSources.d.ts +3 -5
  442. package/lib/scene/readAutoMovieMaterialTextureSources.js.map +1 -1
  443. package/lib/scene/readAutoMovieMaterialTextureSources.mjs.map +1 -1
  444. package/lib/scene/readAutoMovieRenderTextureTarget.d.ts +1 -1
  445. package/lib/scene/readAutoMovieRenderTextureTarget.mjs.map +1 -1
  446. package/lib/scene/readAutoMovieShadowTextureTargets.d.ts +1 -2
  447. package/lib/scene/readAutoMovieShadowTextureTargets.js.map +1 -1
  448. package/lib/scene/readAutoMovieShadowTextureTargets.mjs.map +1 -1
  449. package/lib/scene/readAutoMovieTextureSource.d.ts +1 -1
  450. package/lib/scene/readAutoMovieTextureSource.js.map +1 -1
  451. package/lib/scene/readAutoMovieTextureSource.mjs.map +1 -1
  452. package/lib/scene/readAutoMovieTransmissionTextureTarget.d.ts +1 -1
  453. package/lib/scene/readAutoMovieTransmissionTextureTarget.mjs.map +1 -1
  454. package/lib/scene/resolveAutoMovieFilmBeautyComposition.d.ts +2 -3
  455. package/lib/scene/resolveAutoMovieFilmBeautyComposition.js.map +1 -1
  456. package/lib/scene/resolveAutoMovieFilmBeautyComposition.mjs.map +1 -1
  457. package/lib/scene/semanticMask/IAutoMovieSemanticMaskBinding.d.ts +1 -19
  458. package/lib/scene/semanticMask/attachAutoMovieSemanticMask.d.ts +1 -1
  459. package/lib/scene/semanticMask/attachAutoMovieSemanticMask.mjs.map +1 -1
  460. package/lib/scene/semanticMask/autoMovieSemanticMaskOf.d.ts +1 -1
  461. package/lib/scene/semanticMask/autoMovieSemanticMaskOf.mjs.map +1 -1
  462. package/lib/sliceCaptionSidecar.d.ts +1 -1
  463. package/lib/sliceCaptionSidecar.mjs.map +1 -1
  464. package/package.json +7 -7
  465. package/src/IAutoMovieCaptionEntry.ts +1 -32
  466. package/src/IAutoMovieCaptionSidecar.ts +1 -29
  467. package/src/IAutoMovieCapturedFrame.ts +1 -24
  468. package/src/IAutoMovieGuidePassOutput.ts +1 -27
  469. package/src/IAutoMoviePoseKeypointActor.ts +1 -39
  470. package/src/IAutoMoviePoseKeypointFrame.ts +1 -28
  471. package/src/IAutoMoviePoseKeypointSidecar.ts +1 -25
  472. package/src/IAutoMovieRenderAdapters.ts +1 -39
  473. package/src/IAutoMovieRenderAndSeeRequest.ts +1 -38
  474. package/src/IAutoMovieRenderAndSeeResult.ts +1 -23
  475. package/src/IAutoMovieRenderChunk.ts +1 -62
  476. package/src/IAutoMovieRenderChunkPlan.ts +1 -40
  477. package/src/IAutoMovieRenderPassManifest.ts +1 -25
  478. package/src/IAutoMovieRenderReassembly.ts +1 -28
  479. package/src/IAutoMovieRenderResult.ts +1 -46
  480. package/src/IAutoMovieSequenceRenderAdapters.ts +1 -41
  481. package/src/IAutoMovieSequenceRenderAndSeeRequest.ts +1 -47
  482. package/src/IAutoMovieSequenceRenderAndSeeResult.ts +1 -23
  483. package/src/IAutoMovieSequenceRenderFrame.ts +1 -48
  484. package/src/IAutoMovieSequenceRenderPlan.ts +1 -88
  485. package/src/IAutoMovieSequenceRenderResult.ts +1 -52
  486. package/src/IAutoMovieSequenceRenderShotSpan.ts +1 -46
  487. package/src/IAutoMovieSequenceRenderTransitionSpan.ts +1 -46
  488. package/src/audio/mixAutoMovieAudioPcm.ts +10 -44
  489. package/src/auditAutoMovieRenderObservation.ts +5 -14
  490. package/src/cache/createAutoMovieHttpArtifactStore.ts +1 -1
  491. package/src/caption/IAutoMovieBeatCaption.ts +1 -23
  492. package/src/caption/beatCaptions.ts +1 -1
  493. package/src/caption/inspectAutoMovieCaptionReadabilityWithRuntime.ts +1 -12
  494. package/src/caption/parseAutoMovieCaptionLanguage.ts +1 -13
  495. package/src/capture/AutoMovieCaptureFolder.ts +10 -16
  496. package/src/capture/IAutoMovieCaptureBudget.ts +1 -26
  497. package/src/capture/IAutoMovieCaptureCell.ts +1 -42
  498. package/src/capture/IAutoMovieCaptureComparison.ts +1 -96
  499. package/src/capture/IAutoMovieCaptureDrawing.ts +1 -64
  500. package/src/capture/IAutoMovieCaptureLayout.ts +1 -51
  501. package/src/capture/IAutoMovieCapturePlan.ts +1 -36
  502. package/src/capture/IAutoMovieCapturePlanRequest.ts +1 -117
  503. package/src/capture/IAutoMovieCaptureRecord.ts +1 -174
  504. package/src/capture/IAutoMovieCaptureRequestSource.ts +1 -37
  505. package/src/capture/IAutoMovieCaptureResolution.ts +1 -23
  506. package/src/capture/IAutoMovieCaptureSelection.ts +1 -28
  507. package/src/capture/IAutoMovieCaptureStorage.ts +1 -76
  508. package/src/capture/IAutoMovieCaptureSubject.ts +1 -94
  509. package/src/capture/IAutoMovieCaptureTime.ts +1 -17
  510. package/src/capture/IAutoMovieCaptureWindow.ts +1 -29
  511. package/src/capture/compareAutoMovieCaptureRounds.ts +33 -48
  512. package/src/capture/formatAutoMovieCapturePlanRequest.ts +7 -3
  513. package/src/capture/markAutoMovieCaptureCell.ts +1 -1
  514. package/src/capture/parseAutoMovieCapturePlanRequest.ts +13 -10
  515. package/src/capture/planAutoMovieCapture.ts +20 -21
  516. package/src/capture/planAutoMovieCaptureFrames.ts +9 -28
  517. package/src/capture/planAutoMovieCaptureLayout.ts +8 -21
  518. package/src/capture/planAutoMovieVideoFrames.ts +5 -10
  519. package/src/capture/planAutoMovieVideoSceneCuts.ts +5 -10
  520. package/src/capture/readAutoMovieVideoSceneCuts.ts +5 -7
  521. package/src/capture/resolveAutoMovieCapturePatterns.ts +11 -14
  522. package/src/capture/runAutoMovieCapture.ts +19 -33
  523. package/src/capture/runAutoMovieVideoCapture.ts +13 -32
  524. package/src/capture/scaleAutoMovieCaptureLabels.ts +5 -2
  525. package/src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts +5 -6
  526. package/src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts +17 -27
  527. package/src/delivery/AutoMovieProductionPngRole.ts +1 -18
  528. package/src/delivery/IAutoMovieProductionPngProfile.ts +1 -52
  529. package/src/delivery/IAutoMovieProductionVideoProfile.ts +1 -48
  530. package/src/delivery/assertAutoMovieCaptureClock.ts +7 -7
  531. package/src/delivery/assertProductionPngPicture.ts +8 -13
  532. package/src/delivery/assertProductionVideoProfile.ts +5 -12
  533. package/src/delivery/auditAutoMovieDecodedFrames.ts +17 -56
  534. package/src/delivery/auditAutoMovieEncodedPresentation.ts +3 -8
  535. package/src/delivery/planAutoMovieVideoEncoding.ts +8 -23
  536. package/src/delivery/productionOpusDescription.ts +9 -15
  537. package/src/delivery/resolveProductionPngProfile.ts +9 -17
  538. package/src/delivery/resolveProductionVideoProfile.ts +9 -16
  539. package/src/draw/AutoMovieDrawSession.ts +19 -18
  540. package/src/draw/IAutoMovieDrawCall.ts +1 -34
  541. package/src/draw/IAutoMovieDrawDescription.ts +1 -17
  542. package/src/draw/IAutoMovieDrawFunction.ts +5 -3
  543. package/src/draw/IAutoMovieDrawResult.ts +1 -45
  544. package/src/draw/IAutoMovieDrawScene.ts +10 -2
  545. package/src/draw/decodeAutoMovieDrawPixels.ts +5 -3
  546. package/src/draw/describeAutoMovieDrawScene.ts +18 -11
  547. package/src/draw/index.ts +1 -0
  548. package/src/draw/installAutoMovieDraw.ts +43 -45
  549. package/src/draw/planAutoMovieDrawCall.ts +8 -5
  550. package/src/draw/renderAutoMovieDrawnVideo.ts +6 -9
  551. package/src/draw/replaceAutoMovieDrawInspection.ts +36 -0
  552. package/src/draw/stampAutoMovieDrawLegend.ts +7 -5
  553. package/src/film/AutoMovieOrderedScalar.ts +1 -15
  554. package/src/film/IAutoMovieProductionAudioAssetIdentity.ts +1 -40
  555. package/src/film/IAutoMovieProductionAudioAssetIdentityBase.ts +1 -34
  556. package/src/film/IAutoMovieProductionEncoderIdentity.ts +1 -42
  557. package/src/film/IAutoMovieProductionRenderChunk.ts +1 -47
  558. package/src/film/IAutoMovieProductionRenderJobPlan.ts +1 -73
  559. package/src/film/IAutoMovieProductionRenderRuntimeIdentity.ts +1 -37
  560. package/src/film/IAutoMovieProductionRenderTier.ts +1 -27
  561. package/src/film/equalOrderedScalars.ts +10 -10
  562. package/src/film/normalizeAudioAssets.ts +4 -2
  563. package/src/film/normalizeRenderTier.ts +1 -1
  564. package/src/film/planProductionRenderJob.ts +11 -48
  565. package/src/film/resolveProductionRenderTierFrameFormat.ts +1 -1
  566. package/src/film/validWaveAudioIdentity.ts +3 -3
  567. package/src/picture/AutoMovieRasterSheet.ts +7 -3
  568. package/src/picture/IAutoMovieRasterComparison.ts +1 -33
  569. package/src/picture/IAutoMovieRasterImage.ts +1 -19
  570. package/src/picture/compareAutoMovieRasters.ts +4 -2
  571. package/src/picture/decodeAutoMovieRasterPng.ts +2 -1
  572. package/src/picture/encodeAutoMovieRasterPng.ts +2 -1
  573. package/src/picture/hashAutoMovieRasterImage.ts +1 -1
  574. package/src/picture/stampAutoMovieRasterLabel.ts +5 -2
  575. package/src/planCaptionSidecar.ts +11 -30
  576. package/src/planChunkedSequenceRender.ts +15 -26
  577. package/src/planGuidePassOutputs.ts +10 -16
  578. package/src/planPoseKeypointSidecar.ts +11 -40
  579. package/src/planSequenceRender.ts +11 -32
  580. package/src/planViewerFrameTimes.ts +5 -22
  581. package/src/renderAndSee.ts +5 -2
  582. package/src/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.ts +1 -53
  583. package/src/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.ts +1 -61
  584. package/src/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.ts +1 -29
  585. package/src/renderBudgetPreflight/assessAutoMovieRenderBudget.ts +9 -37
  586. package/src/renderBudgetPreflight/autoMovieRenderBudgetEvidence.ts +11 -15
  587. package/src/renderBudgetPreflight/autoMovieRenderBudgetRefusal.ts +2 -3
  588. package/src/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.ts +4 -3
  589. package/src/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.ts +7 -19
  590. package/src/renderCaptionSidecar.ts +1 -1
  591. package/src/renderPoseKeypointSidecar.ts +1 -1
  592. package/src/renderSequenceAndSee.ts +5 -2
  593. package/src/renderSequenceVideo.ts +6 -4
  594. package/src/renderVideo.ts +5 -3
  595. package/src/scene/AutoMovieFilmBeautyComposition.ts +1 -24
  596. package/src/scene/AutoMoviePlayer.ts +12 -12
  597. package/src/scene/IApplyAutoMovieSectionPlanesProps.ts +1 -1
  598. package/src/scene/IAutoMovieFilmBeautyLayer.ts +1 -12
  599. package/src/scene/IAutoMovieFormationPoseTake.ts +1 -26
  600. package/src/scene/IAutoMovieFormationViewerObject.ts +4 -2
  601. package/src/scene/IAutoMovieRigLocalTransform.ts +1 -16
  602. package/src/scene/IAutoMovieSpringAxisSettlement.ts +2 -2
  603. package/src/scene/IBakeFormationCycleProps.ts +4 -2
  604. package/src/scene/applyAutoMovieRigLocals.ts +4 -2
  605. package/src/scene/applyAutoMovieSectionPlanes.ts +1 -1
  606. package/src/scene/applyFormationCycleCadence.ts +1 -1
  607. package/src/scene/applyPose.ts +2 -5
  608. package/src/scene/applyRenderMode.ts +5 -5
  609. package/src/scene/applySampledObjectMotion.ts +1 -1
  610. package/src/scene/applySemanticMaskMode.ts +1 -1
  611. package/src/scene/autoMovieAnalysisRampColor.ts +7 -5
  612. package/src/scene/bakeFormationCycle.ts +4 -3
  613. package/src/scene/buildAutoMovieConstruction.ts +2 -5
  614. package/src/scene/buildGeometry.ts +6 -9
  615. package/src/scene/buildInstancedEffect.ts +6 -6
  616. package/src/scene/buildInstancedFormation.ts +3 -3
  617. package/src/scene/buildSpaceObject.ts +7 -3
  618. package/src/scene/createAutoMoviePhysicalPoseAdapter.ts +4 -4
  619. package/src/scene/describeFormationTextureSources.ts +2 -2
  620. package/src/scene/formation/index.ts +1 -1
  621. package/src/scene/formationCycleCadence.ts +1 -1
  622. package/src/scene/human-polygon/AutoMovieHumanPolygon.ts +7 -67
  623. package/src/scene/human-polygon/applyHumanPolygonPose.ts +12 -7
  624. package/src/scene/human-polygon/buildHumanPolygon.ts +23 -12
  625. package/src/scene/human-polygon/buildHumanPolygonModule.ts +6 -3
  626. package/src/scene/human-polygon/buildHumanPolygonParts.ts +10 -6
  627. package/src/scene/human-polygon/createAutoMovieHumanPolygonFigure.ts +10 -3
  628. package/src/scene/index.ts +1 -1
  629. package/src/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.ts +3 -1
  630. package/src/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.ts +1 -1
  631. package/src/scene/inspection/IApplyAutoMovieInspectionProps.ts +5 -3
  632. package/src/scene/inspection/IAutoMovieInspectionCamera.ts +1 -38
  633. package/src/scene/inspection/IAutoMovieInspectionHandle.ts +8 -6
  634. package/src/scene/inspection/IAutoMovieInspectionKind.ts +1 -18
  635. package/src/scene/inspection/IAutoMovieInspectionLabel.ts +1 -21
  636. package/src/scene/inspection/IAutoMovieInspectionLegendEntry.ts +1 -24
  637. package/src/scene/inspection/IAutoMovieInspectionMarkSet.ts +1 -1
  638. package/src/scene/inspection/IAutoMovieInspectionMeasured.ts +1 -1
  639. package/src/scene/inspection/IAutoMovieInspectionRequest.ts +1 -115
  640. package/src/scene/inspection/IAutoMovieInspectionTrail.ts +1 -21
  641. package/src/scene/inspection/IAutoMovieInspectionView.ts +1 -92
  642. package/src/scene/inspection/applyAutoMovieInspection.ts +12 -8
  643. package/src/scene/inspection/applyAutoMovieInspectionSection.ts +1 -1
  644. package/src/scene/inspection/applyAutoMovieInspectionShade.ts +2 -2
  645. package/src/scene/inspection/buildAutoMovieInspectionMarks.ts +1 -1
  646. package/src/scene/inspection/chooseAutoMovieInspectionMarks.ts +1 -1
  647. package/src/scene/inspection/colorAutoMovieInspectionObjects.ts +6 -3
  648. package/src/scene/inspection/expandAutoMovieInspectionSweep.ts +8 -15
  649. package/src/scene/inspection/focusAutoMovieInspection.ts +6 -4
  650. package/src/scene/inspection/formatAutoMovieInspectionCameraView.ts +2 -1
  651. package/src/scene/inspection/formatAutoMovieInspectionRequest.ts +6 -3
  652. package/src/scene/inspection/formatAutoMovieInspectionView.ts +4 -3
  653. package/src/scene/inspection/legendAutoMovieInspectionMarks.ts +6 -3
  654. package/src/scene/inspection/listAutoMovieInspectionKinds.ts +7 -10
  655. package/src/scene/inspection/markAutoMovieInspectionTrails.ts +4 -2
  656. package/src/scene/inspection/measureAutoMovieInspectionDefects.ts +5 -5
  657. package/src/scene/inspection/measureAutoMovieInspectionEdges.ts +1 -1
  658. package/src/scene/inspection/measureAutoMovieInspectionMeshes.ts +1 -1
  659. package/src/scene/inspection/measureAutoMovieInspectionPaths.ts +6 -3
  660. package/src/scene/inspection/mergeAutoMovieInspectionLegends.ts +1 -1
  661. package/src/scene/inspection/parseAutoMovieInspectionRequest.ts +10 -7
  662. package/src/scene/inspection/parseAutoMovieInspectionView.ts +6 -4
  663. package/src/scene/inspection/placeAutoMovieInspectionLabels.ts +6 -7
  664. package/src/scene/inspection/planAutoMovieInspectionTrailTimes.ts +4 -11
  665. package/src/scene/inspection/resolveAutoMovieInspectionColors.ts +7 -11
  666. package/src/scene/inspection/resolveAutoMovieInspectionView.ts +5 -3
  667. package/src/scene/inspection/sampleAutoMovieInspectionTrails.ts +1 -1
  668. package/src/scene/matchesAutoMovieShadowTextureProfile.ts +1 -1
  669. package/src/scene/observeAutoMovieRendererFrame.ts +3 -3
  670. package/src/scene/planAutoMovieShadowTextureTarget.ts +1 -1
  671. package/src/scene/readAutoMovieFilmDisplayTextureResidency.ts +3 -12
  672. package/src/scene/readAutoMovieMaterialTextureSources.ts +5 -3
  673. package/src/scene/readAutoMovieRenderTextureTarget.ts +1 -1
  674. package/src/scene/readAutoMovieShadowTextureTargets.ts +5 -5
  675. package/src/scene/readAutoMovieTextureSource.ts +4 -2
  676. package/src/scene/readAutoMovieTransmissionTextureTarget.ts +1 -1
  677. package/src/scene/resolveAutoMovieFilmBeautyComposition.ts +6 -4
  678. package/src/scene/semanticMask/IAutoMovieSemanticMaskBinding.ts +1 -24
  679. package/src/scene/semanticMask/attachAutoMovieSemanticMask.ts +1 -1
  680. package/src/scene/semanticMask/autoMovieSemanticMaskOf.ts +1 -1
  681. package/src/sliceCaptionSidecar.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"buildHumanPolygon.mjs","names":[],"sources":["../../../src/scene/human-polygon/buildHumanPolygon.ts"],"sourcesContent":["import * as THREE from \"three\";\n\nimport { reportAutoMovieResourceRetirement } from \"../reportAutoMovieResourceRetirement.js\";\nimport type { AutoMovieHumanPolygon } from \"./AutoMovieHumanPolygon.js\";\nimport { applyHumanPolygonPose } from \"./applyHumanPolygonPose.js\";\nimport { buildHumanPolygonModule } from \"./buildHumanPolygonModule.js\";\nimport { buildHumanPolygonParts } from \"./buildHumanPolygonParts.js\";\nimport { createHumanPolygonPalette } from \"./createHumanPolygonPalette.js\";\n\n/**\n * Draw a rigid polygon blockout from the generated skeleton, in metres.\n *\n * Every module is procedural and comes from the skeleton alone: joint\n * positions, tips and skin girth radii, never the Human's skin surfaces, so the\n * polygon figure keeps working however the realistic skin is built. The\n * engine's `resolveAutoMovieHumanoidRingModules` owns the rings and their\n * points, which the physical profile also takes its colliders from. Modules\n * use eight-sided sections at their selected levels. Joint spans set torso,\n * palm and foot breadth; girth radii set thickness; the neck runs from the\n * neck joint to the head joint and the head closes on the head's tip. Each\n * rest-space module is moved once by its bone's world placement. Adjacent rigid modules can overlap\n * or separate when posed; this is not skin binding or a watertight skin.\n *\n * The blockout stays deliberately simple: a fix corrects a wrong value (a\n * radius, a length, a frame) within the same primitives and section count,\n * never adds geometry, smoothing, anatomy or realism, because its job is a\n * cheap, deterministic silhouette for motion checks and diffusion hints.\n *\n * The head attachment uses the head joint's rest axes: +X forward, +Y up and\n * +Z left. Its bounds describe the emitted polygon, before the posed transform.\n * The caller may attach a face to `head.object` in that same local frame.\n *\n * @param output Generated bones and placements.\n * @param options Optional display colours keyed by emitted bone name; unmatched palette entries are unused.\n * @returns Owned surface, actual bone/mesh registries, pose/palette ports, generating sections, head attachment and cleanup. Local probe points use registered rest point minus the corresponding rest joint; actor-root placement belongs to the parent.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Every dimension comes from skeleton joints, tips and girth radii; no skin surface of the realistic Human is read, so a change in how the Human lofts its skin cannot break the blockout.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One section loft draws each rigid module; body-frame placements are consumed once without rebuilding forward kinematics, actual string bone registries expose the same mesh frames, and setPose atomically updates surface and diagnostics.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No fixture dimension or imitated skin enters the drawing; missing joints refuse; rigid shared seams can open when posed.\n * @evidence contracts/development/common.md#meaningful-documentation Documents the LOD, units, head attachment frame, rigid-joint limitations and sticky palette/resource retirement failures.\n * @evidence contracts/development/implementation.md#efficient-algorithms Bone/child/placement maps are built once for B bones. Ring assembly, zipper joining and normal generation follow emitted vertices V and triangles T, with O(B+V+T) construction work/storage.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Parts share the default clay and diagnostic materials; matching RGB overrides share one current material, and sections reuse emitted ring positions.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources A completed palette becomes owned before the previous pool retires. Independent cleanup attempts every remaining resource and detach operation once; retirement failures remain sticky, reject further colour changes and retain bounded uncertain owners without retry.\n */\nexport function buildHumanPolygon(\n output: AutoMovieHumanPolygon.IInput,\n options: {\n /** RGB hex overrides for matching emitted parts; omitted parts retain clay. */\n partColors?: Readonly<Record<string, number>>;\n } = {},\n): AutoMovieHumanPolygon.IDrawing {\n createHumanPolygonPalette.validate(options.partColors);\n const bones: Map<string, AutoMovieHumanPolygon.IBone> = new Map();\n const placements: Map<string, AutoMovieHumanPolygon.IPlacement> = new Map();\n for (const bone of output.bones) {\n if (\n bones.has(bone.bone) ||\n !(bone.radius > 0) ||\n !Number.isFinite(bone.radius) ||\n !bone.position.every(Number.isFinite) ||\n (bone.tip !== null && !bone.tip.every(Number.isFinite))\n )\n throw new Error(`Invalid polygon skeleton bone: ${bone.bone}`);\n bones.set(bone.bone, bone);\n }\n for (const placement of output.posed)\n placements.set(placement.bone, placement);\n\n /**\n * Resolve an original construction joint or refuse its missing identity.\n *\n * Principled implementation: Reads the fixed rest map by exact bone id and throws instead of inventing a joint.\n * Clear and simple design: One lookup serves original shape selection.\n * Prohibited implementation shortcuts: No fallback anatomy or fixture selector is used.\n * Meaningful documentation: States exact identity and missing-joint refusal.\n * Efficient algorithms: Constant map lookup.\n * Reuse equivalent work: Reads the map built once from the supplied rest bones.\n * Bound retention and release resources: Borrows map entries only for synchronous construction.\n */\n const boneAt: (name: string) => AutoMovieHumanPolygon.IBone = (\n name: string,\n ): AutoMovieHumanPolygon.IBone => {\n const bone: AutoMovieHumanPolygon.IBone | undefined = bones.get(name);\n if (bone === undefined)\n throw new Error(`Missing polygon skeleton bone: ${name}`);\n return bone;\n };\n const object: THREE.Group = new THREE.Group();\n object.name = \"human.polygon\";\n const surface: THREE.Group = new THREE.Group();\n surface.name = \"human.polygon.surface\";\n const sections: THREE.Group = new THREE.Group();\n sections.name = \"human.polygon.sections\";\n sections.visible = false;\n object.add(surface, sections);\n const geometries: THREE.BufferGeometry[] = [];\n const groups: Map<string, THREE.Group> = new Map();\n const partMeshes: Map<string, THREE.Mesh> = new Map();\n const bindings: Map<string, readonly THREE.Object3D[]> = new Map();\n const required: string[] = output.bones.map(\n (bone: AutoMovieHumanPolygon.IBone): string => bone.bone,\n );\n\n // Validate the complete original rig, including custom non-emitted joints,\n // before acquiring drawing materials or mutating a displayed graph.\n applyHumanPolygonPose(object, bindings, required, output);\n const material: THREE.MeshStandardMaterial = new THREE.MeshStandardMaterial({\n color: 0xc7b6a3,\n roughness: 0.85,\n flatShading: true,\n });\n const lineMaterial: THREE.LineBasicMaterial = new THREE.LineBasicMaterial({\n color: 0x206b7a,\n depthTest: false,\n });\n const palette: ReturnType<typeof createHumanPolygonPalette> =\n createHumanPolygonPalette(material, partMeshes);\n let disposed: boolean = false;\n let retirementFailure: { error: unknown } | undefined;\n\n /**\n * Guard the existing palette lifetime before replacing display colours.\n *\n * Principled implementation: Refuses a disposed drawing and delegates RGB admission/allocation to the original palette owner.\n * Clear and simple design: The drawing owns the disposal guard and the palette owns materials.\n * Prohibited implementation shortcuts: Palette changes alter no geometry or pose.\n * Meaningful documentation: States lifetime refusal and palette delegation.\n * Efficient algorithms: Constant guard plus the palette's O(P) assignment scan.\n * Reuse equivalent work: Reuses emitted meshes and equal-current-RGB materials.\n * Bound retention and release resources: The palette owns current/uncertain material pools; this guard adds no native resource.\n */\n const setPartColors: (colors?: Readonly<Record<string, number>>) => void = (\n colors?: Readonly<Record<string, number>>,\n ): void => {\n if (disposed) throw new Error(\"Polygon drawing is disposed\");\n palette.setPartColors(colors);\n };\n\n /**\n * Register the original module's actual surface and diagnostic bone frames.\n *\n * Principled implementation: Calls the unchanged module assembler with the selected sections and supplied bind-relative placement, then registers its actual returned objects by exact bone identity.\n * Clear and simple design: One assembly seam connects original geometry to stable public mesh/group registries.\n * Prohibited implementation shortcuts: Registry values are displayed objects rather than collision proxies or reconstructed forms.\n * Meaningful documentation: States actual-object registration and shared diagnostic placement.\n * Efficient algorithms: One map lookup/registration plus the assembler's ring/index work per emitted part.\n * Reuse equivalent work: Reuses borrowed default materials and a single geometry retirement inventory.\n * Bound retention and release resources: Newly emitted buffers transfer to the drawing inventory and registries until terminal disposal.\n */\n const add: (\n bone: AutoMovieHumanPolygon.IBone,\n rings: buildHumanPolygonModule.ISection[],\n axis: THREE.Vector3,\n breadth?: THREE.Vector3,\n topPole?: [number, number, number],\n ) => THREE.Group = (\n bone: AutoMovieHumanPolygon.IBone,\n rings: buildHumanPolygonModule.ISection[],\n axis: THREE.Vector3,\n breadth?: THREE.Vector3,\n topPole?: [number, number, number],\n ): THREE.Group => {\n const placement: AutoMovieHumanPolygon.IPlacement | undefined =\n placements.get(bone.bone);\n if (placement === undefined)\n throw new Error(`Missing polygon placement: ${bone.bone}`);\n const {\n group,\n diagnostic,\n part,\n }: ReturnType<typeof buildHumanPolygonModule> = buildHumanPolygonModule(\n bone,\n rings,\n placement,\n material,\n lineMaterial,\n geometries,\n axis,\n breadth,\n topPole,\n );\n partMeshes.set(bone.bone, part);\n surface.add(group);\n sections.add(diagnostic);\n groups.set(bone.bone, group);\n bindings.set(bone.bone, [group, diagnostic]);\n return group;\n };\n\n /**\n * Preserve original one-attempt resource retirement and sticky failures.\n *\n * Principled implementation: Attempts every owned geometry/material/palette and graph-detach operation through the existing reporter; completed disposal clears registries, and failure is retained/rethrown without retry.\n * Clear and simple design: One terminal drawing owner coordinates palette retirement and actual graph release.\n * Prohibited implementation shortcuts: Separately attached faces/equipment are not silently claimed or disposed.\n * Meaningful documentation: States one-attempt cleanup, failure retention and attached-resource ownership.\n * Efficient algorithms: O(R+P) retirement for R owned buffers/materials and P registered parts; successful repeat is constant.\n * Reuse equivalent work: Repeated disposal returns or rethrows its original terminal result instead of rerunning effectful release.\n * Bound retention and release resources: Clears geometry and registry populations on success; failed retirement preserves the bounded uncertain owners and original cause.\n */\n const dispose: (primary?: { error: unknown }) => void = (primary?: {\n error: unknown;\n }): void => {\n if (retirementFailure !== undefined) throw retirementFailure.error;\n if (disposed) return;\n disposed = true;\n try {\n reportAutoMovieResourceRetirement(\n [\n ...geometries.map(\n (geometry: THREE.BufferGeometry): (() => void) =>\n (): void =>\n geometry.dispose(),\n ),\n (): void => material.dispose(),\n (): void => lineMaterial.dispose(),\n (): void => palette.dispose(),\n (): void => {\n object.removeFromParent();\n },\n (): void => {\n object.clear();\n },\n (): void => partMeshes.clear(),\n (): void => groups.clear(),\n (): void => bindings.clear(),\n ],\n palette.failure ?? primary,\n );\n palette.completeRetirement();\n geometries.length = 0;\n } catch (error: unknown) {\n retirementFailure = { error };\n throw error;\n }\n };\n let headObject: THREE.Group;\n let headMesh: THREE.Mesh;\n let headBox: THREE.Box3;\n try {\n ({ headObject, headMesh, headBox } = buildHumanPolygonParts(\n output,\n boneAt,\n add,\n ));\n // Non-emitted driving joints remain real scene nodes for attachments and\n // world-space inspection, using the same admitted evaluator placements.\n for (const bone of output.bones) {\n if (groups.has(bone.bone)) continue;\n const joint: THREE.Group = new THREE.Group();\n joint.name = bone.bone;\n surface.add(joint);\n groups.set(bone.bone, joint);\n bindings.set(bone.bone, [joint]);\n }\n setPartColors(options.partColors);\n applyHumanPolygonPose(object, bindings, required, output);\n } catch (error: unknown) {\n dispose({ error });\n throw error;\n }\n return {\n object,\n surface,\n sections,\n parts: partMeshes,\n bones: groups,\n bindings,\n setPose: (pose: Pick<AutoMovieHumanPolygon.IInput, \"posed\">): void => {\n if (disposed) throw new Error(\"Polygon drawing is disposed\");\n applyHumanPolygonPose(object, bindings, required, pose);\n },\n setPartColors,\n head: {\n object: headObject,\n min: [headBox.min.x, headBox.min.y, headBox.min.z],\n max: [headBox.max.x, headBox.max.y, headBox.max.z],\n frontAt: (y: number, z: number): number | undefined =>\n buildHumanPolygonModule.frontAt(headMesh.geometry, headBox, y, z),\n },\n dispose,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,SAAgB,kBACd,QACA,UAGI,CAAC,GAC2B;CAChC,0BAA0B,SAAS,QAAQ,UAAU;CACrD,MAAM,wBAAkD,IAAI,IAAI;CAChE,MAAM,6BAA4D,IAAI,IAAI;CAC1E,KAAK,MAAM,QAAQ,OAAO,OAAO;EAC/B,IACE,MAAM,IAAI,KAAK,IAAI,KACnB,EAAE,KAAK,SAAS,MAChB,CAAC,OAAO,SAAS,KAAK,MAAM,KAC5B,CAAC,KAAK,SAAS,MAAM,OAAO,QAAQ,KACnC,KAAK,QAAQ,QAAQ,CAAC,KAAK,IAAI,MAAM,OAAO,QAAQ,GAErD,MAAM,IAAI,MAAM,kCAAkC,KAAK,MAAM;EAC/D,MAAM,IAAI,KAAK,MAAM,IAAI;CAC3B;CACA,KAAK,MAAM,aAAa,OAAO,OAC7B,WAAW,IAAI,UAAU,MAAM,SAAS;;;;;;;;;;;;CAa1C,MAAM,UACJ,SACgC;EAChC,MAAM,OAAgD,MAAM,IAAI,IAAI;EACpE,IAAI,SAAS,KAAA,GACX,MAAM,IAAI,MAAM,kCAAkC,MAAM;EAC1D,OAAO;CACT;CACA,MAAM,SAAsB,IAAI,MAAM,MAAM;CAC5C,OAAO,OAAO;CACd,MAAM,UAAuB,IAAI,MAAM,MAAM;CAC7C,QAAQ,OAAO;CACf,MAAM,WAAwB,IAAI,MAAM,MAAM;CAC9C,SAAS,OAAO;CAChB,SAAS,UAAU;CACnB,OAAO,IAAI,SAAS,QAAQ;CAC5B,MAAM,aAAqC,CAAC;CAC5C,MAAM,yBAAmC,IAAI,IAAI;CACjD,MAAM,6BAAsC,IAAI,IAAI;CACpD,MAAM,2BAAm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AO,MAAM;UACb,SAAS,MAAM;GAC7B,GACA,QAAQ,WAAW,OACrB;GACA,QAAQ,mBAAmB;GAC3B,WAAW,SAAS;EACtB,SAAS,OAAgB;GACvB,oBAAoB,EAAE,MAAM;GAC5B,MAAM;EACR;CACF;CACA,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;EACF,CAAC,CAAE,YAAY,UAAU,WAAY,uBACnC,QACA,QACA,GACF;EAGA,KAAK,MAAM,QAAQ,OAAO,OAAO;GAC/B,IAAI,OAAO,IAAI,KAAK,IAAI,GAAG;GAC3B,MAAM,QAAqB,IAAI,MAAM,MAAM;GAC3C,MAAM,OAAO,KAAK;GAClB,QAAQ,IAAI,KAAK;GACjB,OAAO,IAAI,KAAK,MAAM,KAAK;GAC3B,SAAS,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC;EACjC;EACA,cAAc,QAAQ,UAAU;EAChC,sBAAsB,QAAQ,UAAU,UAAU,MAAM;CAC1D,SAAS,OAAgB;EACvB,QAAQ,EAAE,MAAM,CAAC;EACjB,MAAM;CACR;CACA,OAAO;EACL;EACA;EACA;EACA,OAAO;EACP,OAAO;EACP;EACA,UAAU,SAA4D;GACpE,IAAI,UAAU,MAAM,IAAI,MAAM,6BAA6B;GAC3D,sBAAsB,QAAQ,UAAU,UAAU,IAAI;EACxD;EACA;EACA,MAAM;GACJ,QAAQ;GACR,KAAK;IAAC,QAAQ,IAAI;IAAG,QAAQ,IAAI;IAAG,QAAQ,IAAI;GAAC;GACjD,KAAK;IAAC,QAAQ,IAAI;IAAG,QAAQ,IAAI;IAAG,QAAQ,IAAI;GAAC;GACjD,UAAU,GAAW,MACnB,wBAAwB,QAAQ,SAAS,UAAU,SAAS,GAAG,CAAC;EACpE;EACA;CACF;AACF"}
1
+ {"version":3,"file":"buildHumanPolygon.mjs","names":[],"sources":["../../../src/scene/human-polygon/buildHumanPolygon.ts"],"sourcesContent":["import type {\n IAutoMovieHumanBindBone,\n IAutoMovieHumanBonePlacement,\n IAutoMovieHumanSkeleton,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { reportAutoMovieResourceRetirement } from \"../reportAutoMovieResourceRetirement.js\";\nimport type { AutoMovieHumanPolygon } from \"./AutoMovieHumanPolygon.js\";\nimport { applyHumanPolygonPose } from \"./applyHumanPolygonPose.js\";\nimport { buildHumanPolygonModule } from \"./buildHumanPolygonModule.js\";\nimport { buildHumanPolygonParts } from \"./buildHumanPolygonParts.js\";\nimport { createHumanPolygonPalette } from \"./createHumanPolygonPalette.js\";\n\n/**\n * Draw a rigid polygon blockout from the generated skeleton, in metres.\n *\n * Every module is procedural and comes from the skeleton alone: joint\n * positions, tips and skin girth radii, never the Human's skin surfaces, so the\n * polygon figure keeps working however the realistic skin is built. The\n * engine's `resolveAutoMovieHumanoidRingModules` owns the rings and their\n * points, which the physical profile also takes its colliders from. Modules\n * use eight-sided sections at their selected levels. Joint spans set torso,\n * palm and foot breadth; girth radii set thickness; the neck runs from the\n * neck joint to the head joint and the head closes on the head's tip. Each\n * rest-space module is moved once by its bone's world placement. Adjacent rigid modules can overlap\n * or separate when posed; this is not skin binding or a watertight skin.\n *\n * The blockout stays deliberately simple: a fix corrects a wrong value (a\n * radius, a length, a frame) within the same primitives and section count,\n * never adds geometry, smoothing, anatomy or realism, because its job is a\n * cheap, deterministic silhouette for motion checks and diffusion hints.\n *\n * The head attachment uses the head joint's rest axes: +X forward, +Y up and\n * +Z left. Its bounds describe the emitted polygon, before the posed transform.\n * The caller may attach a face to `head.object` in that same local frame.\n *\n * @param output Generated bones and placements.\n * @param options Optional display colours keyed by emitted bone name; unmatched palette entries are unused.\n * @returns Owned surface, actual bone/mesh registries, pose/palette ports, generating sections, head attachment and cleanup. Local probe points use registered rest point minus the corresponding rest joint; actor-root placement belongs to the parent.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Every dimension comes from skeleton joints, tips and girth radii; no skin surface of the realistic Human is read, so a change in how the Human lofts its skin cannot break the blockout.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One section loft draws each rigid module; body-frame placements are consumed once without rebuilding forward kinematics, actual string bone registries expose the same mesh frames, and setPose atomically updates surface and diagnostics.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No fixture dimension or imitated skin enters the drawing; missing joints refuse; rigid shared seams can open when posed.\n * @evidence contracts/development/common.md#meaningful-documentation Documents the LOD, units, head attachment frame, rigid-joint limitations and sticky palette/resource retirement failures.\n * @evidence contracts/development/implementation.md#efficient-algorithms Bone/child/placement maps are built once for B bones. Ring assembly, zipper joining and normal generation follow emitted vertices V and triangles T, with O(B+V+T) construction work/storage.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Parts share the default clay and diagnostic materials; matching RGB overrides share one current material, and sections reuse emitted ring positions.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources A completed palette becomes owned before the previous pool retires. Independent cleanup attempts every remaining resource and detach operation once; retirement failures remain sticky, reject further colour changes and retain bounded uncertain owners without retry.\n */\nexport function buildHumanPolygon(\n output: Pick<IAutoMovieHumanSkeleton.IOutput, \"bones\" | \"posed\">,\n options: {\n /** RGB hex overrides for matching emitted parts; omitted parts retain clay. */\n partColors?: Readonly<Record<string, number>>;\n } = {},\n): AutoMovieHumanPolygon.IDrawing {\n createHumanPolygonPalette.validate(options.partColors);\n const bones: Map<string, IAutoMovieHumanBindBone> = new Map();\n const placements: Map<string, IAutoMovieHumanBonePlacement> = new Map();\n for (const bone of output.bones) {\n if (\n bones.has(bone.bone) ||\n !(bone.radius > 0) ||\n !Number.isFinite(bone.radius) ||\n !bone.position.every(Number.isFinite) ||\n (bone.tip !== null && !bone.tip.every(Number.isFinite))\n )\n throw new Error(`Invalid polygon skeleton bone: ${bone.bone}`);\n bones.set(bone.bone, bone);\n }\n for (const placement of output.posed)\n placements.set(placement.bone, placement);\n\n /**\n * Resolve an original construction joint or refuse its missing identity.\n *\n * Principled implementation: Reads the fixed rest map by exact bone id and throws instead of inventing a joint.\n * Clear and simple design: One lookup serves original shape selection.\n * Prohibited implementation shortcuts: No fallback anatomy or fixture selector is used.\n * Meaningful documentation: States exact identity and missing-joint refusal.\n * Efficient algorithms: Constant map lookup.\n * Reuse equivalent work: Reads the map built once from the supplied rest bones.\n * Bound retention and release resources: Borrows map entries only for synchronous construction.\n */\n const boneAt: (name: string) => IAutoMovieHumanBindBone = (\n name: string,\n ): IAutoMovieHumanBindBone => {\n const bone: IAutoMovieHumanBindBone | undefined = bones.get(name);\n if (bone === undefined)\n throw new Error(`Missing polygon skeleton bone: ${name}`);\n return bone;\n };\n const object: THREE.Group = new THREE.Group();\n object.name = \"human.polygon\";\n const surface: THREE.Group = new THREE.Group();\n surface.name = \"human.polygon.surface\";\n const sections: THREE.Group = new THREE.Group();\n sections.name = \"human.polygon.sections\";\n sections.visible = false;\n object.add(surface, sections);\n const geometries: THREE.BufferGeometry[] = [];\n const groups: Map<string, THREE.Group> = new Map();\n const partMeshes: Map<string, THREE.Mesh> = new Map();\n const bindings: Map<string, readonly THREE.Object3D[]> = new Map();\n const required: string[] = output.bones.map(\n (bone: IAutoMovieHumanBindBone): string => bone.bone,\n );\n\n // Validate the complete original rig, including custom non-emitted joints,\n // before acquiring drawing materials or mutating a displayed graph.\n applyHumanPolygonPose(object, bindings, required, output);\n const material: THREE.MeshStandardMaterial = new THREE.MeshStandardMaterial({\n color: 0xc7b6a3,\n roughness: 0.85,\n flatShading: true,\n });\n const lineMaterial: THREE.LineBasicMaterial = new THREE.LineBasicMaterial({\n color: 0x206b7a,\n depthTest: false,\n });\n const palette: ReturnType<typeof createHumanPolygonPalette> =\n createHumanPolygonPalette(material, partMeshes);\n let disposed: boolean = false;\n let retirementFailure: { error: unknown } | undefined;\n\n /**\n * Guard the existing palette lifetime before replacing display colours.\n *\n * Principled implementation: Refuses a disposed drawing and delegates RGB admission/allocation to the original palette owner.\n * Clear and simple design: The drawing owns the disposal guard and the palette owns materials.\n * Prohibited implementation shortcuts: Palette changes alter no geometry or pose.\n * Meaningful documentation: States lifetime refusal and palette delegation.\n * Efficient algorithms: Constant guard plus the palette's O(P) assignment scan.\n * Reuse equivalent work: Reuses emitted meshes and equal-current-RGB materials.\n * Bound retention and release resources: The palette owns current/uncertain material pools; this guard adds no native resource.\n */\n const setPartColors: (colors?: Readonly<Record<string, number>>) => void = (\n colors?: Readonly<Record<string, number>>,\n ): void => {\n if (disposed) throw new Error(\"Polygon drawing is disposed\");\n palette.setPartColors(colors);\n };\n\n /**\n * Register the original module's actual surface and diagnostic bone frames.\n *\n * Principled implementation: Calls the unchanged module assembler with the selected sections and supplied bind-relative placement, then registers its actual returned objects by exact bone identity.\n * Clear and simple design: One assembly seam connects original geometry to stable public mesh/group registries.\n * Prohibited implementation shortcuts: Registry values are displayed objects rather than collision proxies or reconstructed forms.\n * Meaningful documentation: States actual-object registration and shared diagnostic placement.\n * Efficient algorithms: One map lookup/registration plus the assembler's ring/index work per emitted part.\n * Reuse equivalent work: Reuses borrowed default materials and a single geometry retirement inventory.\n * Bound retention and release resources: Newly emitted buffers transfer to the drawing inventory and registries until terminal disposal.\n */\n const add: (\n bone: IAutoMovieHumanBindBone,\n rings: buildHumanPolygonModule.ISection[],\n axis: THREE.Vector3,\n breadth?: THREE.Vector3,\n topPole?: [number, number, number],\n ) => THREE.Group = (\n bone: IAutoMovieHumanBindBone,\n rings: buildHumanPolygonModule.ISection[],\n axis: THREE.Vector3,\n breadth?: THREE.Vector3,\n topPole?: [number, number, number],\n ): THREE.Group => {\n const placement: IAutoMovieHumanBonePlacement | undefined = placements.get(\n bone.bone,\n );\n if (placement === undefined)\n throw new Error(`Missing polygon placement: ${bone.bone}`);\n const {\n group,\n diagnostic,\n part,\n }: ReturnType<typeof buildHumanPolygonModule> = buildHumanPolygonModule(\n bone,\n rings,\n placement,\n material,\n lineMaterial,\n geometries,\n axis,\n breadth,\n topPole,\n );\n partMeshes.set(bone.bone, part);\n surface.add(group);\n sections.add(diagnostic);\n groups.set(bone.bone, group);\n bindings.set(bone.bone, [group, diagnostic]);\n return group;\n };\n\n /**\n * Preserve original one-attempt resource retirement and sticky failures.\n *\n * Principled implementation: Attempts every owned geometry/material/palette and graph-detach operation through the existing reporter; completed disposal clears registries, and failure is retained/rethrown without retry.\n * Clear and simple design: One terminal drawing owner coordinates palette retirement and actual graph release.\n * Prohibited implementation shortcuts: Separately attached faces/equipment are not silently claimed or disposed.\n * Meaningful documentation: States one-attempt cleanup, failure retention and attached-resource ownership.\n * Efficient algorithms: O(R+P) retirement for R owned buffers/materials and P registered parts; successful repeat is constant.\n * Reuse equivalent work: Repeated disposal returns or rethrows its original terminal result instead of rerunning effectful release.\n * Bound retention and release resources: Clears geometry and registry populations on success; failed retirement preserves the bounded uncertain owners and original cause.\n */\n const dispose: (primary?: { error: unknown }) => void = (primary?: {\n error: unknown;\n }): void => {\n if (retirementFailure !== undefined) throw retirementFailure.error;\n if (disposed) return;\n disposed = true;\n try {\n reportAutoMovieResourceRetirement(\n [\n ...geometries.map(\n (geometry: THREE.BufferGeometry): (() => void) =>\n (): void =>\n geometry.dispose(),\n ),\n (): void => material.dispose(),\n (): void => lineMaterial.dispose(),\n (): void => palette.dispose(),\n (): void => {\n object.removeFromParent();\n },\n (): void => {\n object.clear();\n },\n (): void => partMeshes.clear(),\n (): void => groups.clear(),\n (): void => bindings.clear(),\n ],\n palette.failure ?? primary,\n );\n palette.completeRetirement();\n geometries.length = 0;\n } catch (error: unknown) {\n retirementFailure = { error };\n throw error;\n }\n };\n let headObject: THREE.Group;\n let headMesh: THREE.Mesh;\n let headBox: THREE.Box3;\n try {\n ({ headObject, headMesh, headBox } = buildHumanPolygonParts(\n output,\n boneAt,\n add,\n ));\n // Non-emitted driving joints remain real scene nodes for attachments and\n // world-space inspection, using the same admitted evaluator placements.\n for (const bone of output.bones) {\n if (groups.has(bone.bone)) continue;\n const joint: THREE.Group = new THREE.Group();\n joint.name = bone.bone;\n surface.add(joint);\n groups.set(bone.bone, joint);\n bindings.set(bone.bone, [joint]);\n }\n setPartColors(options.partColors);\n applyHumanPolygonPose(object, bindings, required, output);\n } catch (error: unknown) {\n dispose({ error });\n throw error;\n }\n return {\n object,\n surface,\n sections,\n parts: partMeshes,\n bones: groups,\n bindings,\n setPose: (\n pose: Pick<\n Pick<IAutoMovieHumanSkeleton.IOutput, \"bones\" | \"posed\">,\n \"posed\"\n >,\n ): void => {\n if (disposed) throw new Error(\"Polygon drawing is disposed\");\n applyHumanPolygonPose(object, bindings, required, pose);\n },\n setPartColors,\n head: {\n object: headObject,\n min: [headBox.min.x, headBox.min.y, headBox.min.z],\n max: [headBox.max.x, headBox.max.y, headBox.max.z],\n frontAt: (y: number, z: number): number | undefined =>\n buildHumanPolygonModule.frontAt(headMesh.geometry, headBox, y, z),\n },\n dispose,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,SAAgB,kBACd,QACA,UAGI,CAAC,GAC2B;CAChC,0BAA0B,SAAS,QAAQ,UAAU;CACrD,MAAM,wBAA8C,IAAI,IAAI;CAC5D,MAAM,6BAAwD,IAAI,IAAI;CACtE,KAAK,MAAM,QAAQ,OAAO,OAAO;EAC/B,IACE,MAAM,IAAI,KAAK,IAAI,KACnB,EAAE,KAAK,SAAS,MAChB,CAAC,OAAO,SAAS,KAAK,MAAM,KAC5B,CAAC,KAAK,SAAS,MAAM,OAAO,QAAQ,KACnC,KAAK,QAAQ,QAAQ,CAAC,KAAK,IAAI,MAAM,OAAO,QAAQ,GAErD,MAAM,IAAI,MAAM,kCAAkC,KAAK,MAAM;EAC/D,MAAM,IAAI,KAAK,MAAM,IAAI;CAC3B;CACA,KAAK,MAAM,aAAa,OAAO,OAC7B,WAAW,IAAI,UAAU,MAAM,SAAS;;;;;;;;;;;;CAa1C,MAAM,UACJ,SAC4B;EAC5B,MAAM,OAA4C,MAAM,IAAI,IAAI;EAChE,IAAI,SAAS,KAAA,GACX,MAAM,IAAI,MAAM,kCAAkC,MAAM;EAC1D,OAAO;CACT;CACA,MAAM,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GAAC;GACjD,KAAK;IAAC,QAAQ,IAAI;IAAG,QAAQ,IAAI;IAAG,QAAQ,IAAI;GAAC;GACjD,UAAU,GAAW,MACnB,wBAAwB,QAAQ,SAAS,UAAU,SAAS,GAAG,CAAC;EACpE;EACA;CACF;AACF"}
@@ -1,5 +1,5 @@
1
+ import type { IAutoMovieHumanBindBone, IAutoMovieHumanBonePlacement } from "@automovie/interface";
1
2
  import * as THREE from "three";
2
- import type { AutoMovieHumanPolygon as Skeleton } from "./AutoMovieHumanPolygon.js";
3
3
  /**
4
4
  * Assemble one rigid display module from its already selected sections.
5
5
  *
@@ -19,7 +19,7 @@ import type { AutoMovieHumanPolygon as Skeleton } from "./AutoMovieHumanPolygon.
19
19
  * @evidence contracts/development/implementation.md#reuse-equivalent-work Diagnostic loops reuse emitted ring positions and existing materials; the caller retains a single cleanup inventory.
20
20
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Every created buffer is registered with the caller's geometry inventory; this assembler creates no cache, material or independent resource lifetime.
21
21
  */
22
- export declare function buildHumanPolygonModule(bone: Skeleton.IBone, rings: buildHumanPolygonModule.ISection[], placement: Skeleton.IPlacement, material: THREE.MeshStandardMaterial, lineMaterial: THREE.LineBasicMaterial, geometries: THREE.BufferGeometry[], axis: THREE.Vector3, breadth?: THREE.Vector3, topPole?: [number, number, number]): {
22
+ export declare function buildHumanPolygonModule(bone: IAutoMovieHumanBindBone, rings: buildHumanPolygonModule.ISection[], placement: IAutoMovieHumanBonePlacement, material: THREE.MeshStandardMaterial, lineMaterial: THREE.LineBasicMaterial, geometries: THREE.BufferGeometry[], axis: THREE.Vector3, breadth?: THREE.Vector3, topPole?: [number, number, number]): {
23
23
  group: THREE.Group;
24
24
  diagnostic: THREE.Group;
25
25
  part: THREE.Mesh;
@@ -1 +1 @@
1
- {"version":3,"file":"buildHumanPolygonModule.js","sourceRoot":"","sources":["../../../src/scene/human-polygon/buildHumanPolygonModule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;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;QAC9B,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YAClD,CAAC,CAAC,mBAAmB,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YAClD,CAAC,CAAC,mBAAmB,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACtD,CAAC,CAAC,mBAAmB,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACtD,IAAI,GAAG,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,IAAI;gBACrD,KAAK,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;QACjE,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IA3Be,wBAAA,OAAO,UA2BtB,CAAA;AACH,CAAC,EAxEgB,uBAAuB,aA1PxB,uBAAuB,GA0PtB,uBAAuB,QAwEvC;AAED,4DAA4D;AAC5D,MAAM,KAAK,GAAW,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildHumanPolygonModule.mjs","names":["LoftMesh"],"sources":["../../../src/scene/human-polygon/buildHumanPolygonModule.ts"],"sourcesContent":["import * as THREE from \"three\";\n\nimport type { AutoMovieHumanPolygon as Skeleton } from \"./AutoMovieHumanPolygon.js\";\nimport { humanPolygonTopology as LoftMesh } from \"./humanPolygonTopology.js\";\n\n/**\n * Assemble one rigid display module from its already selected sections.\n *\n * The caller owns shape selection, shared boundaries, materials and every\n * emitted geometry. This module only emits their local mesh and diagnostics,\n * preserving the existing source sequence, zipper, winding and crown cap.\n * A band between two rings is the side of their convex hull: each ring's\n * edges taken in order of direction, each closed on the other ring's vertex\n * that supports it, so the drawn surface is the one the module's collider\n * hull takes from the same ring points. Its front query intersects those same emitted triangles for face attachment.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Moves registered points into the bone rest frame once and consumes its supplied posed placement once; existing LoftMesh zipper and cap own exterior connectivity.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One module assembly returns the surface target, its matching diagnostic target and the material-bearing mesh without choosing anatomy or a palette.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No new solver, shape authority, source course, sample tuning or placement correction is introduced.\n * @evidence contracts/development/common.md#meaningful-documentation States the caller's section and resource ownership and this module's local-frame assembly responsibility.\n * @evidence contracts/development/implementation.md#efficient-algorithms Assembly follows supplied ring and index populations; front queries scan emitted triangles, and procedural rings retain the existing eight-sided display LOD.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Diagnostic loops reuse emitted ring positions and existing materials; the caller retains a single cleanup inventory.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Every created buffer is registered with the caller's geometry inventory; this assembler creates no cache, material or independent resource lifetime.\n */\nexport function buildHumanPolygonModule(\n bone: Skeleton.IBone,\n rings: buildHumanPolygonModule.ISection[],\n placement: Skeleton.IPlacement,\n material: THREE.MeshStandardMaterial,\n lineMaterial: THREE.LineBasicMaterial,\n geometries: THREE.BufferGeometry[],\n axis: THREE.Vector3,\n breadth?: THREE.Vector3,\n topPole?: [number, number, number],\n): { group: THREE.Group; diagnostic: THREE.Group; part: THREE.Mesh } {\n if (\n !placement.position.every(Number.isFinite) ||\n !placement.rotation.every(Number.isFinite)\n )\n throw new Error(`Missing or invalid polygon placement: ${bone.bone}`);\n const normal: THREE.Vector3 = axis.clone().normalize();\n const u: THREE.Vector3 =\n breadth === undefined\n ? new THREE.Vector3(1, 0, 0)\n : breadth.clone().cross(normal);\n u.addScaledVector(normal, -u.dot(normal));\n if (u.lengthSq() < Number.EPSILON)\n u.set(0, 1, 0).addScaledVector(normal, -normal.y);\n u.normalize();\n const v: THREE.Vector3 = normal.clone().cross(u).normalize();\n const supplied: buildHumanPolygonModule.ISection | undefined = rings.find(\n (ring: buildHumanPolygonModule.ISection): boolean =>\n ring.points !== undefined,\n );\n const sides: number = supplied?.points?.length ?? SIDES;\n let reverse: boolean = false;\n if (supplied?.points !== undefined) {\n const area: THREE.Vector3 = new THREE.Vector3();\n for (let i: number = 0; i < sides; ++i)\n area.add(\n supplied.points[i]!.clone()\n .sub(supplied.centre)\n .cross(\n supplied.points[(i + 1) % sides]!.clone().sub(supplied.centre),\n ),\n );\n reverse = area.dot(normal) < 0;\n\n // Preserve source phase order, including its winding. Reversing the\n // procedural ring's parameterization leaves its polygon shape unchanged.\n if (reverse) v.negate();\n }\n const positions: number[] = [];\n const indices: number[] = [];\n // These helpers only connect indices; registered positions stay in metres.\n const mesh: LoftMesh.IContext = { positions, indices };\n const diagnostic: THREE.Group = new THREE.Group();\n const group: THREE.Group = new THREE.Group();\n group.name = `human.polygon.${bone.bone}`;\n diagnostic.name = `${group.name}.sections`;\n for (const ring of rings) {\n if (\n !(ring.depth > 0 && ring.breadth > 0) ||\n !Number.isFinite(ring.depth + ring.breadth) ||\n !ring.centre.toArray().every(Number.isFinite)\n )\n throw new Error(`Invalid polygon section: ${bone.bone}`);\n const loop: THREE.Vector3[] = [];\n if (ring.points !== undefined && ring.points.length !== sides)\n throw new Error(\n `Polygon sections require the same display point count: ${bone.bone}`,\n );\n for (let i: number = 0; i < sides; ++i) {\n const angle: number = (2 * Math.PI * i) / sides;\n const p: THREE.Vector3 =\n ring.points === undefined\n ? ring.centre\n .clone()\n .addScaledVector(u, Math.cos(angle) * ring.depth)\n .addScaledVector(v, Math.sin(angle) * ring.breadth)\n : ring.points[i]!.clone();\n if (!p.toArray().every(Number.isFinite))\n throw new Error(`Non-finite polygon point: ${bone.bone}`);\n p.sub(new THREE.Vector3(...bone.position));\n positions.push(p.x, p.y, p.z);\n loop.push(p);\n }\n const lines: THREE.BufferGeometry =\n new THREE.BufferGeometry().setFromPoints(loop);\n geometries.push(lines);\n diagnostic.add(new THREE.LineLoop(lines, lineMaterial));\n }\n\n /**\n * Preserve triangle orientation selected from the actual source ring winding.\n *\n * Principled implementation: Appends original triangle indices and reverses their last two slots only when the source-ring area requires it.\n * Clear and simple design: One oriented emitter serves procedural bands and flat end fans.\n * Prohibited implementation shortcuts: No vertex or topology correction is added during promotion.\n * Meaningful documentation: States original source-winding ownership.\n * Efficient algorithms: Three index appends in constant time.\n * Reuse equivalent work: Appends to the existing module index buffer.\n * Bound retention and release resources: Retains no extra records or native resource.\n */\n const triangle: (a: number, b: number, c: number) => void = (\n a: number,\n b: number,\n c: number,\n ): void => {\n indices.push(a, reverse ? c : b, reverse ? b : c);\n };\n for (let layer: number = 0; layer < rings.length - 1; ++layer) {\n const lower: readonly number[] | undefined =\n rings[layer]!.displayCoordinates;\n const upper: readonly number[] | undefined =\n rings[layer + 1]!.displayCoordinates;\n if (lower !== undefined && upper !== undefined) {\n const start: number = indices.length;\n LoftMesh.zipper(\n mesh,\n Array.from(\n { length: sides },\n (_: unknown, i: number): number => layer * sides + i,\n ),\n lower,\n Array.from(\n { length: sides },\n (_: unknown, i: number): number => (layer + 1) * sides + i,\n ),\n upper,\n );\n if (!reverse)\n for (let i: number = start; i < indices.length; i += 3)\n [indices[i + 1], indices[i + 2]] = [indices[i + 2]!, indices[i + 1]!];\n } else {\n // The band is the side of the convex hull of its two rings, which is\n // the collider. The rings are convex, lie in parallel planes and wind\n // the same way, so each side face of their hull is one ring's edge with\n // the other ring's vertex that supports the edge's outward direction:\n // the two rings' edges taken in order of direction. Joining the points\n // of one index instead is the hull only where the rings' edges run\n // parallel; between rings of different proportions such a joining edge\n // cuts inside the hull, by 2 mm across a chest's shoulder ring.\n const direction = (from: number, to: number): number => {\n const edge: THREE.Vector3 = new THREE.Vector3(\n positions[3 * to]! - positions[3 * from]!,\n positions[3 * to + 1]! - positions[3 * from + 1]!,\n positions[3 * to + 2]! - positions[3 * from + 2]!,\n );\n const angle: number = Math.atan2(edge.dot(v), edge.dot(u));\n return angle < 0 ? angle + 2 * Math.PI : angle;\n };\n // Each ring's vertices from the start of its edge of least direction,\n // with the direction of the edge each one starts; at direction zero\n // both rings stand on their first vertex.\n const walk = (ring: number): { vertex: number; angle: number }[] => {\n const edges: { vertex: number; angle: number }[] = Array.from(\n { length: sides },\n (_: unknown, i: number): { vertex: number; angle: number } => ({\n vertex: ring * sides + i,\n angle: direction(\n ring * sides + i,\n ring * sides + ((i + 1) % sides),\n ),\n }),\n );\n const first: number = edges.reduce(\n (best: number, edge: { angle: number }, i: number): number =>\n edge.angle < edges[best]!.angle ? i : best,\n 0,\n );\n return [...edges.slice(first), ...edges.slice(0, first)];\n };\n const lower: { vertex: number; angle: number }[] = walk(layer);\n const upper: { vertex: number; angle: number }[] = walk(layer + 1);\n let i: number = 0;\n let j: number = 0;\n while (i < sides || j < sides) {\n const a: number = lower[i % sides]!.vertex;\n const c: number = upper[j % sides]!.vertex;\n if (j >= sides || (i < sides && lower[i]!.angle <= upper[j]!.angle)) {\n triangle(a, lower[(i + 1) % sides]!.vertex, c);\n i++;\n } else {\n triangle(a, upper[(j + 1) % sides]!.vertex, c);\n j++;\n }\n }\n }\n }\n for (const end of [0, rings.length - 1]) {\n if (end !== 0 && topPole !== undefined) continue;\n const centre: THREE.Vector3 = rings[end]!.centre.clone().sub(\n new THREE.Vector3(...bone.position),\n );\n const k: number = positions.length / 3;\n positions.push(centre.x, centre.y, centre.z);\n for (let i: number = 0; i < sides; ++i) {\n const a: number = end * sides + i;\n const b: number = end * sides + ((i + 1) % sides);\n if (end === 0) triangle(k, b, a);\n else triangle(k, a, b);\n }\n }\n if (topPole !== undefined) {\n const pole: THREE.Vector3 = new THREE.Vector3(...topPole).sub(\n new THREE.Vector3(...bone.position),\n );\n const apex: number = positions.length / 3;\n positions.push(pole.x, pole.y, pole.z);\n const ring: number[] = Array.from(\n { length: sides },\n (_: unknown, i: number): number => (rings.length - 1) * sides + i,\n );\n const start: number = indices.length;\n LoftMesh.cap(mesh, ring, apex, true);\n if (!reverse)\n for (let i: number = start; i < indices.length; i += 3)\n [indices[i + 1], indices[i + 2]] = [indices[i + 2]!, indices[i + 1]!];\n const spokes: THREE.BufferGeometry =\n new THREE.BufferGeometry().setFromPoints(\n ring.flatMap((index: number): THREE.Vector3[] => [\n new THREE.Vector3(...LoftMesh.position(mesh, index)),\n pole,\n ]),\n );\n geometries.push(spokes);\n diagnostic.add(new THREE.LineSegments(spokes, lineMaterial));\n }\n const geometry: THREE.BufferGeometry = new THREE.BufferGeometry();\n geometry.setAttribute(\n \"position\",\n new THREE.Float32BufferAttribute(positions, 3),\n );\n geometry.setIndex(indices);\n geometry.computeVertexNormals();\n geometries.push(geometry);\n const part: THREE.Mesh = new THREE.Mesh(geometry, material);\n group.add(part);\n for (const node of [group, diagnostic]) {\n node.position.set(...placement.position);\n node.quaternion.set(...placement.rotation);\n }\n\n return { group, diagnostic, part };\n}\n\n/** Explicit section inputs shared by the display selector and mesh assembler.\n *\n * @evidence contracts/development/common.md#meaningful-documentation Documents section axes, optional source points and display coordinates, and the query's local units, frontmost selection and missing-hit result.\n * @evidence contracts/development/design.md#principled-representation Represents Explicit section inputs shared by the display selector and mesh assembler: companion namespace of 2 members (`ISection`, `frontAt`); units and frames named in its text: metre, frame, second, local. It has no optional member, so no absent-value state combines with another.\n * @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `buildHumanPolygonModule` in packages/render/src/scene/human-polygon/buildHumanPolygonModule.ts; its surface is the 2 members listed and the text shows 3 other files naming it, mostly packages/render (3), so no member is declared for a presumed future need.\n * @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows.\n */\nexport namespace buildHumanPolygonModule {\n /**\n * One original polygon section, with physical half dimensions.\n *\n * Principled implementation: Carries registered metre centre/half-extents and optional actual points with independent display correspondence.\n * Clear and simple design: One section contract serves original shape selection and mesh assembly.\n * Prohibited implementation shortcuts: Optional source points retain surface authority instead of being replaced by an ellipse.\n * Meaningful documentation: Gives metric centre/half dimensions, point ownership and display-coordinate purpose.\n * Efficient algorithms: This section record performs no computation.\n * Reuse equivalent work: The caller shares section records where original module boundaries coincide.\n * Bound retention and release resources: The construction caller owns these temporary vectors/records.\n */\n export interface ISection {\n /** Centre in the skeleton's registered rest frame. */\n centre: THREE.Vector3;\n\n /** Half dimension along the section's first in-plane axis. */\n depth: number;\n\n /** Half dimension along its second in-plane axis. */\n breadth: number;\n\n /** Actual registered points when a source section owns the shape and phase. */\n points?: THREE.Vector3[];\n\n /** Separate front-anchored projected polygon arclength for display joining. */\n displayCoordinates?: readonly number[];\n }\n\n /**\n * Query the frontmost local triangle X for a face attachment at Y/Z.\n * The caller supplies the emitted indexed triangle geometry and its actual\n * local bounds. A +X ray starts behind those bounds, accepts either winding\n * and selects the greatest hit X. Nonfinite Y+Z or no hit returns undefined.\n * The query borrows the mesh and does not apply its posed placement again.\n *\n * Principled implementation: Intersects the actual indexed triangles double-sided along local +X and returns the greatest hit X; invalid query coordinates and no hit return undefined.\n * Clear and simple design: One actual-surface query serves the original cartoon attachment without another head representation.\n * Prohibited implementation shortcuts: No primitive fit, silhouette fallback or second pose replaces the supplied triangle surface.\n * Meaningful documentation: Documents local frame, ray direction, indexed-geometry premise and undefined results.\n * Efficient algorithms: Scans T emitted triangles once with constant-size vector/ray scratch.\n * Reuse equivalent work: Borrows original buffers and reuses triangle vectors throughout the scan.\n * Bound retention and release resources: All scratch is call-local; the query retains no geometry or native resource.\n */\n export function frontAt(\n geometry: THREE.BufferGeometry,\n bounds: THREE.Box3,\n y: number,\n z: number,\n ): number | undefined {\n if (!Number.isFinite(y + z)) return undefined;\n const ray: THREE.Ray = new THREE.Ray(\n new THREE.Vector3(bounds.min.x - (bounds.max.x - bounds.min.x), y, z),\n new THREE.Vector3(1, 0, 0),\n );\n const positions: THREE.BufferAttribute | THREE.InterleavedBufferAttribute =\n geometry.getAttribute(\"position\");\n const indices: THREE.BufferAttribute = geometry.getIndex()!;\n const a: THREE.Vector3 = new THREE.Vector3();\n const b: THREE.Vector3 = new THREE.Vector3();\n const c: THREE.Vector3 = new THREE.Vector3();\n const hit: THREE.Vector3 = new THREE.Vector3();\n let front: number | undefined;\n for (let i: number = 0; i < indices.count; i += 3) {\n a.fromBufferAttribute(positions, indices.getX(i));\n b.fromBufferAttribute(positions, indices.getX(i + 1));\n c.fromBufferAttribute(positions, indices.getX(i + 2));\n if (ray.intersectTriangle(a, b, c, false, hit) !== null)\n front = front === undefined ? hit.x : Math.max(front, hit.x);\n }\n return front;\n }\n}\n\n/** Explicit polygon LOD, independent of body dimensions. */\nconst SIDES: number = 8;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAwBA,SAAgB,wBACd,MACA,OACA,WACA,UACA,cACA,YACA,MACA,SACA,SACmE;CACnE,IACE,CAAC,UAAU,SAAS,MAAM,OAAO,QAAQ,KACzC,CAAC,UAAU,SAAS,MAAM,OAAO,QAAQ,GAEzC,MAAM,IAAI,MAAM,yCAAyC,KAAK,MAAM;CACtE,MAAM,SAAwB,KAAK,MAAM,CAAC,CAAC,UAAU;CACrD,MAAM,IACJ,YAAY,KAAA,IACR,IAAI,MAAM,QAAQ,GAAG,GAAG,CAAC,IACzB,QAAQ,MAAM,CAAC,CAAC,MAAM,MAAM;CAClC,EAAE,gBAAgB,QAAQ,CAAC,EAAE,IAAI,MAAM,CAAC;CACxC,IAAI,EAAE,SAAS,IAAI,OAAO,SACxB,EAAE,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,gBAAgB,QAAQ,CAAC,OAAO,CAAC;CAClD,EAAE,UAAU;CACZ,MAAM,IAAmB,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU;CAC3D,MAAM,WAAyD,MAAM,MAClE,SACC,KAAK,WAAW,KAAA,C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IAAI,CAAC,CAAC;GACpD,IAAI,IAAI,kBAAkB,GAAG,GAAG,GAAG,OAAO,GAAG,MAAM,MACjD,QAAQ,UAAU,KAAA,IAAY,IAAI,IAAI,KAAK,IAAI,OAAO,IAAI,CAAC;EAC/D;EACA,OAAO;CACT;;AACD,EAAA,CAAA,4BAAA,0BAAA,CAAA,EAAD;;AAGA,MAAM,QAAgB"}
1
+ {"version":3,"file":"buildHumanPolygonModule.mjs","names":["LoftMesh"],"sources":["../../../src/scene/human-polygon/buildHumanPolygonModule.ts"],"sourcesContent":["import type {\n IAutoMovieHumanBindBone,\n IAutoMovieHumanBonePlacement,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { humanPolygonTopology as LoftMesh } from \"./humanPolygonTopology.js\";\n\n/**\n * Assemble one rigid display module from its already selected sections.\n *\n * The caller owns shape selection, shared boundaries, materials and every\n * emitted geometry. This module only emits their local mesh and diagnostics,\n * preserving the existing source sequence, zipper, winding and crown cap.\n * A band between two rings is the side of their convex hull: each ring's\n * edges taken in order of direction, each closed on the other ring's vertex\n * that supports it, so the drawn surface is the one the module's collider\n * hull takes from the same ring points. Its front query intersects those same emitted triangles for face attachment.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Moves registered points into the bone rest frame once and consumes its supplied posed placement once; existing LoftMesh zipper and cap own exterior connectivity.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One module assembly returns the surface target, its matching diagnostic target and the material-bearing mesh without choosing anatomy or a palette.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No new solver, shape authority, source course, sample tuning or placement correction is introduced.\n * @evidence contracts/development/common.md#meaningful-documentation States the caller's section and resource ownership and this module's local-frame assembly responsibility.\n * @evidence contracts/development/implementation.md#efficient-algorithms Assembly follows supplied ring and index populations; front queries scan emitted triangles, and procedural rings retain the existing eight-sided display LOD.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Diagnostic loops reuse emitted ring positions and existing materials; the caller retains a single cleanup inventory.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Every created buffer is registered with the caller's geometry inventory; this assembler creates no cache, material or independent resource lifetime.\n */\nexport function buildHumanPolygonModule(\n bone: IAutoMovieHumanBindBone,\n rings: buildHumanPolygonModule.ISection[],\n placement: IAutoMovieHumanBonePlacement,\n material: THREE.MeshStandardMaterial,\n lineMaterial: THREE.LineBasicMaterial,\n geometries: THREE.BufferGeometry[],\n axis: THREE.Vector3,\n breadth?: THREE.Vector3,\n topPole?: [number, number, number],\n): { group: THREE.Group; diagnostic: THREE.Group; part: THREE.Mesh } {\n if (\n !placement.position.every(Number.isFinite) ||\n !placement.rotation.every(Number.isFinite)\n )\n throw new Error(`Missing or invalid polygon placement: ${bone.bone}`);\n const normal: THREE.Vector3 = axis.clone().normalize();\n const u: THREE.Vector3 =\n breadth === undefined\n ? new THREE.Vector3(1, 0, 0)\n : breadth.clone().cross(normal);\n u.addScaledVector(normal, -u.dot(normal));\n if (u.lengthSq() < Number.EPSILON)\n u.set(0, 1, 0).addScaledVector(normal, -normal.y);\n u.normalize();\n const v: THREE.Vector3 = normal.clone().cross(u).normalize();\n const supplied: buildHumanPolygonModule.ISection | undefined = rings.find(\n (ring: buildHumanPolygonModule.ISection): boolean =>\n ring.points !== undefined,\n );\n const sides: number = supplied?.points?.length ?? SIDES;\n let reverse: boolean = false;\n if (supplied?.points !== undefined) {\n const area: THREE.Vector3 = new THREE.Vector3();\n for (let i: number = 0; i < sides; ++i)\n area.add(\n supplied.points[i]!.clone()\n .sub(supplied.centre)\n .cross(\n supplied.points[(i + 1) % sides]!.clone().sub(supplied.centre),\n ),\n );\n reverse = area.dot(normal) < 0;\n\n // Preserve source phase order, including its winding. Reversing the\n // procedural ring's parameterization leaves its polygon shape unchanged.\n if (reverse) v.negate();\n }\n const positions: number[] = [];\n const indices: number[] = [];\n // These helpers only connect indices; registered positions stay in metres.\n const mesh: LoftMesh.IContext = { positions, indices };\n const diagnostic: THREE.Group = new THREE.Group();\n const group: THREE.Group = new THREE.Group();\n group.name = `human.polygon.${bone.bone}`;\n diagnostic.name = `${group.name}.sections`;\n for (const ring of rings) {\n if (\n !(ring.depth > 0 && ring.breadth > 0) ||\n !Number.isFinite(ring.depth + ring.breadth) ||\n !ring.centre.toArray().every(Number.isFinite)\n )\n throw new Error(`Invalid polygon section: ${bone.bone}`);\n const loop: THREE.Vector3[] = [];\n if (ring.points !== undefined && ring.points.length !== sides)\n throw new Error(\n `Polygon sections require the same display point count: ${bone.bone}`,\n );\n for (let i: number = 0; i < sides; ++i) {\n const angle: number = (2 * Math.PI * i) / sides;\n const p: THREE.Vector3 =\n ring.points === undefined\n ? ring.centre\n .clone()\n .addScaledVector(u, Math.cos(angle) * ring.depth)\n .addScaledVector(v, Math.sin(angle) * ring.breadth)\n : ring.points[i]!.clone();\n if (!p.toArray().every(Number.isFinite))\n throw new Error(`Non-finite polygon point: ${bone.bone}`);\n p.sub(new THREE.Vector3(...bone.position));\n positions.push(p.x, p.y, p.z);\n loop.push(p);\n }\n const lines: THREE.BufferGeometry =\n new THREE.BufferGeometry().setFromPoints(loop);\n geometries.push(lines);\n diagnostic.add(new THREE.LineLoop(lines, lineMaterial));\n }\n\n /**\n * Preserve triangle orientation selected from the actual source ring winding.\n *\n * Principled implementation: Appends original triangle indices and reverses their last two slots only when the source-ring area requires it.\n * Clear and simple design: One oriented emitter serves procedural bands and flat end fans.\n * Prohibited implementation shortcuts: No vertex or topology correction is added during promotion.\n * Meaningful documentation: States original source-winding ownership.\n * Efficient algorithms: Three index appends in constant time.\n * Reuse equivalent work: Appends to the existing module index buffer.\n * Bound retention and release resources: Retains no extra records or native resource.\n */\n const triangle: (a: number, b: number, c: number) => void = (\n a: number,\n b: number,\n c: number,\n ): void => {\n indices.push(a, reverse ? c : b, reverse ? b : c);\n };\n for (let layer: number = 0; layer < rings.length - 1; ++layer) {\n const lower: readonly number[] | undefined =\n rings[layer]!.displayCoordinates;\n const upper: readonly number[] | undefined =\n rings[layer + 1]!.displayCoordinates;\n if (lower !== undefined && upper !== undefined) {\n const start: number = indices.length;\n LoftMesh.zipper(\n mesh,\n Array.from(\n { length: sides },\n (_: unknown, i: number): number => layer * sides + i,\n ),\n lower,\n Array.from(\n { length: sides },\n (_: unknown, i: number): number => (layer + 1) * sides + i,\n ),\n upper,\n );\n if (!reverse)\n for (let i: number = start; i < indices.length; i += 3)\n [indices[i + 1], indices[i + 2]] = [indices[i + 2]!, indices[i + 1]!];\n } else {\n // The band is the side of the convex hull of its two rings, which is\n // the collider. The rings are convex, lie in parallel planes and wind\n // the same way, so each side face of their hull is one ring's edge with\n // the other ring's vertex that supports the edge's outward direction:\n // the two rings' edges taken in order of direction. Joining the points\n // of one index instead is the hull only where the rings' edges run\n // parallel; between rings of different proportions such a joining edge\n // cuts inside the hull, by 2 mm across a chest's shoulder ring.\n const direction = (from: number, to: number): number => {\n const edge: THREE.Vector3 = new THREE.Vector3(\n positions[3 * to]! - positions[3 * from]!,\n positions[3 * to + 1]! - positions[3 * from + 1]!,\n positions[3 * to + 2]! - positions[3 * from + 2]!,\n );\n const angle: number = Math.atan2(edge.dot(v), edge.dot(u));\n return angle < 0 ? angle + 2 * Math.PI : angle;\n };\n // Each ring's vertices from the start of its edge of least direction,\n // with the direction of the edge each one starts; at direction zero\n // both rings stand on their first vertex.\n const walk = (ring: number): { vertex: number; angle: number }[] => {\n const edges: { vertex: number; angle: number }[] = Array.from(\n { length: sides },\n (_: unknown, i: number): { vertex: number; angle: number } => ({\n vertex: ring * sides + i,\n angle: direction(\n ring * sides + i,\n ring * sides + ((i + 1) % sides),\n ),\n }),\n );\n const first: number = edges.reduce(\n (best: number, edge: { angle: number }, i: number): number =>\n edge.angle < edges[best]!.angle ? i : best,\n 0,\n );\n return [...edges.slice(first), ...edges.slice(0, first)];\n };\n const lower: { vertex: number; angle: number }[] = walk(layer);\n const upper: { vertex: number; angle: number }[] = walk(layer + 1);\n let i: number = 0;\n let j: number = 0;\n while (i < sides || j < sides) {\n const a: number = lower[i % sides]!.vertex;\n const c: number = upper[j % sides]!.vertex;\n if (j >= sides || (i < sides && lower[i]!.angle <= upper[j]!.angle)) {\n triangle(a, lower[(i + 1) % sides]!.vertex, c);\n i++;\n } else {\n triangle(a, upper[(j + 1) % sides]!.vertex, c);\n j++;\n }\n }\n }\n }\n for (const end of [0, rings.length - 1]) {\n if (end !== 0 && topPole !== undefined) continue;\n const centre: THREE.Vector3 = rings[end]!.centre.clone().sub(\n new THREE.Vector3(...bone.position),\n );\n const k: number = positions.length / 3;\n positions.push(centre.x, centre.y, centre.z);\n for (let i: number = 0; i < sides; ++i) {\n const a: number = end * sides + i;\n const b: number = end * sides + ((i + 1) % sides);\n if (end === 0) triangle(k, b, a);\n else triangle(k, a, b);\n }\n }\n if (topPole !== undefined) {\n const pole: THREE.Vector3 = new THREE.Vector3(...topPole).sub(\n new THREE.Vector3(...bone.position),\n );\n const apex: number = positions.length / 3;\n positions.push(pole.x, pole.y, pole.z);\n const ring: number[] = Array.from(\n { length: sides },\n (_: unknown, i: number): number => (rings.length - 1) * sides + i,\n );\n const start: number = indices.length;\n LoftMesh.cap(mesh, ring, apex, true);\n if (!reverse)\n for (let i: number = start; i < indices.length; i += 3)\n [indices[i + 1], indices[i + 2]] = [indices[i + 2]!, indices[i + 1]!];\n const spokes: THREE.BufferGeometry =\n new THREE.BufferGeometry().setFromPoints(\n ring.flatMap((index: number): THREE.Vector3[] => [\n new THREE.Vector3(...LoftMesh.position(mesh, index)),\n pole,\n ]),\n );\n geometries.push(spokes);\n diagnostic.add(new THREE.LineSegments(spokes, lineMaterial));\n }\n const geometry: THREE.BufferGeometry = new THREE.BufferGeometry();\n geometry.setAttribute(\n \"position\",\n new THREE.Float32BufferAttribute(positions, 3),\n );\n geometry.setIndex(indices);\n geometry.computeVertexNormals();\n geometries.push(geometry);\n const part: THREE.Mesh = new THREE.Mesh(geometry, material);\n group.add(part);\n for (const node of [group, diagnostic]) {\n node.position.set(...placement.position);\n node.quaternion.set(...placement.rotation);\n }\n\n return { group, diagnostic, part };\n}\n\n/** Explicit section inputs shared by the display selector and mesh assembler.\n *\n * @evidence contracts/development/common.md#meaningful-documentation Documents section axes, optional source points and display coordinates, and the query's local units, frontmost selection and missing-hit result.\n * @evidence contracts/development/design.md#principled-representation Represents Explicit section inputs shared by the display selector and mesh assembler: companion namespace of 2 members (`ISection`, `frontAt`); units and frames named in its text: metre, frame, second, local. It has no optional member, so no absent-value state combines with another.\n * @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `buildHumanPolygonModule` in packages/render/src/scene/human-polygon/buildHumanPolygonModule.ts; its surface is the 2 members listed and the text shows 3 other files naming it, mostly packages/render (3), so no member is declared for a presumed future need.\n * @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows.\n */\nexport namespace buildHumanPolygonModule {\n /**\n * One original polygon section, with physical half dimensions.\n *\n * Principled implementation: Carries registered metre centre/half-extents and optional actual points with independent display correspondence.\n * Clear and simple design: One section contract serves original shape selection and mesh assembly.\n * Prohibited implementation shortcuts: Optional source points retain surface authority instead of being replaced by an ellipse.\n * Meaningful documentation: Gives metric centre/half dimensions, point ownership and display-coordinate purpose.\n * Efficient algorithms: This section record performs no computation.\n * Reuse equivalent work: The caller shares section records where original module boundaries coincide.\n * Bound retention and release resources: The construction caller owns these temporary vectors/records.\n */\n export interface ISection {\n /** Centre in the skeleton's registered rest frame. */\n centre: THREE.Vector3;\n\n /** Half dimension along the section's first in-plane axis. */\n depth: number;\n\n /** Half dimension along its second in-plane axis. */\n breadth: number;\n\n /** Actual registered points when a source section owns the shape and phase. */\n points?: THREE.Vector3[];\n\n /** Separate front-anchored projected polygon arclength for display joining. */\n displayCoordinates?: readonly number[];\n }\n\n /**\n * Query the frontmost local triangle X for a face attachment at Y/Z.\n * The caller supplies the emitted indexed triangle geometry and its actual\n * local bounds. A +X ray starts behind those bounds, accepts either winding\n * and selects the greatest hit X. Nonfinite Y+Z or no hit returns undefined.\n * The query borrows the mesh and does not apply its posed placement again.\n *\n * Principled implementation: Intersects the actual indexed triangles double-sided along local +X and returns the greatest hit X; invalid query coordinates and no hit return undefined.\n * Clear and simple design: One actual-surface query serves the original cartoon attachment without another head representation.\n * Prohibited implementation shortcuts: No primitive fit, silhouette fallback or second pose replaces the supplied triangle surface.\n * Meaningful documentation: Documents local frame, ray direction, indexed-geometry premise and undefined results.\n * Efficient algorithms: Scans T emitted triangles once with constant-size vector/ray scratch.\n * Reuse equivalent work: Borrows original buffers and reuses triangle vectors throughout the scan.\n * Bound retention and release resources: All scratch is call-local; the query retains no geometry or native resource.\n */\n export function frontAt(\n geometry: THREE.BufferGeometry,\n bounds: THREE.Box3,\n y: number,\n z: number,\n ): number | undefined {\n if (!Number.isFinite(y + z)) return undefined;\n const ray: THREE.Ray = new THREE.Ray(\n new THREE.Vector3(bounds.min.x - (bounds.max.x - bounds.min.x), y, z),\n new THREE.Vector3(1, 0, 0),\n );\n const positions: THREE.BufferAttribute | THREE.InterleavedBufferAttribute =\n geometry.getAttribute(\"position\");\n const indices: THREE.BufferAttribute = geometry.getIndex()!;\n const a: THREE.Vector3 = new THREE.Vector3();\n const b: THREE.Vector3 = new THREE.Vector3();\n const c: THREE.Vector3 = new THREE.Vector3();\n const hit: THREE.Vector3 = new THREE.Vector3();\n let front: number | undefined;\n for (let i: number = 0; i < indices.count; i += 3) {\n a.fromBufferAttribute(positions, indices.getX(i));\n b.fromBufferAttribute(positions, indices.getX(i + 1));\n c.fromBufferAttribute(positions, indices.getX(i + 2));\n if (ray.intersectTriangle(a, b, c, false, hit) !== null)\n front = front === undefined ? hit.x : Math.max(front, hit.x);\n }\n return front;\n }\n}\n\n/** Explicit polygon LOD, independent of body dimensions. */\nconst SIDES: number = 8;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA2BA,SAAgB,wBACd,MACA,OACA,WACA,UACA,cACA,YACA,MACA,SACA,SACmE;CACnE,IACE,CAAC,UAAU,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IAAI,MAAM,IAC/B,IAAI,MAAM,QAAQ,OAAO,IAAI,KAAK,OAAO,IAAI,IAAI,OAAO,IAAI,IAAI,GAAG,CAAC,GACpE,IAAI,MAAM,QAAQ,GAAG,GAAG,CAAC,CAC3B;EACA,MAAM,YACJ,SAAS,aAAa,UAAU;EAClC,MAAM,UAAiC,SAAS,SAAS;EACzD,MAAM,IAAmB,IAAI,MAAM,QAAQ;EAC3C,MAAM,IAAmB,IAAI,MAAM,QAAQ;EAC3C,MAAM,IAAmB,IAAI,MAAM,QAAQ;EAC3C,MAAM,MAAqB,IAAI,MAAM,QAAQ;EAC7C,IAAI;EACJ,KAAK,IAAI,IAAY,GAAG,IAAI,QAAQ,OAAO,KAAK,GAAG;GACjD,EAAE,oBAAoB,WAAW,QAAQ,KAAK,CAAC,CAAC;GAChD,EAAE,oBAAoB,WAAW,QAAQ,KAAK,IAAI,CAAC,CAAC;GACpD,EAAE,oBAAoB,WAAW,QAAQ,KAAK,IAAI,CAAC,CAAC;GACpD,IAAI,IAAI,kBAAkB,GAAG,GAAG,GAAG,OAAO,GAAG,MAAM,MACjD,QAAQ,UAAU,KAAA,IAAY,IAAI,IAAI,KAAK,IAAI,OAAO,IAAI,CAAC;EAC/D;EACA,OAAO;CACT;;AACD,EAAA,CAAA,4BAAA,0BAAA,CAAA,EAAD;;AAGA,MAAM,QAAgB"}
@@ -1,5 +1,5 @@
1
+ import type { IAutoMovieHumanBindBone, IAutoMovieHumanSkeleton } from "@automovie/interface";
1
2
  import * as THREE from "three";
2
- import type { AutoMovieHumanPolygon } from "./AutoMovieHumanPolygon.js";
3
3
  import type { buildHumanPolygonModule } from "./buildHumanPolygonModule.js";
4
4
  /**
5
5
  * Emit the mannequin's rigid modules from the engine's ring modules, the one
@@ -15,7 +15,7 @@ import type { buildHumanPolygonModule } from "./buildHumanPolygonModule.js";
15
15
  * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the engine's rings and points and the caller's maps and material-owning assembler.
16
16
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Temporary vectors and sections transfer to assembly; the caller owns every emitted mesh, diagnostic and material and receives the actual head objects and bounds.
17
17
  */
18
- export declare function buildHumanPolygonParts(output: AutoMovieHumanPolygon.IInput, boneAt: (name: string) => AutoMovieHumanPolygon.IBone, add: (bone: AutoMovieHumanPolygon.IBone, rings: buildHumanPolygonModule.ISection[], axis: THREE.Vector3, breadth?: THREE.Vector3, topPole?: [number, number, number]) => THREE.Group): {
18
+ export declare function buildHumanPolygonParts(output: Pick<IAutoMovieHumanSkeleton.IOutput, "bones" | "posed">, boneAt: (name: string) => IAutoMovieHumanBindBone, add: (bone: IAutoMovieHumanBindBone, rings: buildHumanPolygonModule.ISection[], axis: THREE.Vector3, breadth?: THREE.Vector3, topPole?: [number, number, number]) => THREE.Group): {
19
19
  headObject: THREE.Group;
20
20
  headMesh: THREE.Mesh;
21
21
  headBox: THREE.Box3;
@@ -1 +1 @@
1
- {"version":3,"file":"buildHumanPolygonParts.js","sourceRoot":"","sources":["../../../src/scene/human-polygon/buildHumanPolygonParts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAwE;AAExE,MAAY,KAAK,kCAAc;AAK/B;;;;;;;;;;;;;GAaG;AACH,gCACE,MAAoC,EACpC,MAAqD,EACrD,GAMgB;IAEhB,MAAM,KAAK,GAAG,CAAC,KAAwB,EAAiB,EAAE,CACxD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAC/C,IAAI,UAAmC,CAAC;IACxC,KAAK,MAAM,MAAM,IAAI,IAAA,4CAAmC,EAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;QACvE,MAAM,KAAK,GAAgB,GAAG,CAC5B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EACnB,MAAM,CAAC,KAAK,CAAC,GAAG,CACd,CAC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AAQ,GAAe,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAe,CAAC;IAClE,QAAQ,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC;IACvC,MAAM,OAAO,GAAe,QAAQ,CAAC,QAAQ,CAAC,WAAY,CAAC;IAC3D,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;AAC3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildHumanPolygonParts.mjs","names":[],"sources":["../../../src/scene/human-polygon/buildHumanPolygonParts.ts"],"sourcesContent":["import { resolveAutoMovieHumanoidRingModules } from \"@automovie/engine\";\nimport type { IAutoMovieVector3 } from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport type { AutoMovieHumanPolygon } from \"./AutoMovieHumanPolygon.js\";\nimport type { buildHumanPolygonModule } from \"./buildHumanPolygonModule.js\";\n\n/**\n * Emit the mannequin's rigid modules from the engine's ring modules, the one\n * statement of the body's simple solid form: the same rings and ring points\n * the physical profile takes its colliders from, so the drawn surface and\n * the collision surface share every vertex.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Ring selection and ring points come from `resolveAutoMovieHumanoidRingModules`; this function only hands each module's sections, with their actual points, to the supplied assembler in the engine's drawing order.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Separates module selection, owned by the engine, from drawing lifecycle, palette and pose application; it borrows the caller's bone lookup and add callback.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No section dimension, anatomy coefficient or authored pose is stated here; a module whose bone the drawing lacks is refused by the lookup.\n * @evidence contracts/development/common.md#meaningful-documentation Records who owns the form, why the drawing reads it and what this function returns.\n * @evidence contracts/development/implementation.md#efficient-algorithms One pass over the engine's modules, at most one per emitted bone, with map lookups.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the engine's rings and points and the caller's maps and material-owning assembler.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Temporary vectors and sections transfer to assembly; the caller owns every emitted mesh, diagnostic and material and receives the actual head objects and bounds.\n */\nexport function buildHumanPolygonParts(\n output: AutoMovieHumanPolygon.IInput,\n boneAt: (name: string) => AutoMovieHumanPolygon.IBone,\n add: (\n bone: AutoMovieHumanPolygon.IBone,\n rings: buildHumanPolygonModule.ISection[],\n axis: THREE.Vector3,\n breadth?: THREE.Vector3,\n topPole?: [number, number, number],\n ) => THREE.Group,\n): { headObject: THREE.Group; headMesh: THREE.Mesh; headBox: THREE.Box3 } {\n const three = (value: IAutoMovieVector3): THREE.Vector3 =>\n new THREE.Vector3(value.x, value.y, value.z);\n let headObject: THREE.Group | undefined;\n for (const module of resolveAutoMovieHumanoidRingModules(output.bones)) {\n const group: THREE.Group = add(\n boneAt(module.bone),\n module.rings.map(\n (\n ring: resolveAutoMovieHumanoidRingModules.IRing,\n ): buildHumanPolygonModule.ISection => ({\n centre: three(ring.centre),\n depth: ring.depth,\n breadth: ring.breadth,\n points: ring.points.map(three),\n }),\n ),\n three(module.axis),\n module.breadth === null ? undefined : three(module.breadth),\n module.pole === null\n ? undefined\n : [module.pole.x, module.pole.y, module.pole.z],\n );\n if (module.bone === \"head\") headObject = group;\n }\n if (headObject === undefined)\n throw new Error(\"Polygon drawing requires the head module\");\n const headMesh: THREE.Mesh = headObject.children[0] as THREE.Mesh;\n headMesh.geometry.computeBoundingBox();\n const headBox: THREE.Box3 = headMesh.geometry.boundingBox!;\n return { headObject, headMesh, headBox };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,SAAgB,uBACd,QACA,QACA,KAOwE;CACxE,MAAM,SAAS,UACb,IAAI,MAAM,QAAQ,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAC7C,IAAI;CACJ,KAAK,MAAM,UAAU,oCAAoC,OAAO,KAAK,GAAG;EACtE,MAAM,QAAqB,IACzB,OAAO,OAAO,IAAI,GAClB,OAAO,MAAM,KAET,UACsC;GACtC,QAAQ,MAAM,KAAK,MAAM;GACzB,OAAO,KAAK;GACZ,SAAS,KAAK;GACd,QAAQ,KAAK,OAAO,IAAI,KAAK;EAC/B,EACF,GACA,MAAM,OAAO,IAAI,GACjB,OAAO,YAAY,OAAO,KAAA,IAAY,MAAM,OAAO,OAAO,GAC1D,OAAO,SAAS,OACZ,KAAA,IACA;GAAC,OAAO,KAAK;GAAG,OAAO,KAAK;GAAG,OAAO,KAAK;EAAC,CAClD;EACA,IAAI,OAAO,SAAS,QAAQ,aAAa;CAC3C;CACA,IAAI,eAAe,KAAA,GACjB,MAAM,IAAI,MAAM,0CAA0C;CAC5D,MAAM,WAAuB,WAAW,SAAS;CACjD,SAAS,SAAS,mBAAmB;CACrC,MAAM,UAAsB,SAAS,SAAS;CAC9C,OAAO;EAAE;EAAY;EAAU;CAAQ;AACzC"}
1
+ {"version":3,"file":"buildHumanPolygonParts.mjs","names":[],"sources":["../../../src/scene/human-polygon/buildHumanPolygonParts.ts"],"sourcesContent":["import { resolveAutoMovieHumanoidRingModules } from \"@automovie/engine\";\nimport type {\n IAutoMovieHumanBindBone,\n IAutoMovieHumanSkeleton,\n IAutoMovieResolveHumanoidRingModules,\n IAutoMovieVector3,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport type { buildHumanPolygonModule } from \"./buildHumanPolygonModule.js\";\n\n/**\n * Emit the mannequin's rigid modules from the engine's ring modules, the one\n * statement of the body's simple solid form: the same rings and ring points\n * the physical profile takes its colliders from, so the drawn surface and\n * the collision surface share every vertex.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Ring selection and ring points come from `resolveAutoMovieHumanoidRingModules`; this function only hands each module's sections, with their actual points, to the supplied assembler in the engine's drawing order.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Separates module selection, owned by the engine, from drawing lifecycle, palette and pose application; it borrows the caller's bone lookup and add callback.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No section dimension, anatomy coefficient or authored pose is stated here; a module whose bone the drawing lacks is refused by the lookup.\n * @evidence contracts/development/common.md#meaningful-documentation Records who owns the form, why the drawing reads it and what this function returns.\n * @evidence contracts/development/implementation.md#efficient-algorithms One pass over the engine's modules, at most one per emitted bone, with map lookups.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the engine's rings and points and the caller's maps and material-owning assembler.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Temporary vectors and sections transfer to assembly; the caller owns every emitted mesh, diagnostic and material and receives the actual head objects and bounds.\n */\nexport function buildHumanPolygonParts(\n output: Pick<IAutoMovieHumanSkeleton.IOutput, \"bones\" | \"posed\">,\n boneAt: (name: string) => IAutoMovieHumanBindBone,\n add: (\n bone: IAutoMovieHumanBindBone,\n rings: buildHumanPolygonModule.ISection[],\n axis: THREE.Vector3,\n breadth?: THREE.Vector3,\n topPole?: [number, number, number],\n ) => THREE.Group,\n): { headObject: THREE.Group; headMesh: THREE.Mesh; headBox: THREE.Box3 } {\n const three = (value: IAutoMovieVector3): THREE.Vector3 =>\n new THREE.Vector3(value.x, value.y, value.z);\n let headObject: THREE.Group | undefined;\n for (const module of resolveAutoMovieHumanoidRingModules(output.bones)) {\n const group: THREE.Group = add(\n boneAt(module.bone),\n module.rings.map(\n (\n ring: IAutoMovieResolveHumanoidRingModules.IRing,\n ): buildHumanPolygonModule.ISection => ({\n centre: three(ring.centre),\n depth: ring.depth,\n breadth: ring.breadth,\n points: ring.points.map(three),\n }),\n ),\n three(module.axis),\n module.breadth === null ? undefined : three(module.breadth),\n module.pole === null\n ? undefined\n : [module.pole.x, module.pole.y, module.pole.z],\n );\n if (module.bone === \"head\") headObject = group;\n }\n if (headObject === undefined)\n throw new Error(\"Polygon drawing requires the head module\");\n const headMesh: THREE.Mesh = headObject.children[0] as THREE.Mesh;\n headMesh.geometry.computeBoundingBox();\n const headBox: THREE.Box3 = headMesh.geometry.boundingBox!;\n return { headObject, headMesh, headBox };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAyBA,SAAgB,uBACd,QACA,QACA,KAOwE;CACxE,MAAM,SAAS,UACb,IAAI,MAAM,QAAQ,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAC7C,IAAI;CACJ,KAAK,MAAM,UAAU,oCAAoC,OAAO,KAAK,GAAG;EACtE,MAAM,QAAqB,IACzB,OAAO,OAAO,IAAI,GAClB,OAAO,MAAM,KAET,UACsC;GACtC,QAAQ,MAAM,KAAK,MAAM;GACzB,OAAO,KAAK;GACZ,SAAS,KAAK;GACd,QAAQ,KAAK,OAAO,IAAI,KAAK;EAC/B,EACF,GACA,MAAM,OAAO,IAAI,GACjB,OAAO,YAAY,OAAO,KAAA,IAAY,MAAM,OAAO,OAAO,GAC1D,OAAO,SAAS,OACZ,KAAA,IACA;GAAC,OAAO,KAAK;GAAG,OAAO,KAAK;GAAG,OAAO,KAAK;EAAC,CAClD;EACA,IAAI,OAAO,SAAS,QAAQ,aAAa;CAC3C;CACA,IAAI,eAAe,KAAA,GACjB,MAAM,IAAI,MAAM,0CAA0C;CAC5D,MAAM,WAAuB,WAAW,SAAS;CACjD,SAAS,SAAS,mBAAmB;CACrC,MAAM,UAAsB,SAAS,SAAS;CAC9C,OAAO;EAAE;EAAY;EAAU;CAAQ;AACzC"}
@@ -1,3 +1,4 @@
1
+ import type { IAutoMovieHumanSkeleton } from "@automovie/interface";
1
2
  import type * as THREE from "three";
2
3
  import type { AutoMovieHumanCartoon } from "./AutoMovieHumanCartoon.js";
3
4
  import type { AutoMovieHumanPolygon } from "./AutoMovieHumanPolygon.js";
@@ -26,7 +27,7 @@ import type { AutoMovieHumanPolygon } from "./AutoMovieHumanPolygon.js";
26
27
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 7 allocation sites become the returned value or die with the call, so nothing grows.
27
28
  */
28
29
  export declare function createAutoMovieHumanPolygonFigure(input: {
29
- /** Evaluate a pose to rest bones and placements; called once with the neutral pose. */ evaluate: (pose: Readonly<Record<string, never>>) => AutoMovieHumanPolygon.IInput;
30
+ /** Evaluate a pose to rest bones and placements; called once with the neutral pose. */ evaluate: (pose: Readonly<Record<string, never>>) => Pick<IAutoMovieHumanSkeleton.IOutput, "bones" | "posed">;
30
31
  /** RGB overrides by emitted bone. */ partColors?: Readonly<Record<string, number>>;
31
32
  }): createAutoMovieHumanPolygonFigure.IFigure;
32
33
  /**
@@ -53,7 +54,7 @@ export declare namespace createAutoMovieHumanPolygonFigure {
53
54
  * @param head Optional eye, lid and jaw pose.
54
55
  * @param expression Optional facial expression.
55
56
  */
56
- place(output: Pick<AutoMovieHumanPolygon.IInput, "posed">, head?: AutoMovieHumanCartoon.IHeadPose, expression?: AutoMovieHumanCartoon.IExpression): void;
57
+ place(output: Pick<Pick<IAutoMovieHumanSkeleton.IOutput, "bones" | "posed">, "posed">, head?: AutoMovieHumanCartoon.IHeadPose, expression?: AutoMovieHumanCartoon.IExpression): void;
57
58
  /** Release the face and the drawing once; later `place` calls throw. */
58
59
  dispose(): void;
59
60
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createAutoMovieHumanPolygonFigure.js","sourceRoot":"","sources":["../../../src/scene/human-polygon/createAutoMovieHumanPolygonFigure.ts"],"names":[],"mappings":";;;AAIA,yEAAmE;AACnE,iEAA2D;AAE3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,2CAAkD,KAOjD;IACC,MAAM,OAAO,GAAmC,IAAA,wCAAiB,EAC/D,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,EAClB,KAAK,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,CACvE,CAAC;IACF,IAAI,IAAI,GAAoD,IAAI,CAAC;IACjE,IAAI,GAAG,GAAkB,IAAI,CAAC;IAC9B,IAAI,QAAQ,GAAY,KAAK,CAAC;IAC9B,MAAM,MAAM,GAA8C;QACxD,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,OAAO;QACP,WAAW,EAAE,EAAE;QACf,KAAK,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AAG,KAAK,CAAC;YACb,GAAG,GAAG,IAAI,CAAC;YACX,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACtC,MAAM,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACzC,CAAC;QACD,OAAO,EAAE,GAAS,EAAE;YAClB,IAAI,QAAQ;gBAAE,OAAO;YACrB,QAAQ,GAAG,IAAI,CAAC;YAChB,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;gBAClB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACxC,IAAI,CAAC,OAAO,EAAE,CAAC;gBACf,IAAI,GAAG,IAAI,CAAC;YACd,CAAC;YACD,OAAO,CAAC,OAAO,EAAE,CAAC;QACpB,CAAC;KACF,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createAutoMovieHumanPolygonFigure.mjs","names":[],"sources":["../../../src/scene/human-polygon/createAutoMovieHumanPolygonFigure.ts"],"sourcesContent":["import type * as THREE from \"three\";\n\nimport type { AutoMovieHumanCartoon } from \"./AutoMovieHumanCartoon.js\";\nimport type { AutoMovieHumanPolygon } from \"./AutoMovieHumanPolygon.js\";\nimport { buildHumanCartoonFace } from \"./buildHumanCartoonFace.js\";\nimport { buildHumanPolygon } from \"./buildHumanPolygon.js\";\n\n/**\n * A posed polygon figure with its cartoon face: the original polygon drawing\n * ({@link buildHumanPolygon}) built once from the evaluator's neutral output,\n * and a face ({@link buildHumanCartoonFace}) on its actual head front.\n *\n * `place` applies an evaluated pose to the existing groups and rebuilds the\n * face only when the head pose or expression changes by value, disposing the\n * previous face, so a held expression costs no geometry. The evaluator is a\n * structural function (a Human skeleton evaluator fits); the Viewer imports\n * no figure generator.\n *\n * The figure stays deliberately simple: a fix corrects a wrong value within\n * the same primitives, never adds geometry, detail or realism, because its job\n * is a cheap, deterministic silhouette for motion checks and diffusion hints.\n *\n * @returns The figure's root object, its drawing, the pose port and disposal.\n * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (A posed polygon figure with its cartoon face: the original polygon drawing () built once from the evaluator's neutral output, and a face () on its actual head front) and documents the returned value as stated in this comment.\n * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (A posed polygon figure with its cartoon face: the original polygon drawing () built once from the evaluator's neutral output, and a face () on its actual head front) directly over its typed inputs (`input`) as a fixed number of statements with no loop or recursion in the body, delegating to `buildHumanPolygon`, `input.evaluate`, `drawing.setPose`, `JSON.stringify`, `buildHumanCartoonFace`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Apart from structural 0, 1 and 2 the body uses no numeric literal.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 45 lines and 6 top-level statements that reuses `buildHumanPolygon`, `input.evaluate`, `drawing.setPose`, `JSON.stringify`, `buildHumanCartoonFace` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.\n * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `input`; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call with 7 allocation sites (literals and constructed values). No speedup is claimed and none is measured.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 7 allocation sites become the returned value or die with the call, so nothing grows.\n */\nexport function createAutoMovieHumanPolygonFigure(input: {\n /** Evaluate a pose to rest bones and placements; called once with the neutral pose. */ evaluate: (\n pose: Readonly<Record<string, never>>,\n ) => AutoMovieHumanPolygon.IInput;\n /** RGB overrides by emitted bone. */ partColors?: Readonly<\n Record<string, number>\n >;\n}): createAutoMovieHumanPolygonFigure.IFigure {\n const drawing: AutoMovieHumanPolygon.IDrawing = buildHumanPolygon(\n input.evaluate({}),\n input.partColors === undefined ? {} : { partColors: input.partColors },\n );\n let face: ReturnType<typeof buildHumanCartoonFace> | null = null;\n let key: string | null = null;\n let disposed: boolean = false;\n const figure: createAutoMovieHumanPolygonFigure.IFigure = {\n object: drawing.object,\n drawing,\n unsupported: [],\n place: (\n output: Pick<AutoMovieHumanPolygon.IInput, \"posed\">,\n head?: AutoMovieHumanCartoon.IHeadPose,\n expression?: AutoMovieHumanCartoon.IExpression,\n ): void => {\n if (disposed) throw new Error(\"The polygon figure is disposed\");\n drawing.setPose(output);\n const next: string = JSON.stringify([head ?? null, expression ?? null]);\n if (next === key) return;\n const built: ReturnType<typeof buildHumanCartoonFace> =\n buildHumanCartoonFace(drawing.head, expression, head);\n if (face !== null) {\n drawing.head.object.remove(face.object);\n face.dispose();\n }\n face = built;\n key = next;\n drawing.head.object.add(built.object);\n figure.unsupported = built.unsupported;\n },\n dispose: (): void => {\n if (disposed) return;\n disposed = true;\n if (face !== null) {\n drawing.head.object.remove(face.object);\n face.dispose();\n face = null;\n }\n drawing.dispose();\n },\n };\n return figure;\n}\n/**\n * Companion types of {@link createAutoMovieHumanPolygonFigure}.\n *\n * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Companion types of ) and documents 1 documented member as stated in this comment.\n * @evidence contracts/development/design.md#principled-representation Represents Companion types of : companion namespace of 1 member (`IFigure`). It has no optional member, so no absent-value state combines with another.\n * @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `createAutoMovieHumanPolygonFigure` in packages/render/src/scene/human-polygon/createAutoMovieHumanPolygonFigure.ts; its surface is the 1 member listed and the text shows 4 other files naming it, mostly movies (2), packages/render (1), test (1), so no member is declared for a presumed future need.\n * @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows.\n */\nexport namespace createAutoMovieHumanPolygonFigure {\n /** A posed polygon figure. */\n export interface IFigure {\n /** The figure's root; the host places the actor through its parent. */\n readonly object: THREE.Group;\n\n /** The underlying drawing, for colours, bone groups and attachments. */\n readonly drawing: AutoMovieHumanPolygon.IDrawing;\n\n /** Requested face fields outside the cartoon's supported subset, after the latest rebuild. */\n unsupported: readonly string[];\n\n /**\n * Apply an evaluated pose, and the face for a head pose and expression.\n *\n * @param output Evaluated placements.\n * @param head Optional eye, lid and jaw pose.\n * @param expression Optional facial expression.\n */\n place(\n output: Pick<AutoMovieHumanPolygon.IInput, \"posed\">,\n head?: AutoMovieHumanCartoon.IHeadPose,\n expression?: AutoMovieHumanCartoon.IExpression,\n ): void;\n\n /** Release the face and the drawing once; later `place` calls throw. */\n dispose(): void;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,SAAgB,kCAAkC,OAOJ;CAC5C,MAAM,UAA0C,kBAC9C,MAAM,SAAS,CAAC,CAAC,GACjB,MAAM,eAAe,KAAA,IAAY,CAAC,IAAI,EAAE,YAAY,MAAM,WAAW,CACvE;CACA,IAAI,OAAwD;CAC5D,IAAI,MAAqB;CACzB,IAAI,WAAoB;CACxB,MAAM,SAAoD;EACxD,QAAQ,QAAQ;EAChB;EACA,aAAa,CAAC;EACd,QACE,QACA,MACA,eACS;GACT,IAAI,UAAU,MAAM,IAAI,MAAM,gCAAgC;GAC9D,QAAQ,QAAQ,MAAM;GACtB,MAAM,OAAe,KAAK,UAAU,CAAC,QAAQ,MAAM,cAAc,IAAI,CAAC;GACtE,IAAI,SAAS,KAAK;GAClB,MAAM,QACJ,sBAAsB,QAAQ,MAAM,YAAY,IAAI;GACtD,IAAI,SAAS,MAAM;IACjB,QAAQ,KAAK,OAAO,OAAO,KAAK,MAAM;IACtC,KAAK,QAAQ;GACf;GACA,OAAO;GACP,MAAM;GACN,QAAQ,KAAK,OAAO,IAAI,MAAM,MAAM;GACpC,OAAO,cAAc,MAAM;EAC7B;EACA,eAAqB;GACnB,IAAI,UAAU;GACd,WAAW;GACX,IAAI,SAAS,MAAM;IACjB,QAAQ,KAAK,OAAO,OAAO,KAAK,MAAM;IACtC,KAAK,QAAQ;IACb,OAAO;GACT;GACA,QAAQ,QAAQ;EAClB;CACF;CACA,OAAO;AACT"}
1
+ {"version":3,"file":"createAutoMovieHumanPolygonFigure.mjs","names":[],"sources":["../../../src/scene/human-polygon/createAutoMovieHumanPolygonFigure.ts"],"sourcesContent":["import type { IAutoMovieHumanSkeleton } from \"@automovie/interface\";\nimport type * as THREE from \"three\";\n\nimport type { AutoMovieHumanCartoon } from \"./AutoMovieHumanCartoon.js\";\nimport type { AutoMovieHumanPolygon } from \"./AutoMovieHumanPolygon.js\";\nimport { buildHumanCartoonFace } from \"./buildHumanCartoonFace.js\";\nimport { buildHumanPolygon } from \"./buildHumanPolygon.js\";\n\n/**\n * A posed polygon figure with its cartoon face: the original polygon drawing\n * ({@link buildHumanPolygon}) built once from the evaluator's neutral output,\n * and a face ({@link buildHumanCartoonFace}) on its actual head front.\n *\n * `place` applies an evaluated pose to the existing groups and rebuilds the\n * face only when the head pose or expression changes by value, disposing the\n * previous face, so a held expression costs no geometry. The evaluator is a\n * structural function (a Human skeleton evaluator fits); the Viewer imports\n * no figure generator.\n *\n * The figure stays deliberately simple: a fix corrects a wrong value within\n * the same primitives, never adds geometry, detail or realism, because its job\n * is a cheap, deterministic silhouette for motion checks and diffusion hints.\n *\n * @returns The figure's root object, its drawing, the pose port and disposal.\n * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (A posed polygon figure with its cartoon face: the original polygon drawing () built once from the evaluator's neutral output, and a face () on its actual head front) and documents the returned value as stated in this comment.\n * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (A posed polygon figure with its cartoon face: the original polygon drawing () built once from the evaluator's neutral output, and a face () on its actual head front) directly over its typed inputs (`input`) as a fixed number of statements with no loop or recursion in the body, delegating to `buildHumanPolygon`, `input.evaluate`, `drawing.setPose`, `JSON.stringify`, `buildHumanCartoonFace`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Apart from structural 0, 1 and 2 the body uses no numeric literal.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 45 lines and 6 top-level statements that reuses `buildHumanPolygon`, `input.evaluate`, `drawing.setPose`, `JSON.stringify`, `buildHumanCartoonFace` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.\n * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `input`; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call with 7 allocation sites (literals and constructed values). No speedup is claimed and none is measured.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 7 allocation sites become the returned value or die with the call, so nothing grows.\n */\nexport function createAutoMovieHumanPolygonFigure(input: {\n /** Evaluate a pose to rest bones and placements; called once with the neutral pose. */ evaluate: (\n pose: Readonly<Record<string, never>>,\n ) => Pick<IAutoMovieHumanSkeleton.IOutput, \"bones\" | \"posed\">;\n /** RGB overrides by emitted bone. */ partColors?: Readonly<\n Record<string, number>\n >;\n}): createAutoMovieHumanPolygonFigure.IFigure {\n const drawing: AutoMovieHumanPolygon.IDrawing = buildHumanPolygon(\n input.evaluate({}),\n input.partColors === undefined ? {} : { partColors: input.partColors },\n );\n let face: ReturnType<typeof buildHumanCartoonFace> | null = null;\n let key: string | null = null;\n let disposed: boolean = false;\n const figure: createAutoMovieHumanPolygonFigure.IFigure = {\n object: drawing.object,\n drawing,\n unsupported: [],\n place: (\n output: Pick<\n Pick<IAutoMovieHumanSkeleton.IOutput, \"bones\" | \"posed\">,\n \"posed\"\n >,\n head?: AutoMovieHumanCartoon.IHeadPose,\n expression?: AutoMovieHumanCartoon.IExpression,\n ): void => {\n if (disposed) throw new Error(\"The polygon figure is disposed\");\n drawing.setPose(output);\n const next: string = JSON.stringify([head ?? null, expression ?? null]);\n if (next === key) return;\n const built: ReturnType<typeof buildHumanCartoonFace> =\n buildHumanCartoonFace(drawing.head, expression, head);\n if (face !== null) {\n drawing.head.object.remove(face.object);\n face.dispose();\n }\n face = built;\n key = next;\n drawing.head.object.add(built.object);\n figure.unsupported = built.unsupported;\n },\n dispose: (): void => {\n if (disposed) return;\n disposed = true;\n if (face !== null) {\n drawing.head.object.remove(face.object);\n face.dispose();\n face = null;\n }\n drawing.dispose();\n },\n };\n return figure;\n}\n/**\n * Companion types of {@link createAutoMovieHumanPolygonFigure}.\n *\n * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Companion types of ) and documents 1 documented member as stated in this comment.\n * @evidence contracts/development/design.md#principled-representation Represents Companion types of : companion namespace of 1 member (`IFigure`). It has no optional member, so no absent-value state combines with another.\n * @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `createAutoMovieHumanPolygonFigure` in packages/render/src/scene/human-polygon/createAutoMovieHumanPolygonFigure.ts; its surface is the 1 member listed and the text shows 4 other files naming it, mostly movies (2), packages/render (1), test (1), so no member is declared for a presumed future need.\n * @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows.\n */\nexport namespace createAutoMovieHumanPolygonFigure {\n /** A posed polygon figure. */\n export interface IFigure {\n /** The figure's root; the host places the actor through its parent. */\n readonly object: THREE.Group;\n\n /** The underlying drawing, for colours, bone groups and attachments. */\n readonly drawing: AutoMovieHumanPolygon.IDrawing;\n\n /** Requested face fields outside the cartoon's supported subset, after the latest rebuild. */\n unsupported: readonly string[];\n\n /**\n * Apply an evaluated pose, and the face for a head pose and expression.\n *\n * @param output Evaluated placements.\n * @param head Optional eye, lid and jaw pose.\n * @param expression Optional facial expression.\n */\n place(\n output: Pick<\n Pick<IAutoMovieHumanSkeleton.IOutput, \"bones\" | \"posed\">,\n \"posed\"\n >,\n head?: AutoMovieHumanCartoon.IHeadPose,\n expression?: AutoMovieHumanCartoon.IExpression,\n ): void;\n\n /** Release the face and the drawing once; later `place` calls throw. */\n dispose(): void;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,SAAgB,kCAAkC,OAOJ;CAC5C,MAAM,UAA0C,kBAC9C,MAAM,SAAS,CAAC,CAAC,GACjB,MAAM,eAAe,KAAA,IAAY,CAAC,IAAI,EAAE,YAAY,MAAM,WAAW,CACvE;CACA,IAAI,OAAwD;CAC5D,IAAI,MAAqB;CACzB,IAAI,WAAoB;CACxB,MAAM,SAAoD;EACxD,QAAQ,QAAQ;EAChB;EACA,aAAa,CAAC;EACd,QACE,QAIA,MACA,eACS;GACT,IAAI,UAAU,MAAM,IAAI,MAAM,gCAAgC;GAC9D,QAAQ,QAAQ,MAAM;GACtB,MAAM,OAAe,KAAK,UAAU,CAAC,QAAQ,MAAM,cAAc,IAAI,CAAC;GACtE,IAAI,SAAS,KAAK;GAClB,MAAM,QACJ,sBAAsB,QAAQ,MAAM,YAAY,IAAI;GACtD,IAAI,SAAS,MAAM;IACjB,QAAQ,KAAK,OAAO,OAAO,KAAK,MAAM;IACtC,KAAK,QAAQ;GACf;GACA,OAAO;GACP,MAAM;GACN,QAAQ,KAAK,OAAO,IAAI,MAAM,MAAM;GACpC,OAAO,cAAc,MAAM;EAC7B;EACA,eAAqB;GACnB,IAAI,UAAU;GACd,WAAW;GACX,IAAI,SAAS,MAAM;IACjB,QAAQ,KAAK,OAAO,OAAO,KAAK,MAAM;IACtC,KAAK,QAAQ;IACb,OAAO;GACT;GACA,QAAQ,QAAQ;EAClB;CACF;CACA,OAAO;AACT"}
@@ -104,7 +104,7 @@ export * from "./buildPlantingObject.js";
104
104
  export * from "./subjectViewpoint/index.js";
105
105
  export * from "./inspection/index.js";
106
106
  export * from "./IAutoMovieFilmBeautyLayer.js";
107
- export * from "./AutoMovieFilmBeautyComposition.js";
107
+ export type { IAutoMovieFilmBeautyComposition } from "@automovie/interface";
108
108
  export * from "./resolveAutoMovieFilmBeautyComposition.js";
109
109
  export * from "./renderFadeToBlackFrame.js";
110
110
  export * from "./disposeFadeToBlack.js";
@@ -123,7 +123,6 @@ __exportStar(require("./buildPlantingObject.js"), exports);
123
123
  __exportStar(require("./subjectViewpoint/index.js"), exports);
124
124
  __exportStar(require("./inspection/index.js"), exports);
125
125
  __exportStar(require("./IAutoMovieFilmBeautyLayer.js"), exports);
126
- __exportStar(require("./AutoMovieFilmBeautyComposition.js"), exports);
127
126
  __exportStar(require("./resolveAutoMovieFilmBeautyComposition.js"), exports);
128
127
  __exportStar(require("./renderFadeToBlackFrame.js"), exports);
129
128
  __exportStar(require("./disposeFadeToBlack.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scene/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,kEAAgD;AAChD,+EAA6D;AAC7D,mEAAiD;AACjD,6DAA2C;AAC3C,sEAAoD;AACpD,yEAAuD;AACvD,yEAAuD;AACvD,iGAA6F;AAApF,2JAAA,kCAAkC,OAAA;AAC3C,mGAA+F;AAAtF,6JAAA,mCAAmC,OAAA;AAC5C,kEAAgD;AAChD,+DAA6C;AAC7C,iEAA+C;AAC/C,qDAAmC;AACnC,2EAAyD;AACzD,qDAAmC;AACnC,uDAAqC;AACrC,+DAA6C;AAC7C,2DAAyC;AACzC,yEAAuD;AACvD,+DAA6C;AAC7C,iEAA+C;AAC/C,oEAAkD;AAClD,oEAAkD;AAClD,iEAA+C;AAC/C,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C,yEAAuD;AACvD,qDAAmC;AACnC,kDAAgC;AAChC,iEAA+C;AAC/C,yEAAuD;AACvD,mEAAiD;AACjD,8DAA4C;AAC5C,6DAA2C;AAC3C,2EAAyD;AACzD,gEAA8C;AAC9C,gEAA8C;AAC9C,8EAA4D;AAC5D,wEAAsD;AACtD,yEAAuD;AACvD,sEAAoD;AACpD,mEAAiD;AACjD,yEAAuD;AACvD,oEAAkD;AAClD,sEAAoD;AACpD,0EAAwD;AACxD,2EAAyD;AACzD,uDAAqC;AACrC,8DAA4C;AAC5C,sEAAoD;AACpD,6DAA2C;AAC3C,kEAAgD;AAChD,uDAAqC;AACrC,iDAA+B;AAC/B,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,yDAAuC;AACvC,uEAAqD;AACrD,0DAAwC;AACxC,qEAAmD;AACnD,wEAAsD;AACtD,uEAAqD;AACrD,gEAA8C;AAC9C,6DAA2C;AAC3C,uDAAqC;AACrC,4DAA0C;AAC1C,yDAAuC;AACvC,8CAA4B;AAC5B,oDAAkC;AAClC,gEAA8C;AAC9C,2DAAyC;AACzC,gEAA8C;AAC9C,2DAAyC;AACzC,8DAA4C;AAC5C,wDAAsC;AACtC,iEAA+C;AAE/C,6EAA2D;AAC3D,8DAA4C;AAC5C,0DAAwC;AACxC,gEAA8C;AAC9C,gFAA8D;AAC9D,wEAAsD;AACtD,8EAA4D;AAC5D,+EAA6D;AAC7D,uEAAqD;AACrD,6FAAyF;AAAhF,uJAAA,gCAAgC,OAAA;AACzC,iGAA6F;AAApF,2JAAA,kCAAkC,OAAA;AAC3C,2DAAyC;AACzC,wEAAsD;AACtD,wEAAsD;AACtD,sEAAoD"}
@@ -10,6 +10,12 @@ import { AUTO_MOVIE_INSPECTION_PALETTE } from "./inspection/AUTO_MOVIE_INSPECTIO
10
10
  import { autoMovieInspectionPathOf } from "./inspection/autoMovieInspectionPathOf.mjs";
11
11
  import { listAutoMovieInspectionPaths } from "./inspection/listAutoMovieInspectionPaths.mjs";
12
12
  import { autoMovieViewerNamedViewpoints } from "./subjectViewpoint/autoMovieViewerNamedViewpoints.mjs";
13
+ import { AUTO_MOVIE_INSPECTION_KINDS } from "./inspection/AUTO_MOVIE_INSPECTION_KINDS.mjs";
14
+ import { markAutoMovieInspectionTrails } from "./inspection/markAutoMovieInspectionTrails.mjs";
15
+ import { planAutoMovieInspectionTrailTimes } from "./inspection/planAutoMovieInspectionTrailTimes.mjs";
16
+ import { frameAutoMovieViewerSubject } from "./subjectViewpoint/frameAutoMovieViewerSubject.mjs";
17
+ import { resolveAutoMovieInspectionView } from "./inspection/resolveAutoMovieInspectionView.mjs";
18
+ import { sampleAutoMovieInspectionTrails } from "./inspection/sampleAutoMovieInspectionTrails.mjs";
13
19
  import "./analysisOverlay.mjs";
14
20
  import { buildAutoMovieConstruction } from "./buildAutoMovieConstruction.mjs";
15
21
  import { createAutoMovieMetricOrthographicCamera } from "./createAutoMovieMetricOrthographicCamera.mjs";
@@ -60,7 +66,6 @@ import { measureAutoMovieInspectionBounds } from "./inspection/measureAutoMovieI
60
66
  import { measureAutoMovieInspectionPaths } from "./inspection/measureAutoMovieInspectionPaths.mjs";
61
67
  import { focusAutoMovieInspection } from "./inspection/focusAutoMovieInspection.mjs";
62
68
  import { legendAutoMovieInspectionMarks } from "./inspection/legendAutoMovieInspectionMarks.mjs";
63
- import { AUTO_MOVIE_INSPECTION_KINDS } from "./inspection/AUTO_MOVIE_INSPECTION_KINDS.mjs";
64
69
  import { listAutoMovieInspectionKinds } from "./inspection/listAutoMovieInspectionKinds.mjs";
65
70
  import { measureAutoMovieInspectionDefects } from "./inspection/measureAutoMovieInspectionDefects.mjs";
66
71
  import { measureAutoMovieInspectionEdges } from "./inspection/measureAutoMovieInspectionEdges.mjs";
@@ -69,11 +74,6 @@ import { mergeAutoMovieInspectionLegends } from "./inspection/mergeAutoMovieInsp
69
74
  import { placeAutoMovieInspectionLabels } from "./inspection/placeAutoMovieInspectionLabels.mjs";
70
75
  import { resolveAutoMovieInspectionColors } from "./inspection/resolveAutoMovieInspectionColors.mjs";
71
76
  import { applyAutoMovieInspection } from "./inspection/applyAutoMovieInspection.mjs";
72
- import { markAutoMovieInspectionTrails } from "./inspection/markAutoMovieInspectionTrails.mjs";
73
- import { planAutoMovieInspectionTrailTimes } from "./inspection/planAutoMovieInspectionTrailTimes.mjs";
74
- import { frameAutoMovieViewerSubject } from "./subjectViewpoint/frameAutoMovieViewerSubject.mjs";
75
- import { resolveAutoMovieInspectionView } from "./inspection/resolveAutoMovieInspectionView.mjs";
76
- import { sampleAutoMovieInspectionTrails } from "./inspection/sampleAutoMovieInspectionTrails.mjs";
77
77
  import { autoMovieAnalysisRampColor } from "./autoMovieAnalysisRampColor.mjs";
78
78
  import { buildAnalysisOverlayObject } from "./buildAnalysisOverlayObject.mjs";
79
79
  import "./detailNormalShading/index.mjs";
@@ -1,3 +1,4 @@
1
+ import type { IAutoMovieInspectionKindStyle } from "@automovie/interface";
1
2
  /**
2
3
  * The mark kinds the inspection itself produces, with the legend label and colour each is drawn in, in the order a list of kinds shows them.
3
4
  *
@@ -14,7 +15,4 @@
14
15
  * | `trail` | `trail` | Chocolate `d2691e` |
15
16
  * | `trail/now` | `trail at the drawn second` | Dodger blue `1e90ff` |
16
17
  */
17
- export declare const AUTO_MOVIE_INSPECTION_KINDS: Readonly<Record<string, {
18
- readonly label: string;
19
- readonly color: number;
20
- }>>;
18
+ export declare const AUTO_MOVIE_INSPECTION_KINDS: Readonly<Record<string, Readonly<IAutoMovieInspectionKindStyle>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"AUTO_MOVIE_INSPECTION_KINDS.js","sourceRoot":"","sources":["../../../src/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.ts"],"names":[],"mappings":";;;AAAA,yFAAmF;AAEnF;;;;;;;;;;;;;;;GAeG;AACU,QAAA,2BAA2B,GAEpC;IACF,IAAI,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,gEAA6B,CAAC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,KAAK,EAAE,gEAA6B,CAAC,MAAM,CAAC,YAAY;KACzD;IACD,mBAAmB,EAAE;QACnB,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,gEAA6B,CAAC,MAAM,CAAC,UAAU;KACvD;IACD,eAAe,EAAE;QACf,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,gEAA6B,CAAC,MAAM,CAAC,MAAM;KACnD;IACD,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE;IAC1C,WAAW,EAAE,EAAE,KAAK,EAAE,2BAA2B,EAAE,KAAK,EAAE,QAAQ,EAAE;CACrE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AUTO_MOVIE_INSPECTION_KINDS.mjs","names":[],"sources":["../../../src/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.ts"],"sourcesContent":["import { AUTO_MOVIE_INSPECTION_PALETTE } from \"./AUTO_MOVIE_INSPECTION_PALETTE.js\";\n\n/**\n * The mark kinds the inspection itself produces, with the legend label and colour each is drawn in, in the order a list of kinds shows them.\n *\n * `edge` and the `defect/<kind>` kinds are measured on the drawn meshes; `trail` and `trail/now` are drawn from sampled trails. Every producer of these kinds reads its label and colour here, and `listAutoMovieInspectionKinds` lists them, so a panel, a capture plan and the drawing agree. Supplied kinds are not listed: their producers own them.\n *\n * | Kind | Label | Colour |\n * | --- | --- | --- |\n * | `edge` | `mesh edge` | Dark blue `2b3a67` |\n * | `defect/open` | `open edge` | Red `ff3b30` |\n * | `defect/non-manifold` | `non-manifold edge` | Purple `b14aff` |\n * | `defect/inconsistent` | `inconsistent edge` | Yellow `ffcc00` |\n * | `defect/degenerate` | `degenerate triangle` | White `ffffff` |\n * | `defect/sliver` | `sliver triangle` | Orange `ff9500` |\n * | `trail` | `trail` | Chocolate `d2691e` |\n * | `trail/now` | `trail at the drawn second` | Dodger blue `1e90ff` |\n */\nexport const AUTO_MOVIE_INSPECTION_KINDS: Readonly<\n Record<string, { readonly label: string; readonly color: number }>\n> = {\n edge: { label: \"mesh edge\", color: AUTO_MOVIE_INSPECTION_PALETTE.edge },\n \"defect/open\": {\n label: \"open edge\",\n color: AUTO_MOVIE_INSPECTION_PALETTE.defect.open,\n },\n \"defect/non-manifold\": {\n label: \"non-manifold edge\",\n color: AUTO_MOVIE_INSPECTION_PALETTE.defect[\"non-manifold\"],\n },\n \"defect/inconsistent\": {\n label: \"inconsistent edge\",\n color: AUTO_MOVIE_INSPECTION_PALETTE.defect.inconsistent,\n },\n \"defect/degenerate\": {\n label: \"degenerate triangle\",\n color: AUTO_MOVIE_INSPECTION_PALETTE.defect.degenerate,\n },\n \"defect/sliver\": {\n label: \"sliver triangle\",\n color: AUTO_MOVIE_INSPECTION_PALETTE.defect.sliver,\n },\n trail: { label: \"trail\", color: 0xd2691e },\n \"trail/now\": { label: \"trail at the drawn second\", color: 0x1e90ff },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,MAAa,8BAET;CACF,MAAM;EAAE,OAAO;EAAa,OAAO,8BAA8B;CAAK;CACtE,eAAe;EACb,OAAO;EACP,OAAO,8BAA8B,OAAO;CAC9C;CACA,uBAAuB;EACrB,OAAO;EACP,OAAO,8BAA8B,OAAO;CAC9C;CACA,uBAAuB;EACrB,OAAO;EACP,OAAO,8BAA8B,OAAO;CAC9C;CACA,qBAAqB;EACnB,OAAO;EACP,OAAO,8BAA8B,OAAO;CAC9C;CACA,iBAAiB;EACf,OAAO;EACP,OAAO,8BAA8B,OAAO;CAC9C;CACA,OAAO;EAAE,OAAO;EAAS,OAAO;CAAS;CACzC,aAAa;EAAE,OAAO;EAA6B,OAAO;CAAS;AACrE"}
1
+ {"version":3,"file":"AUTO_MOVIE_INSPECTION_KINDS.mjs","names":[],"sources":["../../../src/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.ts"],"sourcesContent":["import type { IAutoMovieInspectionKindStyle } from \"@automovie/interface\";\n\nimport { AUTO_MOVIE_INSPECTION_PALETTE } from \"./AUTO_MOVIE_INSPECTION_PALETTE.js\";\n\n/**\n * The mark kinds the inspection itself produces, with the legend label and colour each is drawn in, in the order a list of kinds shows them.\n *\n * `edge` and the `defect/<kind>` kinds are measured on the drawn meshes; `trail` and `trail/now` are drawn from sampled trails. Every producer of these kinds reads its label and colour here, and `listAutoMovieInspectionKinds` lists them, so a panel, a capture plan and the drawing agree. Supplied kinds are not listed: their producers own them.\n *\n * | Kind | Label | Colour |\n * | --- | --- | --- |\n * | `edge` | `mesh edge` | Dark blue `2b3a67` |\n * | `defect/open` | `open edge` | Red `ff3b30` |\n * | `defect/non-manifold` | `non-manifold edge` | Purple `b14aff` |\n * | `defect/inconsistent` | `inconsistent edge` | Yellow `ffcc00` |\n * | `defect/degenerate` | `degenerate triangle` | White `ffffff` |\n * | `defect/sliver` | `sliver triangle` | Orange `ff9500` |\n * | `trail` | `trail` | Chocolate `d2691e` |\n * | `trail/now` | `trail at the drawn second` | Dodger blue `1e90ff` |\n */\nexport const AUTO_MOVIE_INSPECTION_KINDS: Readonly<\n Record<string, Readonly<IAutoMovieInspectionKindStyle>>\n> = {\n edge: { label: \"mesh edge\", color: AUTO_MOVIE_INSPECTION_PALETTE.edge },\n \"defect/open\": {\n label: \"open edge\",\n color: AUTO_MOVIE_INSPECTION_PALETTE.defect.open,\n },\n \"defect/non-manifold\": {\n label: \"non-manifold edge\",\n color: AUTO_MOVIE_INSPECTION_PALETTE.defect[\"non-manifold\"],\n },\n \"defect/inconsistent\": {\n label: \"inconsistent edge\",\n color: AUTO_MOVIE_INSPECTION_PALETTE.defect.inconsistent,\n },\n \"defect/degenerate\": {\n label: \"degenerate triangle\",\n color: AUTO_MOVIE_INSPECTION_PALETTE.defect.degenerate,\n },\n \"defect/sliver\": {\n label: \"sliver triangle\",\n color: AUTO_MOVIE_INSPECTION_PALETTE.defect.sliver,\n },\n trail: { label: \"trail\", color: 0xd2691e },\n \"trail/now\": { label: \"trail at the drawn second\", color: 0x1e90ff },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,MAAa,8BAET;CACF,MAAM;EAAE,OAAO;EAAa,OAAO,8BAA8B;CAAK;CACtE,eAAe;EACb,OAAO;EACP,OAAO,8BAA8B,OAAO;CAC9C;CACA,uBAAuB;EACrB,OAAO;EACP,OAAO,8BAA8B,OAAO;CAC9C;CACA,uBAAuB;EACrB,OAAO;EACP,OAAO,8BAA8B,OAAO;CAC9C;CACA,qBAAqB;EACnB,OAAO;EACP,OAAO,8BAA8B,OAAO;CAC9C;CACA,iBAAiB;EACf,OAAO;EACP,OAAO,8BAA8B,OAAO;CAC9C;CACA,OAAO;EAAE,OAAO;EAAS,OAAO;CAAS;CACzC,aAAa;EAAE,OAAO;EAA6B,OAAO;CAAS;AACrE"}
@@ -1,4 +1,4 @@
1
- import type { IAutoMovieMeshDefect } from "@automovie/engine";
1
+ import type { IAutoMovieMeshDefect } from "@automovie/interface";
2
2
  /**
3
3
  * Colours the inspection itself owns, as sRGB hex: the flag every anomaly takes, the kinds it measures on meshes, defects and edges, and the surface colours of its two shades.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"AUTO_MOVIE_INSPECTION_PALETTE.mjs","names":[],"sources":["../../../src/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.ts"],"sourcesContent":["import type { IAutoMovieMeshDefect } from \"@automovie/engine\";\n\n/**\n * Colours the inspection itself owns, as sRGB hex: the flag every anomaly takes, the kinds it measures on meshes, defects and edges, and the surface colours of its two shades.\n *\n * Supplied marks bring their own colours, so this table lists no curve, joint or contact. A mark kind may take none of the reserved colours: the flag always, `clay` under the clay shade, `front` and `back` under the faces shade.\n *\n * | Use | Colour |\n * | --- | --- |\n * | Flagged mark of any kind | Magenta `ff00ff` |\n * | Open edge | Red `ff3b30` |\n * | Non-manifold edge | Purple `b14aff` |\n * | Inconsistent edge | Yellow `ffcc00` |\n * | Degenerate triangle | White `ffffff` |\n * | Sliver triangle | Orange `ff9500` |\n * | Mesh edge | Dark blue `2b3a67` |\n * | Clay surface | Grey `bdbdbd` |\n * | Front of a surface, under the faces shade | Grey `b0b0b0` |\n * | Back of a surface, under the faces shade | Maroon `8b1a1a` |\n */\nexport const AUTO_MOVIE_INSPECTION_PALETTE: {\n /** Colour of a flagged mark, whatever its kind. */\n readonly flagged: number;\n\n /** Colour of a measured mesh defect, by its kind. */\n readonly defect: Readonly<Record<IAutoMovieMeshDefect.Kind, number>>;\n\n /** Colour of a mesh's triangle edges, dark so they read over the clay grey and apart from every shade's colours. */\n readonly edge: number;\n\n /** Surface colour of the clay shade, before lighting. */\n readonly clay: number;\n\n /** Colour of a surface seen from its front under the faces shade. */\n readonly front: number;\n\n /** Colour of a surface seen from its back under the faces shade. */\n readonly back: number;\n} = {\n flagged: 0xff00ff,\n defect: {\n open: 0xff3b30,\n \"non-manifold\": 0xb14aff,\n inconsistent: 0xffcc00,\n degenerate: 0xffffff,\n sliver: 0xff9500,\n },\n edge: 0x2b3a67,\n clay: 0xbdbdbd,\n front: 0xb0b0b0,\n back: 0x8b1a1a,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBA,MAAa,gCAkBT;CACF,SAAS;CACT,QAAQ;EACN,MAAM;EACN,gBAAgB;EAChB,cAAc;EACd,YAAY;EACZ,QAAQ;CACV;CACA,MAAM;CACN,MAAM;CACN,OAAO;CACP,MAAM;AACR"}
1
+ {"version":3,"file":"AUTO_MOVIE_INSPECTION_PALETTE.mjs","names":[],"sources":["../../../src/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.ts"],"sourcesContent":["import type { IAutoMovieMeshDefect } from \"@automovie/interface\";\n\n/**\n * Colours the inspection itself owns, as sRGB hex: the flag every anomaly takes, the kinds it measures on meshes, defects and edges, and the surface colours of its two shades.\n *\n * Supplied marks bring their own colours, so this table lists no curve, joint or contact. A mark kind may take none of the reserved colours: the flag always, `clay` under the clay shade, `front` and `back` under the faces shade.\n *\n * | Use | Colour |\n * | --- | --- |\n * | Flagged mark of any kind | Magenta `ff00ff` |\n * | Open edge | Red `ff3b30` |\n * | Non-manifold edge | Purple `b14aff` |\n * | Inconsistent edge | Yellow `ffcc00` |\n * | Degenerate triangle | White `ffffff` |\n * | Sliver triangle | Orange `ff9500` |\n * | Mesh edge | Dark blue `2b3a67` |\n * | Clay surface | Grey `bdbdbd` |\n * | Front of a surface, under the faces shade | Grey `b0b0b0` |\n * | Back of a surface, under the faces shade | Maroon `8b1a1a` |\n */\nexport const AUTO_MOVIE_INSPECTION_PALETTE: {\n /** Colour of a flagged mark, whatever its kind. */\n readonly flagged: number;\n\n /** Colour of a measured mesh defect, by its kind. */\n readonly defect: Readonly<Record<IAutoMovieMeshDefect.Kind, number>>;\n\n /** Colour of a mesh's triangle edges, dark so they read over the clay grey and apart from every shade's colours. */\n readonly edge: number;\n\n /** Surface colour of the clay shade, before lighting. */\n readonly clay: number;\n\n /** Colour of a surface seen from its front under the faces shade. */\n readonly front: number;\n\n /** Colour of a surface seen from its back under the faces shade. */\n readonly back: number;\n} = {\n flagged: 0xff00ff,\n defect: {\n open: 0xff3b30,\n \"non-manifold\": 0xb14aff,\n inconsistent: 0xffcc00,\n degenerate: 0xffffff,\n sliver: 0xff9500,\n },\n edge: 0x2b3a67,\n clay: 0xbdbdbd,\n front: 0xb0b0b0,\n back: 0x8b1a1a,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBA,MAAa,gCAkBT;CACF,SAAS;CACT,QAAQ;EACN,MAAM;EACN,gBAAgB;EAChB,cAAc;EACd,YAAY;EACZ,QAAQ;CACV;CACA,MAAM;CACN,MAAM;CACN,OAAO;CACP,MAAM;AACR"}
@@ -1,13 +1,12 @@
1
- import type { IAutoMovieMark } from "@automovie/engine";
1
+ import type { IAutoMovieInspectionRequest, IAutoMovieMark } from "@automovie/interface";
2
2
  import type * as THREE from "three";
3
3
  import type { IAutoMovieSectionRenderer } from "../IAutoMovieSectionRenderer.js";
4
- import type { IAutoMovieInspectionRequest } from "./IAutoMovieInspectionRequest.js";
5
4
  /**
6
5
  * What `applyAutoMovieInspection` works on: a built scene, the request, and the two things only the caller holds.
7
6
  *
8
7
  * @evidence contracts/development/design.md#principled-representation The scene and the request are the whole input of a picture; marks exist only where an owner supplies findings or construction, and a renderer only where WebGL draws, so both are optional.
9
8
  * @evidence contracts/development/design.md#minimal-and-owned-surface Four members, each owned elsewhere: the scene by its builder, the request by its parser, the marks by their producers and the clipping switch by the renderer.
10
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No camera, size or time is taken, so the same applied inspection serves every view and every frame of a run; marks that change with time are handed to the handle's `update`.
9
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts A handle may serve multiple views/frames only while its concrete inspected objects remain. Marks on those objects update through the handle; replacing the object graph requires restoring it and applying a new inspection.
11
10
  * @evidence contracts/development/common.md#meaningful-documentation Each member states who supplies it and what its absence means.
12
11
  */
13
12
  export interface IApplyAutoMovieInspectionProps {