@automovie/human 0.0.0 → 0.2.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 (233) hide show
  1. package/README.md +29 -16
  2. package/lib/generation/AutoMovieHumanDigitJoints.d.ts +8 -26
  3. package/lib/generation/AutoMovieHumanDigitJoints.js +9 -37
  4. package/lib/generation/AutoMovieHumanDigitJoints.js.map +1 -1
  5. package/lib/generation/{AutoMovieHumanLegSection.d.ts → AutoMovieHumanLegSectionProportion.d.ts} +1 -1
  6. package/lib/generation/{AutoMovieHumanLegSection.js → AutoMovieHumanLegSectionProportion.js} +17 -14
  7. package/lib/generation/AutoMovieHumanLegSectionProportion.js.map +1 -0
  8. package/lib/generation/arm/AutoMovieHumanArmFrame.js +2 -2
  9. package/lib/generation/arm/AutoMovieHumanArmFrame.js.map +1 -1
  10. package/lib/generation/arm/index.d.ts +28 -0
  11. package/lib/generation/arm/index.js +45 -0
  12. package/lib/generation/arm/index.js.map +1 -0
  13. package/lib/generation/conic/AutoMovieHumanConicLoft.d.ts +154 -0
  14. package/lib/generation/conic/AutoMovieHumanConicLoft.js +430 -0
  15. package/lib/generation/conic/AutoMovieHumanConicLoft.js.map +1 -0
  16. package/lib/generation/conic/AutoMovieHumanConicPose.d.ts +92 -0
  17. package/lib/generation/conic/AutoMovieHumanConicPose.js +202 -0
  18. package/lib/generation/conic/AutoMovieHumanConicPose.js.map +1 -0
  19. package/lib/generation/conic/AutoMovieHumanConicRelief.d.ts +52 -0
  20. package/lib/generation/conic/AutoMovieHumanConicRelief.js +88 -0
  21. package/lib/generation/conic/AutoMovieHumanConicRelief.js.map +1 -0
  22. package/lib/generation/conic/AutoMovieHumanConicSection.d.ts +252 -0
  23. package/lib/generation/conic/AutoMovieHumanConicSection.js +567 -0
  24. package/lib/generation/conic/AutoMovieHumanConicSection.js.map +1 -0
  25. package/lib/generation/f1/AutoMovieHumanF1.d.ts +265 -0
  26. package/lib/generation/f1/AutoMovieHumanF1.js +1254 -0
  27. package/lib/generation/f1/AutoMovieHumanF1.js.map +1 -0
  28. package/lib/generation/f1/AutoMovieHumanF1Antihelix.d.ts +23 -0
  29. package/lib/generation/f1/AutoMovieHumanF1Antihelix.js +65 -0
  30. package/lib/generation/f1/AutoMovieHumanF1Antihelix.js.map +1 -0
  31. package/lib/generation/f1/AutoMovieHumanF1Arm.d.ts +18 -0
  32. package/lib/generation/f1/AutoMovieHumanF1Arm.js +82 -0
  33. package/lib/generation/f1/AutoMovieHumanF1Arm.js.map +1 -0
  34. package/lib/generation/f1/AutoMovieHumanF1Axilla.d.ts +18 -0
  35. package/lib/generation/f1/AutoMovieHumanF1Axilla.js +91 -0
  36. package/lib/generation/f1/AutoMovieHumanF1Axilla.js.map +1 -0
  37. package/lib/generation/f1/AutoMovieHumanF1Breast.d.ts +18 -0
  38. package/lib/generation/f1/AutoMovieHumanF1Breast.js +75 -0
  39. package/lib/generation/f1/AutoMovieHumanF1Breast.js.map +1 -0
  40. package/lib/generation/f1/AutoMovieHumanF1Concha.d.ts +40 -0
  41. package/lib/generation/f1/AutoMovieHumanF1Concha.js +81 -0
  42. package/lib/generation/f1/AutoMovieHumanF1Concha.js.map +1 -0
  43. package/lib/generation/f1/AutoMovieHumanF1FingerIndex.d.ts +18 -0
  44. package/lib/generation/f1/AutoMovieHumanF1FingerIndex.js +59 -0
  45. package/lib/generation/f1/AutoMovieHumanF1FingerIndex.js.map +1 -0
  46. package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.d.ts +18 -0
  47. package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.js +59 -0
  48. package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.js.map +1 -0
  49. package/lib/generation/f1/AutoMovieHumanF1FingerPinky.d.ts +18 -0
  50. package/lib/generation/f1/AutoMovieHumanF1FingerPinky.js +75 -0
  51. package/lib/generation/f1/AutoMovieHumanF1FingerPinky.js.map +1 -0
  52. package/lib/generation/f1/AutoMovieHumanF1FingerRing.d.ts +18 -0
  53. package/lib/generation/f1/AutoMovieHumanF1FingerRing.js +75 -0
  54. package/lib/generation/f1/AutoMovieHumanF1FingerRing.js.map +1 -0
  55. package/lib/generation/f1/AutoMovieHumanF1FingerThumb.d.ts +18 -0
  56. package/lib/generation/f1/AutoMovieHumanF1FingerThumb.js +59 -0
  57. package/lib/generation/f1/AutoMovieHumanF1FingerThumb.js.map +1 -0
  58. package/lib/generation/f1/AutoMovieHumanF1Frames.d.ts +97 -0
  59. package/lib/generation/f1/AutoMovieHumanF1Frames.js +160 -0
  60. package/lib/generation/f1/AutoMovieHumanF1Frames.js.map +1 -0
  61. package/lib/generation/f1/AutoMovieHumanF1Hand.d.ts +18 -0
  62. package/lib/generation/f1/AutoMovieHumanF1Hand.js +81 -0
  63. package/lib/generation/f1/AutoMovieHumanF1Hand.js.map +1 -0
  64. package/lib/generation/f1/AutoMovieHumanF1Helix.d.ts +20 -0
  65. package/lib/generation/f1/AutoMovieHumanF1Helix.js +64 -0
  66. package/lib/generation/f1/AutoMovieHumanF1Helix.js.map +1 -0
  67. package/lib/generation/f1/AutoMovieHumanF1Joints.d.ts +231 -0
  68. package/lib/generation/f1/AutoMovieHumanF1Joints.js +249 -0
  69. package/lib/generation/f1/AutoMovieHumanF1Joints.js.map +1 -0
  70. package/lib/generation/f1/AutoMovieHumanF1Landmarks.d.ts +86 -0
  71. package/lib/generation/f1/AutoMovieHumanF1Landmarks.js +89 -0
  72. package/lib/generation/f1/AutoMovieHumanF1Landmarks.js.map +1 -0
  73. package/lib/generation/f1/AutoMovieHumanF1Leg.d.ts +18 -0
  74. package/lib/generation/f1/AutoMovieHumanF1Leg.js +82 -0
  75. package/lib/generation/f1/AutoMovieHumanF1Leg.js.map +1 -0
  76. package/lib/generation/f1/AutoMovieHumanF1Nose.d.ts +18 -0
  77. package/lib/generation/f1/AutoMovieHumanF1Nose.js +82 -0
  78. package/lib/generation/f1/AutoMovieHumanF1Nose.js.map +1 -0
  79. package/lib/generation/f1/AutoMovieHumanF1Nostril.d.ts +18 -0
  80. package/lib/generation/f1/AutoMovieHumanF1Nostril.js +59 -0
  81. package/lib/generation/f1/AutoMovieHumanF1Nostril.js.map +1 -0
  82. package/lib/generation/f1/AutoMovieHumanF1Placement.d.ts +75 -0
  83. package/lib/generation/f1/AutoMovieHumanF1Placement.js +151 -0
  84. package/lib/generation/f1/AutoMovieHumanF1Placement.js.map +1 -0
  85. package/lib/generation/f1/AutoMovieHumanF1Placing.d.ts +45 -0
  86. package/lib/generation/f1/AutoMovieHumanF1Placing.js +301 -0
  87. package/lib/generation/f1/AutoMovieHumanF1Placing.js.map +1 -0
  88. package/lib/generation/f1/AutoMovieHumanF1Plate.d.ts +18 -0
  89. package/lib/generation/f1/AutoMovieHumanF1Plate.js +59 -0
  90. package/lib/generation/f1/AutoMovieHumanF1Plate.js.map +1 -0
  91. package/lib/generation/f1/AutoMovieHumanF1ToeBig.d.ts +18 -0
  92. package/lib/generation/f1/AutoMovieHumanF1ToeBig.js +59 -0
  93. package/lib/generation/f1/AutoMovieHumanF1ToeBig.js.map +1 -0
  94. package/lib/generation/f1/AutoMovieHumanF1ToeIndex.d.ts +18 -0
  95. package/lib/generation/f1/AutoMovieHumanF1ToeIndex.js +59 -0
  96. package/lib/generation/f1/AutoMovieHumanF1ToeIndex.js.map +1 -0
  97. package/lib/generation/f1/AutoMovieHumanF1ToeLittle.d.ts +18 -0
  98. package/lib/generation/f1/AutoMovieHumanF1ToeLittle.js +75 -0
  99. package/lib/generation/f1/AutoMovieHumanF1ToeLittle.js.map +1 -0
  100. package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.d.ts +18 -0
  101. package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.js +75 -0
  102. package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.js.map +1 -0
  103. package/lib/generation/f1/AutoMovieHumanF1ToeRing.d.ts +18 -0
  104. package/lib/generation/f1/AutoMovieHumanF1ToeRing.js +75 -0
  105. package/lib/generation/f1/AutoMovieHumanF1ToeRing.js.map +1 -0
  106. package/lib/generation/f1/AutoMovieHumanF1Trunk.d.ts +18 -0
  107. package/lib/generation/f1/AutoMovieHumanF1Trunk.js +79 -0
  108. package/lib/generation/f1/AutoMovieHumanF1Trunk.js.map +1 -0
  109. package/lib/generation/f1/AutoMovieHumanF1Vault.d.ts +18 -0
  110. package/lib/generation/f1/AutoMovieHumanF1Vault.js +75 -0
  111. package/lib/generation/f1/AutoMovieHumanF1Vault.js.map +1 -0
  112. package/lib/generation/foot/index.d.ts +51 -0
  113. package/lib/generation/foot/index.js +68 -0
  114. package/lib/generation/foot/index.js.map +1 -0
  115. package/lib/generation/frame/AutoMovieHumanSegmentFrame.d.ts +149 -0
  116. package/lib/generation/frame/AutoMovieHumanSegmentFrame.js +290 -0
  117. package/lib/generation/frame/AutoMovieHumanSegmentFrame.js.map +1 -0
  118. package/lib/generation/hand/index.d.ts +53 -0
  119. package/lib/generation/hand/index.js +70 -0
  120. package/lib/generation/hand/index.js.map +1 -0
  121. package/lib/generation/head/index.d.ts +37 -0
  122. package/lib/generation/head/index.js +54 -0
  123. package/lib/generation/head/index.js.map +1 -0
  124. package/lib/generation/index.d.ts +176 -0
  125. package/lib/generation/index.js +193 -0
  126. package/lib/generation/index.js.map +1 -0
  127. package/lib/generation/leg/AutoMovieHumanLegLaws.d.ts +1 -1
  128. package/lib/generation/leg/AutoMovieHumanLegLaws.js +23 -11
  129. package/lib/generation/leg/AutoMovieHumanLegLaws.js.map +1 -1
  130. package/lib/generation/leg/index.d.ts +34 -0
  131. package/lib/generation/leg/index.js +51 -0
  132. package/lib/generation/leg/index.js.map +1 -0
  133. package/lib/generation/limb/{AutoMovieHumanJointTurn.d.ts → AutoMovieHumanBendArc.d.ts} +1 -1
  134. package/lib/generation/limb/{AutoMovieHumanJointTurn.js → AutoMovieHumanBendArc.js} +12 -8
  135. package/lib/generation/limb/AutoMovieHumanBendArc.js.map +1 -0
  136. package/lib/generation/limb/AutoMovieHumanDigitWalk.js +2 -2
  137. package/lib/generation/limb/AutoMovieHumanDigitWalk.js.map +1 -1
  138. package/lib/generation/limb/AutoMovieHumanWalkPart.js +72 -17
  139. package/lib/generation/limb/AutoMovieHumanWalkPart.js.map +1 -1
  140. package/lib/generation/limb/index.d.ts +12 -0
  141. package/lib/generation/limb/index.js +29 -0
  142. package/lib/generation/limb/index.js.map +1 -0
  143. package/lib/generation/trunk/index.d.ts +17 -0
  144. package/lib/generation/trunk/index.js +34 -0
  145. package/lib/generation/trunk/index.js.map +1 -0
  146. package/lib/generation/web/index.d.ts +14 -0
  147. package/lib/generation/web/index.js +31 -0
  148. package/lib/generation/web/index.js.map +1 -0
  149. package/lib/index.d.ts +14 -4
  150. package/lib/index.js +14 -9
  151. package/lib/index.js.map +1 -1
  152. package/lib/lofting/index.d.ts +14 -0
  153. package/lib/lofting/index.js +31 -0
  154. package/lib/lofting/index.js.map +1 -0
  155. package/lib/skeleton/AutoMovieHumanCanonicalBody.d.ts +7 -3
  156. package/lib/skeleton/AutoMovieHumanCanonicalBody.js +31 -3
  157. package/lib/skeleton/AutoMovieHumanCanonicalBody.js.map +1 -1
  158. package/lib/skeleton/AutoMovieHumanCanonicalProfile.d.ts +22 -31
  159. package/lib/skeleton/AutoMovieHumanCanonicalProfile.js +112 -172
  160. package/lib/skeleton/AutoMovieHumanCanonicalProfile.js.map +1 -1
  161. package/lib/skeleton/AutoMovieHumanCanonicalSolids.d.ts +65 -0
  162. package/lib/skeleton/AutoMovieHumanCanonicalSolids.js +105 -0
  163. package/lib/skeleton/AutoMovieHumanCanonicalSolids.js.map +1 -0
  164. package/lib/skeleton/index.d.ts +29 -0
  165. package/lib/skeleton/index.js +46 -0
  166. package/lib/skeleton/index.js.map +1 -0
  167. package/lib/structures/index.d.ts +2 -2
  168. package/lib/structures/index.js +2 -2
  169. package/lib/structures/index.js.map +1 -1
  170. package/lib/typings/index.d.ts +1 -1
  171. package/lib/typings/index.js +1 -1
  172. package/lib/typings/index.js.map +1 -1
  173. package/package.json +21 -13
  174. package/src/generation/AutoMovieHumanDigitJoints.ts +12 -47
  175. package/src/generation/{AutoMovieHumanLegSection.ts → AutoMovieHumanLegSectionProportion.ts} +15 -6
  176. package/src/generation/arm/AutoMovieHumanArmFrame.ts +2 -2
  177. package/src/generation/arm/index.ts +28 -0
  178. package/src/generation/conic/AutoMovieHumanConicLoft.ts +566 -0
  179. package/src/generation/conic/AutoMovieHumanConicPose.ts +213 -0
  180. package/src/generation/conic/AutoMovieHumanConicRelief.ts +94 -0
  181. package/src/generation/conic/AutoMovieHumanConicSection.ts +609 -0
  182. package/src/generation/f1/AutoMovieHumanF1.ts +1448 -0
  183. package/src/generation/f1/AutoMovieHumanF1Antihelix.ts +64 -0
  184. package/src/generation/f1/AutoMovieHumanF1Arm.ts +82 -0
  185. package/src/generation/f1/AutoMovieHumanF1Axilla.ts +90 -0
  186. package/src/generation/f1/AutoMovieHumanF1Breast.ts +74 -0
  187. package/src/generation/f1/AutoMovieHumanF1Concha.ts +80 -0
  188. package/src/generation/f1/AutoMovieHumanF1FingerIndex.ts +58 -0
  189. package/src/generation/f1/AutoMovieHumanF1FingerMiddle.ts +58 -0
  190. package/src/generation/f1/AutoMovieHumanF1FingerPinky.ts +74 -0
  191. package/src/generation/f1/AutoMovieHumanF1FingerRing.ts +74 -0
  192. package/src/generation/f1/AutoMovieHumanF1FingerThumb.ts +58 -0
  193. package/src/generation/f1/AutoMovieHumanF1Frames.ts +191 -0
  194. package/src/generation/f1/AutoMovieHumanF1Hand.ts +81 -0
  195. package/src/generation/f1/AutoMovieHumanF1Helix.ts +63 -0
  196. package/src/generation/f1/AutoMovieHumanF1Joints.ts +319 -0
  197. package/src/generation/f1/AutoMovieHumanF1Landmarks.ts +101 -0
  198. package/src/generation/f1/AutoMovieHumanF1Leg.ts +82 -0
  199. package/src/generation/f1/AutoMovieHumanF1Nose.ts +82 -0
  200. package/src/generation/f1/AutoMovieHumanF1Nostril.ts +58 -0
  201. package/src/generation/f1/AutoMovieHumanF1Placement.ts +148 -0
  202. package/src/generation/f1/AutoMovieHumanF1Placing.ts +313 -0
  203. package/src/generation/f1/AutoMovieHumanF1Plate.ts +59 -0
  204. package/src/generation/f1/AutoMovieHumanF1ToeBig.ts +58 -0
  205. package/src/generation/f1/AutoMovieHumanF1ToeIndex.ts +58 -0
  206. package/src/generation/f1/AutoMovieHumanF1ToeLittle.ts +74 -0
  207. package/src/generation/f1/AutoMovieHumanF1ToeMiddle.ts +74 -0
  208. package/src/generation/f1/AutoMovieHumanF1ToeRing.ts +74 -0
  209. package/src/generation/f1/AutoMovieHumanF1Trunk.ts +79 -0
  210. package/src/generation/f1/AutoMovieHumanF1Vault.ts +74 -0
  211. package/src/generation/foot/index.ts +51 -0
  212. package/src/generation/frame/AutoMovieHumanSegmentFrame.ts +309 -0
  213. package/src/generation/hand/index.ts +53 -0
  214. package/src/generation/head/index.ts +37 -0
  215. package/src/generation/index.ts +176 -0
  216. package/src/generation/leg/AutoMovieHumanLegLaws.ts +80 -25
  217. package/src/generation/leg/index.ts +34 -0
  218. package/src/generation/limb/{AutoMovieHumanJointTurn.ts → AutoMovieHumanBendArc.ts} +39 -11
  219. package/src/generation/limb/AutoMovieHumanDigitWalk.ts +2 -2
  220. package/src/generation/limb/AutoMovieHumanWalkPart.ts +163 -41
  221. package/src/generation/limb/index.ts +12 -0
  222. package/src/generation/trunk/index.ts +17 -0
  223. package/src/generation/web/index.ts +14 -0
  224. package/src/index.ts +14 -4
  225. package/src/lofting/index.ts +14 -0
  226. package/src/skeleton/AutoMovieHumanCanonicalBody.ts +53 -3
  227. package/src/skeleton/AutoMovieHumanCanonicalProfile.ts +153 -358
  228. package/src/skeleton/AutoMovieHumanCanonicalSolids.ts +175 -0
  229. package/src/skeleton/index.ts +29 -0
  230. package/src/structures/index.ts +2 -2
  231. package/src/typings/index.ts +1 -1
  232. package/lib/generation/AutoMovieHumanLegSection.js.map +0 -1
  233. package/lib/generation/limb/AutoMovieHumanJointTurn.js.map +0 -1
@@ -1,13 +1,14 @@
1
+ import { AutoMovieNaturalSpline } from "@automovie/engine";
2
+
1
3
  import { AutoMovieHumanSex } from "../../typings/AutoMovieHumanSex";
2
- import { AutoMovieHumanLegSection } from "../AutoMovieHumanLegSection";
4
+ import { AutoMovieHumanLegSectionProportion } from "../AutoMovieHumanLegSectionProportion";
3
5
  import { AutoMovieHumanLegSites } from "../AutoMovieHumanLegSites";
4
6
  import { AutoMovieHumanReferenceOutlines } from "../AutoMovieHumanReferenceOutlines";
5
- import { AutoMovieNaturalSpline } from "@automovie/engine";
6
- import { AutoMovieHumanLegBones } from "./AutoMovieHumanLegBones";
7
- import { AutoMovieHumanLegMassPrior } from "./AutoMovieHumanLegMassPrior";
8
7
  import { AutoMovieHumanSuprapatella } from "../AutoMovieHumanSuprapatella";
9
- import { AutoMovieHumanLegGirth } from "./AutoMovieHumanLegGirth";
10
8
  import type { IAutoMovieHumanBodyMeasures } from "../IAutoMovieHumanBodyMeasures";
9
+ import { AutoMovieHumanLegBones } from "./AutoMovieHumanLegBones";
10
+ import { AutoMovieHumanLegGirth } from "./AutoMovieHumanLegGirth";
11
+ import { AutoMovieHumanLegMassPrior } from "./AutoMovieHumanLegMassPrior";
11
12
  import type { AutoMovieHumanLegWalk } from "./AutoMovieHumanLegWalk";
12
13
 
13
14
  /**
@@ -26,7 +27,7 @@ import type { AutoMovieHumanLegWalk } from "./AutoMovieHumanLegWalk";
26
27
  * depth, `AutoMovieHumanLegSites.thighDepth`, is taken seated and
27
28
  * compressed, short of the standing thigh's), so every box is
28
29
  * the estimated breadth over depth at the site's share of the
29
- * ankle-to-crotch span (`AutoMovieHumanLegSection`, estimated from the
30
+ * ankle-to-crotch span (`AutoMovieHumanLegSectionProportion`, estimated from the
30
31
  * private reference set). Each box splits its whole skin depth by the
31
32
  * retained skin-support front share (`AutoMovieHumanLegMassPrior`), not
32
33
  * a one-site muscle-thickness ratio. Those old level, sampled body-X
@@ -74,39 +75,89 @@ export namespace AutoMovieHumanLegLaws {
74
75
  side: "left" | "right",
75
76
  ): AutoMovieHumanLegWalk.ILaw {
76
77
  const female: boolean = measures.sex === AutoMovieHumanSex.Female;
77
- const patella: number = MIDPATELLA[female ? 0 : 1] * measures.stature * scale;
78
+ const patella: number =
79
+ MIDPATELLA[female ? 0 : 1] * measures.stature * scale;
78
80
  const hip: number = AutoMovieHumanLegBones.HIP * measures.stature * scale;
79
81
  const rows: { height: number; value: number }[] = [
80
- ...AutoMovieHumanLegMassPrior.THIGH.map((row: AutoMovieHumanLegMassPrior.IRow): { height: number; value: number } => ({ height: hip + row.share * (knee - hip), value: row.front })),
81
- ...AutoMovieHumanLegMassPrior.SHANK.map((row: AutoMovieHumanLegMassPrior.IRow): { height: number; value: number } => ({ height: knee + row.share * (malleolus - knee), value: row.front })),
82
- ].sort((a: { height: number }, b: { height: number }): number => a.height - b.height);
83
- const skin: AutoMovieNaturalSpline.ISpline = AutoMovieNaturalSpline.create(rows.map((row: { height: number }): number => row.height), rows.map((row: { value: number }): number => row.value));
84
- const frontShare = (height: number): number => AutoMovieNaturalSpline.evaluate(skin, Math.max(rows[0]!.height, Math.min(rows.at(-1)!.height, height)));
82
+ ...AutoMovieHumanLegMassPrior.THIGH.map(
83
+ (
84
+ row: AutoMovieHumanLegMassPrior.IRow,
85
+ ): { height: number; value: number } => ({
86
+ height: hip + row.share * (knee - hip),
87
+ value: row.front,
88
+ }),
89
+ ),
90
+ ...AutoMovieHumanLegMassPrior.SHANK.map(
91
+ (
92
+ row: AutoMovieHumanLegMassPrior.IRow,
93
+ ): { height: number; value: number } => ({
94
+ height: knee + row.share * (malleolus - knee),
95
+ value: row.front,
96
+ }),
97
+ ),
98
+ ].sort(
99
+ (a: { height: number }, b: { height: number }): number =>
100
+ a.height - b.height,
101
+ );
102
+ const skin: AutoMovieNaturalSpline.ISpline = AutoMovieNaturalSpline.create(
103
+ rows.map((row: { height: number }): number => row.height),
104
+ rows.map((row: { value: number }): number => row.value),
105
+ );
106
+ const frontShare = (height: number): number =>
107
+ AutoMovieNaturalSpline.evaluate(
108
+ skin,
109
+ Math.max(rows[0]!.height, Math.min(rows.at(-1)!.height, height)),
110
+ );
85
111
 
86
112
  // The lateral share of the breadth about the bone line: the thigh's from
87
113
  // the knee centre toward the crotch, the shank's from the ankle's site to
88
114
  // the knee centre.
89
- const T: typeof AutoMovieHumanReferenceOutlines = AutoMovieHumanReferenceOutlines;
115
+ const T: typeof AutoMovieHumanReferenceOutlines =
116
+ AutoMovieHumanReferenceOutlines;
90
117
  const lateral = (height: number): number =>
91
- height >= knee ? T.at(T.THIGH_SPLIT, "lateral", (height - knee) / (crotch - knee)) : T.at(T.SHANK_SPLIT, "lateral", (height - ankle) / (knee - ankle));
118
+ height >= knee
119
+ ? T.at(T.THIGH_SPLIT, "lateral", (height - knee) / (crotch - knee))
120
+ : T.at(T.SHANK_SPLIT, "lateral", (height - ankle) / (knee - ankle));
92
121
 
93
122
  // A site's box from its girth: the estimated breadth over depth at the
94
- // site's share of the ankle-to-crotch span (`AutoMovieHumanLegSection`,
123
+ // site's share of the ankle-to-crotch span (`AutoMovieHumanLegSectionProportion`,
95
124
  // estimated from the private reference set: no published source found).
96
- const law = (height: number, girth: number): AutoMovieHumanLegWalk.ISiteLaw => {
125
+ const law = (
126
+ height: number,
127
+ girth: number,
128
+ ): AutoMovieHumanLegWalk.ISiteLaw => {
97
129
  const span: number = (height - malleolus) / (crotch - malleolus);
98
- const box: { breadth: number; depth: number } = AutoMovieHumanLegSection.box(girth, span);
130
+ const box: { breadth: number; depth: number } =
131
+ AutoMovieHumanLegSectionProportion.box(girth, span);
99
132
  const front: number = frontShare(height);
100
133
  const out: number = lateral(height) * box.breadth;
101
134
  const inward: number = box.breadth - out;
102
- const [plus, minus]: [number, number] = side === "left" ? [out, inward] : [inward, out];
103
- return { height, edges: [box.depth * front, plus, -box.depth * (1 - front), -minus], girth };
135
+ const [plus, minus]: [number, number] =
136
+ side === "left" ? [out, inward] : [inward, out];
137
+ return {
138
+ height,
139
+ edges: [box.depth * front, plus, -box.depth * (1 - front), -minus],
140
+ girth,
141
+ };
104
142
  };
105
143
  const laws: Record<string, AutoMovieHumanLegWalk.ISiteLaw> = {
106
- thigh: law(measures.glutealFurrowHeight * scale, measures.thighCircumference * scale),
107
- lowerThigh: law(AutoMovieHumanSuprapatella.height(measures) * scale, measures.lowerThighCircumference * scale),
144
+ thigh: law(
145
+ measures.glutealFurrowHeight * scale,
146
+ measures.thighCircumference * scale,
147
+ ),
148
+ lowerThigh: law(
149
+ AutoMovieHumanSuprapatella.height(measures) * scale,
150
+ measures.lowerThighCircumference * scale,
151
+ ),
108
152
  knee: law(patella, measures.kneeCircumference * scale),
109
- calf: law(AutoMovieHumanLegSites.calf(measures, malleolus / scale, patella / scale) * scale, measures.calfCircumference * scale),
153
+ calf: law(
154
+ AutoMovieHumanLegSites.calf(
155
+ measures,
156
+ malleolus / scale,
157
+ patella / scale,
158
+ ) * scale,
159
+ measures.calfCircumference * scale,
160
+ ),
110
161
  ankle: law(ankle, measures.ankleCircumference * scale),
111
162
  };
112
163
  // Retained four-reference thigh-girth ratios author intermediate shape
@@ -116,14 +167,18 @@ export namespace AutoMovieHumanLegLaws {
116
167
  const intermediate: string[] = [];
117
168
  for (const [share, ratio] of AutoMovieHumanLegGirth.THIGH) {
118
169
  const height: number = hip + share * (knee - hip);
119
- if (!(height < laws.thigh!.height && height > laws.lowerThigh!.height)) continue;
170
+ if (!(height < laws.thigh!.height && height > laws.lowerThigh!.height))
171
+ continue;
120
172
  const site: string = `shape.thigh.${share}`;
121
173
  laws[site] = law(height, ratio * measures.thighCircumference * scale);
122
174
  intermediate.push(site);
123
175
  }
124
- const resolve: AutoMovieHumanLegWalk.ILaw = (site: string): AutoMovieHumanLegWalk.ISiteLaw => {
176
+ const resolve: AutoMovieHumanLegWalk.ILaw = (
177
+ site: string,
178
+ ): AutoMovieHumanLegWalk.ISiteLaw => {
125
179
  const found: AutoMovieHumanLegWalk.ISiteLaw | undefined = laws[site];
126
- if (found === undefined) throw new Error(`No leg law at the site ${site}`);
180
+ if (found === undefined)
181
+ throw new Error(`No leg law at the site ${site}`);
127
182
  return found;
128
183
  };
129
184
  return Object.assign(resolve, { intermediate });
@@ -0,0 +1,34 @@
1
+ export * from "./AutoMovieHumanLegAnkleSeam";
2
+ export * from "./AutoMovieHumanLegAxis";
3
+ export * from "./AutoMovieHumanLegBones";
4
+ export * from "./AutoMovieHumanLegCentreLine";
5
+ export * from "./AutoMovieHumanLegChain";
6
+ export * from "./AutoMovieHumanLegCrotchFillet";
7
+ export * from "./AutoMovieHumanLegCrotchHeight";
8
+ export * from "./AutoMovieHumanLegCrotchRoot";
9
+ export * from "./AutoMovieHumanLegDistal";
10
+ export * from "./AutoMovieHumanLegGirth";
11
+ export * from "./AutoMovieHumanLegGuides";
12
+ export * from "./AutoMovieHumanLegHull";
13
+ export * from "./AutoMovieHumanLegLaw";
14
+ export * from "./AutoMovieHumanLegLaws";
15
+ export * from "./AutoMovieHumanLegMassPrior";
16
+ export * from "./AutoMovieHumanLegProfile";
17
+ export * from "./AutoMovieHumanLegProximal";
18
+ export * from "./AutoMovieHumanLegReflection";
19
+ export * from "./AutoMovieHumanLegRegion";
20
+ export * from "./AutoMovieHumanLegReliefWindow";
21
+ export * from "./AutoMovieHumanLegReliefWindows";
22
+ export * from "./AutoMovieHumanLegReliefs";
23
+ export * from "./AutoMovieHumanLegRingRow";
24
+ export * from "./AutoMovieHumanLegSampling";
25
+ export * from "./AutoMovieHumanLegSection";
26
+ export * from "./AutoMovieHumanLegSectionLaw";
27
+ export * from "./AutoMovieHumanLegSectionRows";
28
+ export * from "./AutoMovieHumanLegSourceFamily";
29
+ export * from "./AutoMovieHumanLegSources";
30
+ export * from "./AutoMovieHumanLegStand";
31
+ export * from "./AutoMovieHumanLegStations";
32
+ export * from "./AutoMovieHumanLegTube";
33
+ export * from "./AutoMovieHumanLegVector";
34
+ export * from "./AutoMovieHumanLegWalk";
@@ -1,8 +1,9 @@
1
1
  import { AutoMovieConstructionViews } from "@automovie/engine";
2
+
2
3
  import { AutoMovieHumanConstructionView } from "./AutoMovieHumanConstructionView";
3
4
 
4
5
  /** Convert a geometric bend-radius condition into the engine's jointed-axis half arclength. */
5
- export namespace AutoMovieHumanJointTurn {
6
+ export namespace AutoMovieHumanBendArc {
6
7
  /**
7
8
  * Half arclength whose peak curvature is `1/radius` for the engine's
8
9
  * quintic smoothstep angle law: kappa=theta*S'(t)/(2h), max S'=15/8,
@@ -17,20 +18,47 @@ export namespace AutoMovieHumanJointTurn {
17
18
  * @evidence contracts/performance.md#reuse-equivalent-work The same conversion serves fingers, thumbs and their shared walk.
18
19
  * @evidence contracts/performance.md#bound-retention-and-release-resources Returns a scalar without retaining geometry.
19
20
  */
20
- export function half(before: readonly number[], joint: readonly number[], after: readonly number[], radius: number): number {
21
- const points: [number, number, number][] = [before, joint, after].map((point: readonly number[]): [number, number, number] => AutoMovieConstructionViews.point(AutoMovieHumanConstructionView.point(point)));
22
- const first: number[] = points[1]!.map((value: number, index: number): number => value - points[0]![index]!);
23
- const second: number[] = points[2]!.map((value: number, index: number): number => value - points[1]![index]!);
21
+ export function half(
22
+ before: readonly number[],
23
+ joint: readonly number[],
24
+ after: readonly number[],
25
+ radius: number,
26
+ ): number {
27
+ const points: [number, number, number][] = [before, joint, after].map(
28
+ (point: readonly number[]): [number, number, number] =>
29
+ AutoMovieConstructionViews.point(
30
+ AutoMovieHumanConstructionView.point(point),
31
+ ),
32
+ );
33
+ const first: number[] = points[1]!.map(
34
+ (value: number, index: number): number => value - points[0]![index]!,
35
+ );
36
+ const second: number[] = points[2]!.map(
37
+ (value: number, index: number): number => value - points[1]![index]!,
38
+ );
24
39
  const firstLength: number = Math.hypot(...first);
25
40
  const secondLength: number = Math.hypot(...second);
26
- if (!(firstLength > 0 && secondLength > 0 && radius > 0)) throw new Error("A joint turn needs positive segments and radius");
41
+ if (!(firstLength > 0 && secondLength > 0 && radius > 0))
42
+ throw new Error("A joint turn needs positive segments and radius");
27
43
  // Match the axis owner's unit-direction arithmetic: raw-vector cross
28
44
  // cancellation can otherwise call a tiny admitted turn exactly straight.
29
- const a: number[] = first.map((value: number): number => value * (1 / firstLength));
30
- const b: number[] = second.map((value: number): number => value * (1 / secondLength));
31
- const dot: number = a.reduce((sum: number, value: number, index: number): number => sum + value * b[index]!, 0);
32
- const cross: number[] = [a[1]! * b[2]! - a[2]! * b[1]!, a[2]! * b[0]! - a[0]! * b[2]!, a[0]! * b[1]! - a[1]! * b[0]!];
45
+ const a: number[] = first.map(
46
+ (value: number): number => value * (1 / firstLength),
47
+ );
48
+ const b: number[] = second.map(
49
+ (value: number): number => value * (1 / secondLength),
50
+ );
51
+ const dot: number = a.reduce(
52
+ (sum: number, value: number, index: number): number =>
53
+ sum + value * b[index]!,
54
+ 0,
55
+ );
56
+ const cross: number[] = [
57
+ a[1]! * b[2]! - a[2]! * b[1]!,
58
+ a[2]! * b[0]! - a[0]! * b[2]!,
59
+ a[0]! * b[1]! - a[1]! * b[0]!,
60
+ ];
33
61
  const angle: number = Math.atan2(Math.hypot(...cross), dot);
34
- return 15 * radius * angle / 16;
62
+ return (15 * radius * angle) / 16;
35
63
  }
36
64
  }
@@ -4,7 +4,7 @@ import type {
4
4
  } from "@automovie/engine";
5
5
 
6
6
  import type { AutoMovieHumanHandAttachment } from "../hand/AutoMovieHumanHandAttachment";
7
- import { AutoMovieHumanJointTurn } from "./AutoMovieHumanJointTurn";
7
+ import { AutoMovieHumanBendArc } from "./AutoMovieHumanBendArc";
8
8
  import { AutoMovieHumanSiteViewPart } from "./AutoMovieHumanSiteViewPart";
9
9
  import { AutoMovieHumanWalkPart } from "./AutoMovieHumanWalkPart";
10
10
 
@@ -165,7 +165,7 @@ export namespace AutoMovieHumanDigitWalk {
165
165
  const joints: { half: number }[] = Array.from(
166
166
  { length: bones - 1 },
167
167
  (_: unknown, k: number): { half: number } => ({
168
- half: AutoMovieHumanJointTurn.half(
168
+ half: AutoMovieHumanBendArc.half(
169
169
  input.centres[k]!,
170
170
  input.centres[k + 1]!,
171
171
  input.centres[k + 2]!,
@@ -1,7 +1,12 @@
1
- import { AutoMovieConstructionViews, type AutoMovieSolidVector, AutoMovieViewAxis } from "@automovie/engine";
1
+ import {
2
+ AutoMovieConstructionViews,
3
+ type AutoMovieSolidVector,
4
+ AutoMovieViewAxis,
5
+ } from "@automovie/engine";
6
+
7
+ import { AutoMovieHumanBendArc } from "./AutoMovieHumanBendArc";
2
8
  import { AutoMovieHumanConstructionView } from "./AutoMovieHumanConstructionView";
3
9
  import { AutoMovieHumanSiteViewPart } from "./AutoMovieHumanSiteViewPart";
4
- import { AutoMovieHumanJointTurn } from "./AutoMovieHumanJointTurn";
5
10
 
6
11
  type Vec3 = AutoMovieSolidVector.Vec3;
7
12
 
@@ -63,7 +68,11 @@ export namespace AutoMovieHumanWalkPart {
63
68
  ranges?: AutoMovieHumanSiteViewPart.IInput["ranges"];
64
69
 
65
70
  /** Optional material-frame transition between actual bone/share positions; signed up is projected into the endpoint's normal plane by the engine. */
66
- roll?: { from: { bone: number; share: number }; to: { bone: number; share: number }; up: Vec3 };
71
+ roll?: {
72
+ from: { bone: number; share: number };
73
+ to: { bone: number; share: number };
74
+ up: Vec3;
75
+ };
67
76
 
68
77
  /**
69
78
  * Whether the walk closes at its first centre in a G2 dome: the base of a
@@ -95,7 +104,21 @@ export namespace AutoMovieHumanWalkPart {
95
104
  */
96
105
  export function create(input: IInput): AutoMovieHumanSiteViewPart.IResult {
97
106
  const built: ISource | string = source(input);
98
- return typeof built === "string" ? { part: null, loft: null, view: null, diagnostics: [{ producer: `walk.${input.name}`, level: 2, contract: "axis", detail: built }] } : AutoMovieHumanSiteViewPart.create(built.input);
107
+ return typeof built === "string"
108
+ ? {
109
+ part: null,
110
+ loft: null,
111
+ view: null,
112
+ diagnostics: [
113
+ {
114
+ producer: `walk.${input.name}`,
115
+ level: 2,
116
+ contract: "axis",
117
+ detail: built,
118
+ },
119
+ ],
120
+ }
121
+ : AutoMovieHumanSiteViewPart.create(built.input);
99
122
  }
100
123
 
101
124
  /** The identical pre-loft declaration and its authoritative course mapping. */
@@ -121,45 +144,110 @@ export namespace AutoMovieHumanWalkPart {
121
144
  // reserving a fixed quarter segment for that numerical angle.
122
145
  const last: Vec3 = input.centres[input.centres.length - 1]!;
123
146
  const before: Vec3 = input.centres[input.centres.length - 2]!;
124
- const length: number = Math.hypot(last[0] - before[0], last[1] - before[1], last[2] - before[2]);
125
- if (!(length > 0)) return fail(`the last bone of ${input.centres.length} centres has no length`);
147
+ const length: number = Math.hypot(
148
+ last[0] - before[0],
149
+ last[1] - before[1],
150
+ last[2] - before[2],
151
+ );
152
+ if (!(length > 0))
153
+ return fail(
154
+ `the last bone of ${input.centres.length} centres has no length`,
155
+ );
126
156
  const tip: number = input.tip ?? 0;
127
- const raw: Vec3[] = tip > 0 ? [...input.centres, [0, 1, 2].map((c: number): number => last[c]! + ((last[c]! - before[c]!) * tip) / length) as Vec3] : [...input.centres];
157
+ const raw: Vec3[] =
158
+ tip > 0
159
+ ? [
160
+ ...input.centres,
161
+ [0, 1, 2].map(
162
+ (c: number): number =>
163
+ last[c]! + ((last[c]! - before[c]!) * tip) / length,
164
+ ) as Vec3,
165
+ ]
166
+ : [...input.centres];
128
167
  // The tree's metre record is authoritative for both the runs and the
129
168
  // reconstructed axis. A second mm-to-m conversion need not be bit-identical.
130
- const positions: ReturnType<typeof AutoMovieHumanConstructionView.point>[] = raw.map(AutoMovieHumanConstructionView.point);
169
+ const positions: ReturnType<typeof AutoMovieHumanConstructionView.point>[] =
170
+ raw.map(AutoMovieHumanConstructionView.point);
131
171
  const centres: Vec3[] = positions.map(AutoMovieConstructionViews.point);
132
- const metreHalves: number[] = [...input.joints.map((j: { half: number }): number => j.half), ...(tip > 0 ? [AutoMovieHumanJointTurn.half(before, last, raw.at(-1)!, Math.min(tip, length))] : [])].map((half: number): number => half * AutoMovieHumanConstructionView.METRES);
133
- const halves: number[] = metreHalves.map((half: number): number => half * 1000);
134
- const runs: AutoMovieViewAxis.IRun[] | string = AutoMovieViewAxis.runs(centres, halves);
172
+ const metreHalves: number[] = [
173
+ ...input.joints.map((j: { half: number }): number => j.half),
174
+ ...(tip > 0
175
+ ? [
176
+ AutoMovieHumanBendArc.half(
177
+ before,
178
+ last,
179
+ raw.at(-1)!,
180
+ Math.min(tip, length),
181
+ ),
182
+ ]
183
+ : []),
184
+ ].map(
185
+ (half: number): number => half * AutoMovieHumanConstructionView.METRES,
186
+ );
187
+ const halves: number[] = metreHalves.map(
188
+ (half: number): number => half * 1000,
189
+ );
190
+ const runs: AutoMovieViewAxis.IRun[] | string = AutoMovieViewAxis.runs(
191
+ centres,
192
+ halves,
193
+ );
135
194
  if (typeof runs === "string") return fail(runs);
136
195
 
137
196
  // Each site's station from its bone and share, then its edges in the
138
197
  // engine's chart.
139
198
  const sites: AutoMovieHumanSiteViewPart.ISite[] = input.sites.map(
140
- (s: ISite): AutoMovieHumanSiteViewPart.ISite => ({ site: s.site, station: station(centres, runs, s.bone, s.share), edges: engine(s.edges), fullness: s.fullness, ...(s.jets === undefined ? {} : { jets: engineJets(s.jets) }) }),
199
+ (s: ISite): AutoMovieHumanSiteViewPart.ISite => ({
200
+ site: s.site,
201
+ station: station(centres, runs, s.bone, s.share),
202
+ edges: engine(s.edges),
203
+ fullness: s.fullness,
204
+ ...(s.jets === undefined ? {} : { jets: engineJets(s.jets) }),
205
+ }),
141
206
  );
142
207
  const end: number = runs[input.centres.length - 2]!.end;
143
- return { runs, station: (bone: number, share: number): number => station(centres, runs, bone, share), input: {
144
- name: input.name,
145
- axis: {
146
- type: "jointed",
147
- centres: positions,
148
- halves: metreHalves,
149
- up: AutoMovieHumanConstructionView.direction(input.u),
150
- ...(input.roll === undefined ? {} : { roll: {
151
- from: station(centres, runs, input.roll.from.bone, input.roll.from.share) * AutoMovieHumanConstructionView.METRES,
152
- to: station(centres, runs, input.roll.to.bone, input.roll.to.share) * AutoMovieHumanConstructionView.METRES,
153
- up: AutoMovieHumanConstructionView.direction(input.roll.up),
154
- } }),
208
+ return {
209
+ runs,
210
+ station: (bone: number, share: number): number =>
211
+ station(centres, runs, bone, share),
212
+ input: {
213
+ name: input.name,
214
+ axis: {
215
+ type: "jointed",
216
+ centres: positions,
217
+ halves: metreHalves,
218
+ up: AutoMovieHumanConstructionView.direction(input.u),
219
+ ...(input.roll === undefined
220
+ ? {}
221
+ : {
222
+ roll: {
223
+ from:
224
+ station(
225
+ centres,
226
+ runs,
227
+ input.roll.from.bone,
228
+ input.roll.from.share,
229
+ ) * AutoMovieHumanConstructionView.METRES,
230
+ to:
231
+ station(
232
+ centres,
233
+ runs,
234
+ input.roll.to.bone,
235
+ input.roll.to.share,
236
+ ) * AutoMovieHumanConstructionView.METRES,
237
+ up: AutoMovieHumanConstructionView.direction(input.roll.up),
238
+ },
239
+ }),
240
+ },
241
+ sites,
242
+ ...(input.ranges === undefined
243
+ ? {}
244
+ : { ranges: engineRanges(input.ranges) }),
245
+ ...pole(input, tip > 0 ? runs[runs.length - 1]!.end : end),
246
+ order: input.order,
247
+ samples: input.samples,
248
+ gap: input.gap,
155
249
  },
156
- sites,
157
- ...(input.ranges === undefined ? {} : { ranges: engineRanges(input.ranges) }),
158
- ...pole(input, tip > 0 ? runs[runs.length - 1]!.end : end),
159
- order: input.order,
160
- samples: input.samples,
161
- gap: input.gap,
162
- } };
250
+ };
163
251
  }
164
252
 
165
253
  /**
@@ -176,7 +264,12 @@ export namespace AutoMovieHumanWalkPart {
176
264
  * @param share The share along it from its proximal centre.
177
265
  * @returns The station, mm.
178
266
  */
179
- function station(centres: readonly Vec3[], runs: readonly AutoMovieViewAxis.IRun[], bone: number, share: number): number {
267
+ function station(
268
+ centres: readonly Vec3[],
269
+ runs: readonly AutoMovieViewAxis.IRun[],
270
+ bone: number,
271
+ share: number,
272
+ ): number {
180
273
  const span = (i: number): number => {
181
274
  const a: Vec3 = centres[i]!;
182
275
  const b: Vec3 = centres[i + 1]!;
@@ -186,12 +279,19 @@ export namespace AutoMovieHumanWalkPart {
186
279
  const x: number = share * span(bone);
187
280
  if (x > run.to && bone + 1 < runs.length) {
188
281
  const next: AutoMovieViewAxis.IRun = runs[bone + 1]!;
189
- return run.end + ((x - run.to) * (next.start - run.end)) / (span(bone) - run.to + next.from);
282
+ return (
283
+ run.end +
284
+ ((x - run.to) * (next.start - run.end)) /
285
+ (span(bone) - run.to + next.from)
286
+ );
190
287
  }
191
288
  if (x < run.from && bone > 0) {
192
289
  const previous: AutoMovieViewAxis.IRun = runs[bone - 1]!;
193
290
  const back: number = span(bone - 1) - previous.to;
194
- return previous.end + ((back + x) * (run.start - previous.end)) / (back + run.from);
291
+ return (
292
+ previous.end +
293
+ ((back + x) * (run.start - previous.end)) / (back + run.from)
294
+ );
195
295
  }
196
296
  return run.start + (x - run.from);
197
297
  }
@@ -204,19 +304,37 @@ export namespace AutoMovieHumanWalkPart {
204
304
  * @param e The edges `[+u, +v, -u, -v]` in the walk's chart.
205
305
  * @returns The edges in the engine's chart.
206
306
  */
207
- function engine(e: readonly [number, number, number, number]): [number, number, number, number] {
307
+ function engine(
308
+ e: readonly [number, number, number, number],
309
+ ): [number, number, number, number] {
208
310
  return [e[0], -e[3], e[2], -e[1]];
209
311
  }
210
312
 
211
313
  /** Carry derivatives of the same signed edges through the side-pair reflection; their normalized parameter is unchanged. */
212
- function engineJets(jets: NonNullable<ISite["jets"]>): NonNullable<AutoMovieHumanSiteViewPart.ISite["jets"]> {
213
- const neg = (jet: (typeof jets)[number]): (typeof jets)[number] => jet === undefined ? undefined : { first: jet.first === null ? null : -jet.first, second: jet.second === null ? null : -jet.second };
314
+ function engineJets(
315
+ jets: NonNullable<ISite["jets"]>,
316
+ ): NonNullable<AutoMovieHumanSiteViewPart.ISite["jets"]> {
317
+ const neg = (jet: (typeof jets)[number]): (typeof jets)[number] =>
318
+ jet === undefined
319
+ ? undefined
320
+ : {
321
+ first: jet.first === null ? null : -jet.first,
322
+ second: jet.second === null ? null : -jet.second,
323
+ };
214
324
  return [jets[0], neg(jets[3]), jets[2], neg(jets[1])];
215
325
  }
216
326
 
217
327
  /** Negating a side edge exchanges its scalar bounds as well as their signs. */
218
- function engineRanges(ranges: NonNullable<IInput["ranges"]>): NonNullable<AutoMovieHumanSiteViewPart.IInput["ranges"]> {
219
- const neg = (range: (typeof ranges)[number]): (typeof ranges)[number] => range === undefined ? undefined : { minimum: range.maximum === null ? null : -range.maximum, maximum: range.minimum === null ? null : -range.minimum };
328
+ function engineRanges(
329
+ ranges: NonNullable<IInput["ranges"]>,
330
+ ): NonNullable<AutoMovieHumanSiteViewPart.IInput["ranges"]> {
331
+ const neg = (range: (typeof ranges)[number]): (typeof ranges)[number] =>
332
+ range === undefined
333
+ ? undefined
334
+ : {
335
+ minimum: range.maximum === null ? null : -range.maximum,
336
+ maximum: range.minimum === null ? null : -range.minimum,
337
+ };
220
338
  return [ranges[0], neg(ranges[3]), ranges[2], neg(ranges[1])];
221
339
  }
222
340
 
@@ -228,8 +346,12 @@ export namespace AutoMovieHumanWalkPart {
228
346
  * @param top The tip's station, mm: past the last centre by the tip, or the last centre's.
229
347
  * @returns The site part's pole, or nothing for two open ends.
230
348
  */
231
- function pole(input: IInput, top: number): Pick<AutoMovieHumanSiteViewPart.IInput, "pole"> {
232
- if (input.base === true && input.tip !== undefined) return { pole: { end: "both", bottom: 0, top } };
349
+ function pole(
350
+ input: IInput,
351
+ top: number,
352
+ ): Pick<AutoMovieHumanSiteViewPart.IInput, "pole"> {
353
+ if (input.base === true && input.tip !== undefined)
354
+ return { pole: { end: "both", bottom: 0, top } };
233
355
  if (input.base === true) return { pole: { end: "bottom", station: 0 } };
234
356
  if (input.tip !== undefined) return { pole: { end: "top", station: top } };
235
357
  return {};
@@ -0,0 +1,12 @@
1
+ export * from "./AutoMovieHumanBendArc";
2
+ export * from "./AutoMovieHumanConstructionView";
3
+ export * from "./AutoMovieHumanDigitInterim";
4
+ export * from "./AutoMovieHumanDigitWalk";
5
+ export * from "./AutoMovieHumanMassPart";
6
+ export * from "./AutoMovieHumanMassSource";
7
+ export * from "./AutoMovieHumanSiteConstraints";
8
+ export * from "./AutoMovieHumanSiteControls";
9
+ export * from "./AutoMovieHumanSiteDefinition";
10
+ export * from "./AutoMovieHumanSiteRegionControls";
11
+ export * from "./AutoMovieHumanSiteViewPart";
12
+ export * from "./AutoMovieHumanWalkPart";
@@ -0,0 +1,17 @@
1
+ export * from "./AutoMovieHumanBreastConnection";
2
+ export * from "./AutoMovieHumanGlutealConnection";
3
+ export * from "./AutoMovieHumanGlutealCut";
4
+ export * from "./AutoMovieHumanGlutealParent";
5
+ export * from "./AutoMovieHumanMassInterim";
6
+ export * from "./AutoMovieHumanTrunkAxis";
7
+ export * from "./AutoMovieHumanTrunkBuild";
8
+ export * from "./AutoMovieHumanTrunkConnection";
9
+ export * from "./AutoMovieHumanTrunkInterim";
10
+ export * from "./AutoMovieHumanTrunkLaws";
11
+ export * from "./AutoMovieHumanTrunkLegs";
12
+ export * from "./AutoMovieHumanTrunkMassPlacement";
13
+ export * from "./AutoMovieHumanTrunkSectionFamily";
14
+ export * from "./AutoMovieHumanTrunkTape";
15
+ export * from "./AutoMovieHumanTrunkViewPart";
16
+ export * from "./AutoMovieHumanTrunkViews";
17
+ export * from "./IAutoMovieHumanTrunkViews";
@@ -0,0 +1,14 @@
1
+ export * from "./AutoMovieHumanWebColumns";
2
+ export * from "./AutoMovieHumanWebCrest";
3
+ export * from "./AutoMovieHumanWebCurve";
4
+ export * from "./AutoMovieHumanWebMesh";
5
+ export * from "./AutoMovieHumanWebSurface";
6
+ export * from "./IAutoMovieHumanWeb";
7
+ export * from "./IAutoMovieHumanWebBranch";
8
+ export * from "./IAutoMovieHumanWebChild";
9
+ export * from "./IAutoMovieHumanWebColumn";
10
+ export * from "./IAutoMovieHumanWebColumns";
11
+ export * from "./IAutoMovieHumanWebCrests";
12
+ export * from "./IAutoMovieHumanWebInput";
13
+ export * from "./IAutoMovieHumanWebResult";
14
+ export * from "./IAutoMovieHumanWebSurface";
package/src/index.ts CHANGED
@@ -1,6 +1,16 @@
1
+ export * from "./generation";
2
+ export * from "./lofting";
3
+ export * from "./skeleton";
1
4
  export * from "./structures";
2
5
  export * from "./typings";
3
- export { AutoMovieHumanSkeleton } from "./skeleton/AutoMovieHumanSkeleton";
4
- export { AutoMovieHumanCanonicalBody } from "./skeleton/AutoMovieHumanCanonicalBody";
5
- export { AutoMovieHumanFootSurface } from "./generation/AutoMovieHumanFootSurface";
6
- export { AutoMovieHumanRigControls } from "./skeleton/AutoMovieHumanRigControls";
6
+ export * from "./generation/conic/AutoMovieHumanConicLoft";
7
+ export * from "./generation/conic/AutoMovieHumanConicPose";
8
+ export * from "./generation/conic/AutoMovieHumanConicRelief";
9
+ export * from "./generation/conic/AutoMovieHumanConicSection";
10
+ export * from "./generation/f1/AutoMovieHumanF1";
11
+ export * from "./generation/f1/AutoMovieHumanF1Joints";
12
+ export * from "./generation/f1/AutoMovieHumanF1Landmarks";
13
+ export * from "./generation/f1/AutoMovieHumanF1Frames";
14
+ export * from "./generation/f1/AutoMovieHumanF1Placing";
15
+ export * from "./generation/f1/AutoMovieHumanF1Placement";
16
+ export * from "./generation/frame/AutoMovieHumanSegmentFrame";
@@ -0,0 +1,14 @@
1
+ export * from "./AutoMovieHumanChordArc";
2
+ export * from "./AutoMovieHumanGuidePublish";
3
+ export * from "./AutoMovieHumanLoftAperture";
4
+ export * from "./AutoMovieHumanLoftMesh";
5
+ export * from "./AutoMovieHumanLoftStations";
6
+ export * from "./AutoMovieHumanMonotoneCubic";
7
+ export * from "./AutoMovieHumanPolarSection";
8
+ export * from "./AutoMovieHumanSeam";
9
+ export * from "./AutoMovieHumanSeamCarve";
10
+ export * from "./AutoMovieHumanSeamKnot";
11
+ export * from "./AutoMovieHumanSeamUnion";
12
+ export * from "./IAutoMovieHumanHermiteCurve";
13
+ export * from "./IAutoMovieHumanLoftAperture";
14
+ export * from "./IAutoMovieHumanSeam";