@automovie/human 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +11 -13
  2. package/lib/generation/{AutoMovieHumanLegSection.d.ts → AutoMovieHumanLegSectionProportion.d.ts} +1 -1
  3. package/lib/generation/{AutoMovieHumanLegSection.js → AutoMovieHumanLegSectionProportion.js} +17 -14
  4. package/lib/generation/AutoMovieHumanLegSectionProportion.js.map +1 -0
  5. package/lib/generation/arm/AutoMovieHumanArmFrame.js +2 -2
  6. package/lib/generation/arm/AutoMovieHumanArmFrame.js.map +1 -1
  7. package/lib/generation/arm/index.d.ts +28 -0
  8. package/lib/generation/arm/index.js +45 -0
  9. package/lib/generation/arm/index.js.map +1 -0
  10. package/lib/generation/foot/index.d.ts +51 -0
  11. package/lib/generation/foot/index.js +68 -0
  12. package/lib/generation/foot/index.js.map +1 -0
  13. package/lib/generation/hand/index.d.ts +53 -0
  14. package/lib/generation/hand/index.js +70 -0
  15. package/lib/generation/hand/index.js.map +1 -0
  16. package/lib/generation/head/index.d.ts +37 -0
  17. package/lib/generation/head/index.js +54 -0
  18. package/lib/generation/head/index.js.map +1 -0
  19. package/lib/generation/index.d.ts +176 -0
  20. package/lib/generation/index.js +193 -0
  21. package/lib/generation/index.js.map +1 -0
  22. package/lib/generation/leg/AutoMovieHumanLegLaws.d.ts +1 -1
  23. package/lib/generation/leg/AutoMovieHumanLegLaws.js +23 -11
  24. package/lib/generation/leg/AutoMovieHumanLegLaws.js.map +1 -1
  25. package/lib/generation/leg/index.d.ts +34 -0
  26. package/lib/generation/leg/index.js +51 -0
  27. package/lib/generation/leg/index.js.map +1 -0
  28. package/lib/generation/limb/{AutoMovieHumanJointTurn.d.ts → AutoMovieHumanBendArc.d.ts} +1 -1
  29. package/lib/generation/limb/{AutoMovieHumanJointTurn.js → AutoMovieHumanBendArc.js} +12 -8
  30. package/lib/generation/limb/AutoMovieHumanBendArc.js.map +1 -0
  31. package/lib/generation/limb/AutoMovieHumanDigitWalk.js +2 -2
  32. package/lib/generation/limb/AutoMovieHumanDigitWalk.js.map +1 -1
  33. package/lib/generation/limb/AutoMovieHumanWalkPart.js +72 -17
  34. package/lib/generation/limb/AutoMovieHumanWalkPart.js.map +1 -1
  35. package/lib/generation/limb/index.d.ts +12 -0
  36. package/lib/generation/limb/index.js +29 -0
  37. package/lib/generation/limb/index.js.map +1 -0
  38. package/lib/generation/trunk/index.d.ts +17 -0
  39. package/lib/generation/trunk/index.js +34 -0
  40. package/lib/generation/trunk/index.js.map +1 -0
  41. package/lib/generation/web/index.d.ts +14 -0
  42. package/lib/generation/web/index.js +31 -0
  43. package/lib/generation/web/index.js.map +1 -0
  44. package/lib/index.d.ts +3 -4
  45. package/lib/index.js +3 -9
  46. package/lib/index.js.map +1 -1
  47. package/lib/lofting/index.d.ts +14 -0
  48. package/lib/lofting/index.js +31 -0
  49. package/lib/lofting/index.js.map +1 -0
  50. package/lib/skeleton/index.d.ts +28 -0
  51. package/lib/skeleton/index.js +45 -0
  52. package/lib/skeleton/index.js.map +1 -0
  53. package/lib/structures/index.d.ts +2 -2
  54. package/lib/structures/index.js +2 -2
  55. package/lib/structures/index.js.map +1 -1
  56. package/lib/typings/index.d.ts +1 -1
  57. package/lib/typings/index.js +1 -1
  58. package/lib/typings/index.js.map +1 -1
  59. package/package.json +6 -6
  60. package/src/generation/{AutoMovieHumanLegSection.ts → AutoMovieHumanLegSectionProportion.ts} +15 -6
  61. package/src/generation/arm/AutoMovieHumanArmFrame.ts +2 -2
  62. package/src/generation/arm/index.ts +28 -0
  63. package/src/generation/foot/index.ts +51 -0
  64. package/src/generation/hand/index.ts +53 -0
  65. package/src/generation/head/index.ts +37 -0
  66. package/src/generation/index.ts +176 -0
  67. package/src/generation/leg/AutoMovieHumanLegLaws.ts +80 -25
  68. package/src/generation/leg/index.ts +34 -0
  69. package/src/generation/limb/{AutoMovieHumanJointTurn.ts → AutoMovieHumanBendArc.ts} +39 -11
  70. package/src/generation/limb/AutoMovieHumanDigitWalk.ts +2 -2
  71. package/src/generation/limb/AutoMovieHumanWalkPart.ts +163 -41
  72. package/src/generation/limb/index.ts +12 -0
  73. package/src/generation/trunk/index.ts +17 -0
  74. package/src/generation/web/index.ts +14 -0
  75. package/src/index.ts +3 -4
  76. package/src/lofting/index.ts +14 -0
  77. package/src/skeleton/index.ts +28 -0
  78. package/src/structures/index.ts +2 -2
  79. package/src/typings/index.ts +1 -1
  80. package/lib/generation/AutoMovieHumanLegSection.js.map +0 -1
  81. package/lib/generation/limb/AutoMovieHumanJointTurn.js.map +0 -1
@@ -18,8 +18,8 @@ __exportStar(require("./AutoMovieHumanActionUnit"), exports);
18
18
  __exportStar(require("./AutoMovieHumanExpressionSide"), exports);
19
19
  __exportStar(require("./AutoMovieHumanHairColor"), exports);
20
20
  __exportStar(require("./AutoMovieHumanHairCurl"), exports);
21
- __exportStar(require("./AutoMovieHumanHairline"), exports);
22
21
  __exportStar(require("./AutoMovieHumanHairStyle"), exports);
22
+ __exportStar(require("./AutoMovieHumanHairline"), exports);
23
23
  __exportStar(require("./AutoMovieHumanIrisColor"), exports);
24
24
  __exportStar(require("./AutoMovieHumanLowerUnderwear"), exports);
25
25
  __exportStar(require("./AutoMovieHumanPopulation"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/typings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,iEAA+C;AAC/C,4DAA0C;AAC1C,2DAAyC;AACzC,2DAAyC;AACzC,4DAA0C;AAC1C,4DAA0C;AAC1C,iEAA+C;AAC/C,6DAA2C;AAC3C,sDAAoC;AACpC,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/typings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,iEAA+C;AAC/C,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C;AAC1C,iEAA+C;AAC/C,6DAA2C;AAC3C,sDAAoC;AACpC,iEAA+C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automovie/human",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "description": "Human figure generated from typed parameters by code",
5
5
  "engines": {
6
6
  "node": ">=22.23.2"
@@ -43,14 +43,14 @@
43
43
  "@ttsc/lint": "^0.36.3",
44
44
  "@ttsc/evidence": "^0.36.3",
45
45
  "@types/node": "^22.19.17",
46
- "@automovie/recovery": "^0.0.0",
47
- "@automovie/render": "^0.0.0",
48
- "@automovie/viewer": "^0.0.0"
46
+ "@automovie/recovery": "^0.1.0",
47
+ "@automovie/render": "^0.1.0",
48
+ "@automovie/viewer": "^0.1.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "typia": "^15.3.0",
52
- "@automovie/engine": "^0.0.0",
53
- "@automovie/interface": "^0.0.0"
52
+ "@automovie/engine": "^0.1.0",
53
+ "@automovie/interface": "^0.1.0"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "ttsc --noEmit && rimraf lib && ttsc"
@@ -18,7 +18,7 @@
18
18
  * Limits: four people; the sections are horizontal, standing for the
19
19
  * section normal to the near-vertical leg; the replacement stays open.
20
20
  */
21
- export namespace AutoMovieHumanLegSection {
21
+ export namespace AutoMovieHumanLegSectionProportion {
22
22
  /** One share's breadth over depth and fullness, means over the eight legs. */
23
23
  export interface IRow {
24
24
  /** Share of the ankle-to-crotch span. */
@@ -63,14 +63,19 @@ export namespace AutoMovieHumanLegSection {
63
63
  export function at(share: number): { ratio: number; fullness: number } {
64
64
  const first: IRow = ROWS[0]!;
65
65
  const last: IRow = ROWS[ROWS.length - 1]!;
66
- if (share <= first.share) return { ratio: first.ratio, fullness: first.fullness };
67
- if (share >= last.share) return { ratio: last.ratio, fullness: last.fullness };
66
+ if (share <= first.share)
67
+ return { ratio: first.ratio, fullness: first.fullness };
68
+ if (share >= last.share)
69
+ return { ratio: last.ratio, fullness: last.fullness };
68
70
  let i: number = 0;
69
71
  while (ROWS[i + 1]!.share < share) i++;
70
72
  const a: IRow = ROWS[i]!;
71
73
  const b: IRow = ROWS[i + 1]!;
72
74
  const t: number = (share - a.share) / (b.share - a.share);
73
- return { ratio: a.ratio + t * (b.ratio - a.ratio), fullness: a.fullness + t * (b.fullness - a.fullness) };
75
+ return {
76
+ ratio: a.ratio + t * (b.ratio - a.ratio),
77
+ fullness: a.fullness + t * (b.fullness - a.fullness),
78
+ };
74
79
  }
75
80
 
76
81
  /**
@@ -80,10 +85,14 @@ export namespace AutoMovieHumanLegSection {
80
85
  * @param share Share of the ankle-to-crotch span.
81
86
  * @returns Breadth and depth, mm.
82
87
  */
83
- export function box(girth: number, share: number): { breadth: number; depth: number } {
88
+ export function box(
89
+ girth: number,
90
+ share: number,
91
+ ): { breadth: number; depth: number } {
84
92
  const { ratio, fullness } = at(share);
85
93
  const diagonal: number = Math.sqrt(ratio * ratio + 1);
86
- const depth: number = girth / (2 * (diagonal + fullness * (ratio + 1 - diagonal)));
94
+ const depth: number =
95
+ girth / (2 * (diagonal + fullness * (ratio + 1 - diagonal)));
87
96
  return { breadth: ratio * depth, depth };
88
97
  }
89
98
  }
@@ -1,4 +1,4 @@
1
- import { AutoMovieHumanJointTurn } from "../limb/AutoMovieHumanJointTurn";
1
+ import { AutoMovieHumanBendArc } from "../limb/AutoMovieHumanBendArc";
2
2
  import { AutoMovieHumanWalkPart } from "../limb/AutoMovieHumanWalkPart";
3
3
  import type { AutoMovieHumanArmBones } from "./AutoMovieHumanArmBones";
4
4
  import type { AutoMovieHumanArmWalk } from "./AutoMovieHumanArmWalk";
@@ -109,7 +109,7 @@ export namespace AutoMovieHumanArmFrame {
109
109
  ? []
110
110
  : [
111
111
  {
112
- half: AutoMovieHumanJointTurn.half(
112
+ half: AutoMovieHumanBendArc.half(
113
113
  bones.wrist,
114
114
  knuckle,
115
115
  crease,
@@ -0,0 +1,28 @@
1
+ export * from "./AutoMovieHumanArmAxis";
2
+ export * from "./AutoMovieHumanArmBones";
3
+ export * from "./AutoMovieHumanArmBreadth";
4
+ export * from "./AutoMovieHumanArmCurveSpec";
5
+ export * from "./AutoMovieHumanArmF1Lines";
6
+ export * from "./AutoMovieHumanArmFrame";
7
+ export * from "./AutoMovieHumanArmGirth";
8
+ export * from "./AutoMovieHumanArmGuides";
9
+ export * from "./AutoMovieHumanArmHandControls";
10
+ export * from "./AutoMovieHumanArmInterim";
11
+ export * from "./AutoMovieHumanArmJet";
12
+ export * from "./AutoMovieHumanArmLaw";
13
+ export * from "./AutoMovieHumanArmLayers";
14
+ export * from "./AutoMovieHumanArmPieces";
15
+ export * from "./AutoMovieHumanArmRows";
16
+ export * from "./AutoMovieHumanArmScye";
17
+ export * from "./AutoMovieHumanArmShoulder";
18
+ export * from "./AutoMovieHumanArmSources";
19
+ export * from "./AutoMovieHumanArmStation";
20
+ export * from "./AutoMovieHumanArmTube";
21
+ export * from "./AutoMovieHumanArmWalk";
22
+ export * from "./AutoMovieHumanDeltoidSpan";
23
+ export * from "./AutoMovieHumanElbowSpan";
24
+ export * from "./AutoMovieHumanForearmBelly";
25
+ export * from "./AutoMovieHumanUpperArmCompartments";
26
+ export * from "./AutoMovieHumanWristSpan";
27
+ export * from "./IAutoMovieHumanArmLaw";
28
+ export * from "./IAutoMovieHumanArmPiece";
@@ -0,0 +1,51 @@
1
+ export * from "./AutoMovieHumanFootAchilles";
2
+ export * from "./AutoMovieHumanFootArc";
3
+ export * from "./AutoMovieHumanFootBody";
4
+ export * from "./AutoMovieHumanFootBodyChain";
5
+ export * from "./AutoMovieHumanFootBones";
6
+ export * from "./AutoMovieHumanFootBreadth";
7
+ export * from "./AutoMovieHumanFootColumn";
8
+ export * from "./AutoMovieHumanFootColumnLaw";
9
+ export * from "./AutoMovieHumanFootConnection";
10
+ export * from "./AutoMovieHumanFootCrestForefoot";
11
+ export * from "./AutoMovieHumanFootDorsum";
12
+ export * from "./AutoMovieHumanFootEdgeHandover";
13
+ export * from "./AutoMovieHumanFootFan";
14
+ export * from "./AutoMovieHumanFootFrame";
15
+ export * from "./AutoMovieHumanFootGeometry";
16
+ export * from "./AutoMovieHumanFootGuide";
17
+ export * from "./AutoMovieHumanFootGuideSmoothing";
18
+ export * from "./AutoMovieHumanFootHeads";
19
+ export * from "./AutoMovieHumanFootHeelCorner";
20
+ export * from "./AutoMovieHumanFootHost";
21
+ export * from "./AutoMovieHumanFootInterim";
22
+ export * from "./AutoMovieHumanFootJunction";
23
+ export * from "./AutoMovieHumanFootKnots";
24
+ export * from "./AutoMovieHumanFootLateralForefoot";
25
+ export * from "./AutoMovieHumanFootMalleolus";
26
+ export * from "./AutoMovieHumanFootMalleolusBump";
27
+ export * from "./AutoMovieHumanFootMalleolusWindow";
28
+ export * from "./AutoMovieHumanFootPart";
29
+ export * from "./AutoMovieHumanFootReflection";
30
+ export * from "./AutoMovieHumanFootSectionJets";
31
+ export * from "./AutoMovieHumanFootSectors";
32
+ export * from "./AutoMovieHumanFootSource";
33
+ export * from "./AutoMovieHumanFootToeBreadth";
34
+ export * from "./AutoMovieHumanFootToeCap";
35
+ export * from "./AutoMovieHumanFootToeChain";
36
+ export * from "./AutoMovieHumanFootToeJoints";
37
+ export * from "./AutoMovieHumanFootToeLines";
38
+ export * from "./AutoMovieHumanFootToePulp";
39
+ export * from "./AutoMovieHumanFootToeRoot";
40
+ export * from "./AutoMovieHumanFootToeRootFlare";
41
+ export * from "./AutoMovieHumanFootToeSection";
42
+ export * from "./AutoMovieHumanFootToeShaft";
43
+ export * from "./AutoMovieHumanFootToeSources";
44
+ export * from "./AutoMovieHumanFootToeSpacing";
45
+ export * from "./AutoMovieHumanFootToeSpan";
46
+ export * from "./AutoMovieHumanFootToeStations";
47
+ export * from "./AutoMovieHumanFootToeTaper";
48
+ export * from "./AutoMovieHumanFootWebLine";
49
+ export * from "./AutoMovieHumanFootWebRing";
50
+ export * from "./AutoMovieHumanToePart";
51
+ export * from "./AutoMovieHumanToeVertical";
@@ -0,0 +1,53 @@
1
+ export * from "./AutoMovieHumanDigitCrease";
2
+ export * from "./AutoMovieHumanDigitJointRelief";
3
+ export * from "./AutoMovieHumanDigitPalmarShare";
4
+ export * from "./AutoMovieHumanDigitProfile";
5
+ export * from "./AutoMovieHumanDigitRing";
6
+ export * from "./AutoMovieHumanDigitSector";
7
+ export * from "./AutoMovieHumanDigitSpan";
8
+ export * from "./AutoMovieHumanDigitStations";
9
+ export * from "./AutoMovieHumanDigitTipCap";
10
+ export * from "./AutoMovieHumanFingerBones";
11
+ export * from "./AutoMovieHumanHandAttachment";
12
+ export * from "./AutoMovieHumanHandBones";
13
+ export * from "./AutoMovieHumanHandConstruction";
14
+ export * from "./AutoMovieHumanHandDigitBones";
15
+ export * from "./AutoMovieHumanHandDigitChain";
16
+ export * from "./AutoMovieHumanHandDigitLaw";
17
+ export * from "./AutoMovieHumanHandEvents";
18
+ export * from "./AutoMovieHumanHandFingers";
19
+ export * from "./AutoMovieHumanHandForm";
20
+ export * from "./AutoMovieHumanHandHeel";
21
+ export * from "./AutoMovieHumanHandJoints";
22
+ export * from "./AutoMovieHumanHandMap";
23
+ export * from "./AutoMovieHumanHandPalm";
24
+ export * from "./AutoMovieHumanHandParent";
25
+ export * from "./AutoMovieHumanHandParentRead";
26
+ export * from "./AutoMovieHumanHandPosture";
27
+ export * from "./AutoMovieHumanHandSide";
28
+ export * from "./AutoMovieHumanHandSkinTargets";
29
+ export * from "./AutoMovieHumanHandSolve";
30
+ export * from "./AutoMovieHumanHandStar";
31
+ export * from "./AutoMovieHumanHandVector";
32
+ export * from "./AutoMovieHumanHandWeb";
33
+ export * from "./AutoMovieHumanHandWebCrest";
34
+ export * from "./AutoMovieHumanHandWindow";
35
+ export * from "./AutoMovieHumanInterosseousValley";
36
+ export * from "./AutoMovieHumanMetacarpalArch";
37
+ export * from "./AutoMovieHumanNailFold";
38
+ export * from "./AutoMovieHumanNailPlate";
39
+ export * from "./AutoMovieHumanPalmPalmarSector";
40
+ export * from "./AutoMovieHumanPalmRelief";
41
+ export * from "./AutoMovieHumanThumbBones";
42
+ export * from "./IAutoMovieHumanHandClear";
43
+ export * from "./IAutoMovieHumanHandDigit";
44
+ export * from "./IAutoMovieHumanHandFinger";
45
+ export * from "./IAutoMovieHumanHandFingerPosture";
46
+ export * from "./IAutoMovieHumanHandForm";
47
+ export * from "./IAutoMovieHumanHandFrame";
48
+ export * from "./IAutoMovieHumanHandJoints";
49
+ export * from "./IAutoMovieHumanHandMeasures";
50
+ export * from "./IAutoMovieHumanHandScales";
51
+ export * from "./IAutoMovieHumanHandStarField";
52
+ export * from "./IAutoMovieHumanHandThumbPosture";
53
+ export * from "./IAutoMovieHumanHandWrist";
@@ -0,0 +1,37 @@
1
+ export * from "./AutoMovieHumanHeadAnchors";
2
+ export * from "./AutoMovieHumanHeadCaliper";
3
+ export * from "./AutoMovieHumanHeadCanonical";
4
+ export * from "./AutoMovieHumanHeadComposer";
5
+ export * from "./AutoMovieHumanHeadDome";
6
+ export * from "./AutoMovieHumanHeadDomeHost";
7
+ export * from "./AutoMovieHumanHeadEarFrame";
8
+ export * from "./AutoMovieHumanHeadEarParts";
9
+ export * from "./AutoMovieHumanHeadEarPlate";
10
+ export * from "./AutoMovieHumanHeadEarRidge";
11
+ export * from "./AutoMovieHumanHeadEarRidgeAxis";
12
+ export * from "./AutoMovieHumanHeadEyeParts";
13
+ export * from "./AutoMovieHumanHeadFeatures";
14
+ export * from "./AutoMovieHumanHeadFrontSource";
15
+ export * from "./AutoMovieHumanHeadInnerParts";
16
+ export * from "./AutoMovieHumanHeadLane";
17
+ export * from "./AutoMovieHumanHeadLayout";
18
+ export * from "./AutoMovieHumanHeadLipContact";
19
+ export * from "./AutoMovieHumanHeadLipPart";
20
+ export * from "./AutoMovieHumanHeadMassPart";
21
+ export * from "./AutoMovieHumanHeadMassProfile";
22
+ export * from "./AutoMovieHumanHeadMassSource";
23
+ export * from "./AutoMovieHumanHeadNeckBase";
24
+ export * from "./AutoMovieHumanHeadNeckBaseTrial";
25
+ export * from "./AutoMovieHumanHeadNeckCurves";
26
+ export * from "./AutoMovieHumanHeadNeckLayout";
27
+ export * from "./AutoMovieHumanHeadNeckScalars";
28
+ export * from "./AutoMovieHumanHeadNosePart";
29
+ export * from "./AutoMovieHumanHeadOriginalSources";
30
+ export * from "./AutoMovieHumanHeadPose";
31
+ export * from "./AutoMovieHumanHeadSectionConstraints";
32
+ export * from "./AutoMovieHumanHeadSourceAxis";
33
+ export * from "./AutoMovieHumanHeadTape";
34
+ export * from "./AutoMovieHumanHeadTapeBrow";
35
+ export * from "./AutoMovieHumanHeadTapeSource";
36
+ export * from "./AutoMovieHumanHeadTapeStation";
37
+ export * from "./AutoMovieHumanHeadTree";
@@ -0,0 +1,176 @@
1
+ export * from "./AutoMovieHumanApertureConstruction";
2
+ export * from "./AutoMovieHumanAperturePocket";
3
+ export * from "./AutoMovieHumanApertureSeam";
4
+ export * from "./AutoMovieHumanApertureSpan";
5
+ export * from "./AutoMovieHumanArmConstruction";
6
+ export * from "./AutoMovieHumanArmPrior";
7
+ export * from "./AutoMovieHumanArmRootArc";
8
+ export * from "./AutoMovieHumanArmRootOval";
9
+ export * from "./AutoMovieHumanBackProfile";
10
+ export * from "./AutoMovieHumanBodyAnatomy";
11
+ export * from "./AutoMovieHumanBodyApertures";
12
+ export * from "./AutoMovieHumanBodyBox";
13
+ export * from "./AutoMovieHumanBodyBreadths";
14
+ export * from "./AutoMovieHumanBodyCourses";
15
+ export * from "./AutoMovieHumanBodyFat";
16
+ export * from "./AutoMovieHumanBodyFrame";
17
+ export * from "./AutoMovieHumanBodyLane";
18
+ export * from "./AutoMovieHumanBodyLaneInterim";
19
+ export * from "./AutoMovieHumanBodyLaw";
20
+ export * from "./AutoMovieHumanBodyPlaces";
21
+ export * from "./AutoMovieHumanBodyPreparation";
22
+ export * from "./AutoMovieHumanBodyPublication";
23
+ export * from "./AutoMovieHumanBodyRoots";
24
+ export * from "./AutoMovieHumanBodySources";
25
+ export * from "./AutoMovieHumanBodyStrip";
26
+ export * from "./AutoMovieHumanBodySurface";
27
+ export * from "./AutoMovieHumanBodySurfaceContact";
28
+ export * from "./AutoMovieHumanBodySurfaceLoft";
29
+ export * from "./AutoMovieHumanBodySurfaceNormals";
30
+ export * from "./AutoMovieHumanBodySurfaceOpening";
31
+ export * from "./AutoMovieHumanBodySurfacePhases";
32
+ export * from "./AutoMovieHumanBodySurfacePoles";
33
+ export * from "./AutoMovieHumanBodySurfaceRead";
34
+ export * from "./AutoMovieHumanBodySurfaceSolids";
35
+ export * from "./AutoMovieHumanBodyTree";
36
+ export * from "./AutoMovieHumanBodyWeb";
37
+ export * from "./AutoMovieHumanBreastDome";
38
+ export * from "./AutoMovieHumanBreastFootprint";
39
+ export * from "./AutoMovieHumanBreastFrame";
40
+ export * from "./AutoMovieHumanBreastProfile";
41
+ export * from "./AutoMovieHumanBreastRelief";
42
+ export * from "./AutoMovieHumanChestWall";
43
+ export * from "./AutoMovieHumanDeltoidCap";
44
+ export * from "./AutoMovieHumanDigitJoints";
45
+ export * from "./AutoMovieHumanDigitLine";
46
+ export * from "./AutoMovieHumanDigitSection";
47
+ export * from "./AutoMovieHumanEarPlace";
48
+ export * from "./AutoMovieHumanEventJoinRing";
49
+ export * from "./AutoMovieHumanEventJoinVector";
50
+ export * from "./AutoMovieHumanEyeGlobe";
51
+ export * from "./AutoMovieHumanEyelid";
52
+ export * from "./AutoMovieHumanEyelidProfile";
53
+ export * from "./AutoMovieHumanEyelidSurface";
54
+ export * from "./AutoMovieHumanFacePlan";
55
+ export * from "./AutoMovieHumanFootArch";
56
+ export * from "./AutoMovieHumanFootConstruction";
57
+ export * from "./AutoMovieHumanFootCourse";
58
+ export * from "./AutoMovieHumanFootPlaces";
59
+ export * from "./AutoMovieHumanFootPrior";
60
+ export * from "./AutoMovieHumanFootSurface";
61
+ export * from "./AutoMovieHumanGlutealDome";
62
+ export * from "./AutoMovieHumanGlutealFrame";
63
+ export * from "./AutoMovieHumanGlutealRelief";
64
+ export * from "./AutoMovieHumanHeadAnatomy";
65
+ export * from "./AutoMovieHumanHeadArcs";
66
+ export * from "./AutoMovieHumanHeadBackProfile";
67
+ export * from "./AutoMovieHumanHeadEyeMargin";
68
+ export * from "./AutoMovieHumanHeadInputs";
69
+ export * from "./AutoMovieHumanHeadLandmarks";
70
+ export * from "./AutoMovieHumanHeadMath";
71
+ export * from "./AutoMovieHumanHeadMedianProfile";
72
+ export * from "./AutoMovieHumanHeadNose";
73
+ export * from "./AutoMovieHumanHeadNoseAla";
74
+ export * from "./AutoMovieHumanHeadNoseBase";
75
+ export * from "./AutoMovieHumanHeadNoseBridge";
76
+ export * from "./AutoMovieHumanHeadNoseFrame";
77
+ export * from "./AutoMovieHumanHeadNoseTip";
78
+ export * from "./AutoMovieHumanHeadPrior";
79
+ export * from "./AutoMovieHumanHeadVault";
80
+ export * from "./AutoMovieHumanKnuckleSection";
81
+ export * from "./AutoMovieHumanLegConstruction";
82
+ export * from "./AutoMovieHumanLegPrior";
83
+ export * from "./AutoMovieHumanLegSectionProportion";
84
+ export * from "./AutoMovieHumanLegSites";
85
+ export * from "./AutoMovieHumanLimbFrame";
86
+ export * from "./AutoMovieHumanLimbRest";
87
+ export * from "./AutoMovieHumanLimbRootStrip";
88
+ export * from "./AutoMovieHumanLimbSources";
89
+ export * from "./AutoMovieHumanLumbarSection";
90
+ export * from "./AutoMovieHumanMouth";
91
+ export * from "./AutoMovieHumanMouthArch";
92
+ export * from "./AutoMovieHumanMouthPrior";
93
+ export * from "./AutoMovieHumanNeckBoundary";
94
+ export * from "./AutoMovieHumanNeckConstruction";
95
+ export * from "./AutoMovieHumanNeckPrior";
96
+ export * from "./AutoMovieHumanNeckSource";
97
+ export * from "./AutoMovieHumanNeckSurface";
98
+ export * from "./AutoMovieHumanNeckSurfaceSampling";
99
+ export * from "./AutoMovieHumanReferenceOutlineTypes";
100
+ export * from "./AutoMovieHumanReferenceOutlines";
101
+ export * from "./AutoMovieHumanScapularMass";
102
+ export * from "./AutoMovieHumanShoulderCap";
103
+ export * from "./AutoMovieHumanShoulderDatum";
104
+ export * from "./AutoMovieHumanShoulderGirdle";
105
+ export * from "./AutoMovieHumanShoulderJoint";
106
+ export * from "./AutoMovieHumanShoulderLine";
107
+ export * from "./AutoMovieHumanShoulderRing";
108
+ export * from "./AutoMovieHumanSkeletonChain";
109
+ export * from "./AutoMovieHumanSkeletonLaw";
110
+ export * from "./AutoMovieHumanSpinalGroove";
111
+ export * from "./AutoMovieHumanSpinalProfile";
112
+ export * from "./AutoMovieHumanSternalNotch";
113
+ export * from "./AutoMovieHumanSternalNotchProfile";
114
+ export * from "./AutoMovieHumanSuprapatella";
115
+ export * from "./AutoMovieHumanTrunkAssembly";
116
+ export * from "./AutoMovieHumanTrunkChains";
117
+ export * from "./AutoMovieHumanTrunkClosure";
118
+ export * from "./AutoMovieHumanTrunkColumn";
119
+ export * from "./AutoMovieHumanTrunkConstruction";
120
+ export * from "./AutoMovieHumanTrunkCourses";
121
+ export * from "./AutoMovieHumanTrunkFeatureFrame";
122
+ export * from "./AutoMovieHumanTrunkFeatureProfile";
123
+ export * from "./AutoMovieHumanTrunkFeatures";
124
+ export * from "./AutoMovieHumanTrunkGlutealCleft";
125
+ export * from "./AutoMovieHumanTrunkGroinWidth";
126
+ export * from "./AutoMovieHumanTrunkGuides";
127
+ export * from "./AutoMovieHumanTrunkInguinalFold";
128
+ export * from "./AutoMovieHumanTrunkKeys";
129
+ export * from "./AutoMovieHumanTrunkLandmarks";
130
+ export * from "./AutoMovieHumanTrunkNeckSeat";
131
+ export * from "./AutoMovieHumanTrunkProfileBack";
132
+ export * from "./AutoMovieHumanTrunkProfileFront";
133
+ export * from "./AutoMovieHumanTrunkQuadrant";
134
+ export * from "./AutoMovieHumanTrunkReliefNet";
135
+ export * from "./AutoMovieHumanTrunkRing";
136
+ export * from "./AutoMovieHumanTrunkRows";
137
+ export * from "./AutoMovieHumanTrunkShapes";
138
+ export * from "./AutoMovieHumanTrunkSolve";
139
+ export * from "./AutoMovieHumanTrunkSolver";
140
+ export * from "./AutoMovieHumanTrunkTapes";
141
+ export * from "./AutoMovieHumanUmbilicalProfile";
142
+ export * from "./AutoMovieHumanUmbilicus";
143
+ export * from "./IAutoMovieHumanApertureEdge";
144
+ export * from "./IAutoMovieHumanArmRootArc";
145
+ export * from "./IAutoMovieHumanBodyCalibration";
146
+ export * from "./IAutoMovieHumanBodyMeasures";
147
+ export * from "./IAutoMovieHumanConstructionPath";
148
+ export * from "./IAutoMovieHumanHeadCompiled";
149
+ export * from "./IAutoMovieHumanHeadCorrections";
150
+ export * from "./IAutoMovieHumanHeadEyeOpening";
151
+ export * from "./IAutoMovieHumanHeadInputs";
152
+ export * from "./IAutoMovieHumanHeadJet";
153
+ export * from "./IAutoMovieHumanHeadLandmarks";
154
+ export * from "./IAutoMovieHumanHeadLayout";
155
+ export * from "./IAutoMovieHumanHeadMandible";
156
+ export * from "./IAutoMovieHumanHeadNeck";
157
+ export * from "./IAutoMovieHumanHeadSection";
158
+ export * from "./IAutoMovieHumanShoulderOutline";
159
+ export * from "./IAutoMovieHumanSurfaceBoundary";
160
+ export * from "./IAutoMovieHumanSurfaceContext";
161
+ export * from "./IAutoMovieHumanTrunkContext";
162
+ export * from "./IAutoMovieHumanTrunkFeature";
163
+ export * from "./IAutoMovieHumanTrunkInputs";
164
+ export * from "./IAutoMovieHumanTrunkKey";
165
+ export * from "./IAutoMovieHumanTrunkLandmarks";
166
+ export * from "./IAutoMovieHumanTrunkSection";
167
+ export * from "./IAutoMovieHumanTrunkSolution";
168
+ export * from "./IAutoMovieHumanTrunkState";
169
+ export * from "./arm";
170
+ export * from "./foot";
171
+ export * from "./hand";
172
+ export * from "./head";
173
+ export * from "./leg";
174
+ export * from "./limb";
175
+ export * from "./trunk";
176
+ export * from "./web";
@@ -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";