@automovie/human 0.1.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 (162) hide show
  1. package/README.md +18 -3
  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/conic/AutoMovieHumanConicLoft.d.ts +154 -0
  6. package/lib/generation/conic/AutoMovieHumanConicLoft.js +430 -0
  7. package/lib/generation/conic/AutoMovieHumanConicLoft.js.map +1 -0
  8. package/lib/generation/conic/AutoMovieHumanConicPose.d.ts +92 -0
  9. package/lib/generation/conic/AutoMovieHumanConicPose.js +202 -0
  10. package/lib/generation/conic/AutoMovieHumanConicPose.js.map +1 -0
  11. package/lib/generation/conic/AutoMovieHumanConicRelief.d.ts +52 -0
  12. package/lib/generation/conic/AutoMovieHumanConicRelief.js +88 -0
  13. package/lib/generation/conic/AutoMovieHumanConicRelief.js.map +1 -0
  14. package/lib/generation/conic/AutoMovieHumanConicSection.d.ts +252 -0
  15. package/lib/generation/conic/AutoMovieHumanConicSection.js +567 -0
  16. package/lib/generation/conic/AutoMovieHumanConicSection.js.map +1 -0
  17. package/lib/generation/f1/AutoMovieHumanF1.d.ts +265 -0
  18. package/lib/generation/f1/AutoMovieHumanF1.js +1254 -0
  19. package/lib/generation/f1/AutoMovieHumanF1.js.map +1 -0
  20. package/lib/generation/f1/AutoMovieHumanF1Antihelix.d.ts +23 -0
  21. package/lib/generation/f1/AutoMovieHumanF1Antihelix.js +65 -0
  22. package/lib/generation/f1/AutoMovieHumanF1Antihelix.js.map +1 -0
  23. package/lib/generation/f1/AutoMovieHumanF1Arm.d.ts +18 -0
  24. package/lib/generation/f1/AutoMovieHumanF1Arm.js +82 -0
  25. package/lib/generation/f1/AutoMovieHumanF1Arm.js.map +1 -0
  26. package/lib/generation/f1/AutoMovieHumanF1Axilla.d.ts +18 -0
  27. package/lib/generation/f1/AutoMovieHumanF1Axilla.js +91 -0
  28. package/lib/generation/f1/AutoMovieHumanF1Axilla.js.map +1 -0
  29. package/lib/generation/f1/AutoMovieHumanF1Breast.d.ts +18 -0
  30. package/lib/generation/f1/AutoMovieHumanF1Breast.js +75 -0
  31. package/lib/generation/f1/AutoMovieHumanF1Breast.js.map +1 -0
  32. package/lib/generation/f1/AutoMovieHumanF1Concha.d.ts +40 -0
  33. package/lib/generation/f1/AutoMovieHumanF1Concha.js +81 -0
  34. package/lib/generation/f1/AutoMovieHumanF1Concha.js.map +1 -0
  35. package/lib/generation/f1/AutoMovieHumanF1FingerIndex.d.ts +18 -0
  36. package/lib/generation/f1/AutoMovieHumanF1FingerIndex.js +59 -0
  37. package/lib/generation/f1/AutoMovieHumanF1FingerIndex.js.map +1 -0
  38. package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.d.ts +18 -0
  39. package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.js +59 -0
  40. package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.js.map +1 -0
  41. package/lib/generation/f1/AutoMovieHumanF1FingerPinky.d.ts +18 -0
  42. package/lib/generation/f1/AutoMovieHumanF1FingerPinky.js +75 -0
  43. package/lib/generation/f1/AutoMovieHumanF1FingerPinky.js.map +1 -0
  44. package/lib/generation/f1/AutoMovieHumanF1FingerRing.d.ts +18 -0
  45. package/lib/generation/f1/AutoMovieHumanF1FingerRing.js +75 -0
  46. package/lib/generation/f1/AutoMovieHumanF1FingerRing.js.map +1 -0
  47. package/lib/generation/f1/AutoMovieHumanF1FingerThumb.d.ts +18 -0
  48. package/lib/generation/f1/AutoMovieHumanF1FingerThumb.js +59 -0
  49. package/lib/generation/f1/AutoMovieHumanF1FingerThumb.js.map +1 -0
  50. package/lib/generation/f1/AutoMovieHumanF1Frames.d.ts +97 -0
  51. package/lib/generation/f1/AutoMovieHumanF1Frames.js +160 -0
  52. package/lib/generation/f1/AutoMovieHumanF1Frames.js.map +1 -0
  53. package/lib/generation/f1/AutoMovieHumanF1Hand.d.ts +18 -0
  54. package/lib/generation/f1/AutoMovieHumanF1Hand.js +81 -0
  55. package/lib/generation/f1/AutoMovieHumanF1Hand.js.map +1 -0
  56. package/lib/generation/f1/AutoMovieHumanF1Helix.d.ts +20 -0
  57. package/lib/generation/f1/AutoMovieHumanF1Helix.js +64 -0
  58. package/lib/generation/f1/AutoMovieHumanF1Helix.js.map +1 -0
  59. package/lib/generation/f1/AutoMovieHumanF1Joints.d.ts +231 -0
  60. package/lib/generation/f1/AutoMovieHumanF1Joints.js +249 -0
  61. package/lib/generation/f1/AutoMovieHumanF1Joints.js.map +1 -0
  62. package/lib/generation/f1/AutoMovieHumanF1Landmarks.d.ts +86 -0
  63. package/lib/generation/f1/AutoMovieHumanF1Landmarks.js +89 -0
  64. package/lib/generation/f1/AutoMovieHumanF1Landmarks.js.map +1 -0
  65. package/lib/generation/f1/AutoMovieHumanF1Leg.d.ts +18 -0
  66. package/lib/generation/f1/AutoMovieHumanF1Leg.js +82 -0
  67. package/lib/generation/f1/AutoMovieHumanF1Leg.js.map +1 -0
  68. package/lib/generation/f1/AutoMovieHumanF1Nose.d.ts +18 -0
  69. package/lib/generation/f1/AutoMovieHumanF1Nose.js +82 -0
  70. package/lib/generation/f1/AutoMovieHumanF1Nose.js.map +1 -0
  71. package/lib/generation/f1/AutoMovieHumanF1Nostril.d.ts +18 -0
  72. package/lib/generation/f1/AutoMovieHumanF1Nostril.js +59 -0
  73. package/lib/generation/f1/AutoMovieHumanF1Nostril.js.map +1 -0
  74. package/lib/generation/f1/AutoMovieHumanF1Placement.d.ts +75 -0
  75. package/lib/generation/f1/AutoMovieHumanF1Placement.js +151 -0
  76. package/lib/generation/f1/AutoMovieHumanF1Placement.js.map +1 -0
  77. package/lib/generation/f1/AutoMovieHumanF1Placing.d.ts +45 -0
  78. package/lib/generation/f1/AutoMovieHumanF1Placing.js +301 -0
  79. package/lib/generation/f1/AutoMovieHumanF1Placing.js.map +1 -0
  80. package/lib/generation/f1/AutoMovieHumanF1Plate.d.ts +18 -0
  81. package/lib/generation/f1/AutoMovieHumanF1Plate.js +59 -0
  82. package/lib/generation/f1/AutoMovieHumanF1Plate.js.map +1 -0
  83. package/lib/generation/f1/AutoMovieHumanF1ToeBig.d.ts +18 -0
  84. package/lib/generation/f1/AutoMovieHumanF1ToeBig.js +59 -0
  85. package/lib/generation/f1/AutoMovieHumanF1ToeBig.js.map +1 -0
  86. package/lib/generation/f1/AutoMovieHumanF1ToeIndex.d.ts +18 -0
  87. package/lib/generation/f1/AutoMovieHumanF1ToeIndex.js +59 -0
  88. package/lib/generation/f1/AutoMovieHumanF1ToeIndex.js.map +1 -0
  89. package/lib/generation/f1/AutoMovieHumanF1ToeLittle.d.ts +18 -0
  90. package/lib/generation/f1/AutoMovieHumanF1ToeLittle.js +75 -0
  91. package/lib/generation/f1/AutoMovieHumanF1ToeLittle.js.map +1 -0
  92. package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.d.ts +18 -0
  93. package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.js +75 -0
  94. package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.js.map +1 -0
  95. package/lib/generation/f1/AutoMovieHumanF1ToeRing.d.ts +18 -0
  96. package/lib/generation/f1/AutoMovieHumanF1ToeRing.js +75 -0
  97. package/lib/generation/f1/AutoMovieHumanF1ToeRing.js.map +1 -0
  98. package/lib/generation/f1/AutoMovieHumanF1Trunk.d.ts +18 -0
  99. package/lib/generation/f1/AutoMovieHumanF1Trunk.js +79 -0
  100. package/lib/generation/f1/AutoMovieHumanF1Trunk.js.map +1 -0
  101. package/lib/generation/f1/AutoMovieHumanF1Vault.d.ts +18 -0
  102. package/lib/generation/f1/AutoMovieHumanF1Vault.js +75 -0
  103. package/lib/generation/f1/AutoMovieHumanF1Vault.js.map +1 -0
  104. package/lib/generation/frame/AutoMovieHumanSegmentFrame.d.ts +149 -0
  105. package/lib/generation/frame/AutoMovieHumanSegmentFrame.js +290 -0
  106. package/lib/generation/frame/AutoMovieHumanSegmentFrame.js.map +1 -0
  107. package/lib/index.d.ts +11 -0
  108. package/lib/index.js +11 -0
  109. package/lib/index.js.map +1 -1
  110. package/lib/skeleton/AutoMovieHumanCanonicalBody.d.ts +7 -3
  111. package/lib/skeleton/AutoMovieHumanCanonicalBody.js +31 -3
  112. package/lib/skeleton/AutoMovieHumanCanonicalBody.js.map +1 -1
  113. package/lib/skeleton/AutoMovieHumanCanonicalProfile.d.ts +22 -31
  114. package/lib/skeleton/AutoMovieHumanCanonicalProfile.js +112 -172
  115. package/lib/skeleton/AutoMovieHumanCanonicalProfile.js.map +1 -1
  116. package/lib/skeleton/AutoMovieHumanCanonicalSolids.d.ts +65 -0
  117. package/lib/skeleton/AutoMovieHumanCanonicalSolids.js +105 -0
  118. package/lib/skeleton/AutoMovieHumanCanonicalSolids.js.map +1 -0
  119. package/lib/skeleton/index.d.ts +1 -0
  120. package/lib/skeleton/index.js +1 -0
  121. package/lib/skeleton/index.js.map +1 -1
  122. package/package.json +21 -13
  123. package/src/generation/AutoMovieHumanDigitJoints.ts +12 -47
  124. package/src/generation/conic/AutoMovieHumanConicLoft.ts +566 -0
  125. package/src/generation/conic/AutoMovieHumanConicPose.ts +213 -0
  126. package/src/generation/conic/AutoMovieHumanConicRelief.ts +94 -0
  127. package/src/generation/conic/AutoMovieHumanConicSection.ts +609 -0
  128. package/src/generation/f1/AutoMovieHumanF1.ts +1448 -0
  129. package/src/generation/f1/AutoMovieHumanF1Antihelix.ts +64 -0
  130. package/src/generation/f1/AutoMovieHumanF1Arm.ts +82 -0
  131. package/src/generation/f1/AutoMovieHumanF1Axilla.ts +90 -0
  132. package/src/generation/f1/AutoMovieHumanF1Breast.ts +74 -0
  133. package/src/generation/f1/AutoMovieHumanF1Concha.ts +80 -0
  134. package/src/generation/f1/AutoMovieHumanF1FingerIndex.ts +58 -0
  135. package/src/generation/f1/AutoMovieHumanF1FingerMiddle.ts +58 -0
  136. package/src/generation/f1/AutoMovieHumanF1FingerPinky.ts +74 -0
  137. package/src/generation/f1/AutoMovieHumanF1FingerRing.ts +74 -0
  138. package/src/generation/f1/AutoMovieHumanF1FingerThumb.ts +58 -0
  139. package/src/generation/f1/AutoMovieHumanF1Frames.ts +191 -0
  140. package/src/generation/f1/AutoMovieHumanF1Hand.ts +81 -0
  141. package/src/generation/f1/AutoMovieHumanF1Helix.ts +63 -0
  142. package/src/generation/f1/AutoMovieHumanF1Joints.ts +319 -0
  143. package/src/generation/f1/AutoMovieHumanF1Landmarks.ts +101 -0
  144. package/src/generation/f1/AutoMovieHumanF1Leg.ts +82 -0
  145. package/src/generation/f1/AutoMovieHumanF1Nose.ts +82 -0
  146. package/src/generation/f1/AutoMovieHumanF1Nostril.ts +58 -0
  147. package/src/generation/f1/AutoMovieHumanF1Placement.ts +148 -0
  148. package/src/generation/f1/AutoMovieHumanF1Placing.ts +313 -0
  149. package/src/generation/f1/AutoMovieHumanF1Plate.ts +59 -0
  150. package/src/generation/f1/AutoMovieHumanF1ToeBig.ts +58 -0
  151. package/src/generation/f1/AutoMovieHumanF1ToeIndex.ts +58 -0
  152. package/src/generation/f1/AutoMovieHumanF1ToeLittle.ts +74 -0
  153. package/src/generation/f1/AutoMovieHumanF1ToeMiddle.ts +74 -0
  154. package/src/generation/f1/AutoMovieHumanF1ToeRing.ts +74 -0
  155. package/src/generation/f1/AutoMovieHumanF1Trunk.ts +79 -0
  156. package/src/generation/f1/AutoMovieHumanF1Vault.ts +74 -0
  157. package/src/generation/frame/AutoMovieHumanSegmentFrame.ts +309 -0
  158. package/src/index.ts +11 -0
  159. package/src/skeleton/AutoMovieHumanCanonicalBody.ts +53 -3
  160. package/src/skeleton/AutoMovieHumanCanonicalProfile.ts +153 -358
  161. package/src/skeleton/AutoMovieHumanCanonicalSolids.ts +175 -0
  162. package/src/skeleton/index.ts +1 -0
@@ -0,0 +1,567 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutoMovieHumanConicSection = void 0;
4
+ const engine_1 = require("@automovie/engine");
5
+ /**
6
+ * One section of a conic family as a short vector of named shape numbers,
7
+ * read through a layout of anchors.
8
+ *
9
+ * A section is a closed chain of conic arcs through its anchors in
10
+ * increasing phase. Every anchor is a point whose tangent the layout fixes
11
+ * by rule, so no number is spent on a direction that anatomy already gives:
12
+ *
13
+ * - `u`: a point where the section runs parallel to the chart's `v` axis: a
14
+ * front or back extreme. Its numbers are its `u` and `v`; a `mid` anchor
15
+ * stands on the median line `v = 0` and has only `u`.
16
+ * - `v`: a point where the section runs parallel to the `u` axis: a side
17
+ * extreme. Its numbers are its `u` and `v`.
18
+ * - `m`: the median point of the conic triangle its two neighbours span:
19
+ * `S = M + f (A - M)` on the segment from the chord midpoint `M` to the
20
+ * meeting `A` of the neighbours' tangent lines, with the tangent parallel to
21
+ * the chord, as every conic has at its own median point. Its number is `f`.
22
+ * Its neighbours are the nearest anchors of a lower `level`, so medians
23
+ * nest: a level 2 median halves an arc a level 1 median already made.
24
+ * - `i`: an inflection between two neighbours whose tangents are parallel.
25
+ * An S-shaped stretch crosses its own chord once, at the inflection, so
26
+ * the point is `P0 + t (P2 - P0)` and its tangent is the chord's direction
27
+ * turned by `d`. Its numbers are `t` and `d`.
28
+ * - `f`: a point on one of the part's feature lines (a tip's ridge, a wing's
29
+ * top, a groove's floor or the inflection beside it), its tangent free. Each
30
+ * number is a field along the stations like every other, so the feature line
31
+ * is a smooth longitudinal control curve, the way an aircraft's lines are
32
+ * drawn, and a feature that fades away leaves its anchor on a smooth stretch.
33
+ * Every feature of a run stands on one chord, its frame's (`frame`: the
34
+ * extremes either side of the run), so the features keep their order round
35
+ * the section wherever they fade, as an `i` anchor keeps it. Its numbers are
36
+ * its share of what is left of that chord past the feature before it
37
+ * (`along`), its offset `o` square to the chord in millimetres outward, and
38
+ * its tangent's turn `h` from the chord's direction, radians (`place`). Read
39
+ * as free chart coordinates, f1's nose's six feature lines left that order
40
+ * at 146 of 157 stations where its alar crease and wing fade; each on the
41
+ * chord from the feature before it, a tenth of a millimetre at one feature
42
+ * turned the next one's chord past its arc's own turn and the fit stood
43
+ * against those walls in both directions.
44
+ *
45
+ * After the anchors come the shoulders, one per arc between consecutive
46
+ * anchors: the conic shoulder `rho = |M S| / |M A|` of the engine's native
47
+ * chain (`AutoMovieViewChain`). A `mirror` layout lists the anchors of the
48
+ * half `v >= 0` from the front median anchor to the back median anchor and
49
+ * reflects them, so a bilateral section spends its numbers once.
50
+ *
51
+ * Shares (`f`, `t`, shoulders) are confined to `[EDGE, 1 - EDGE]` inside the
52
+ * model itself, and shoulders to at most `FAIR`, so an offline fit, the
53
+ * authored numbers and the generated surface read one curve.
54
+ */
55
+ var AutoMovieHumanConicSection;
56
+ (function (AutoMovieHumanConicSection) {
57
+ /** Bound of every share inside the model: a share at 0 or 1 is a degenerate conic the engine refuses. */
58
+ const EDGE = 0.03;
59
+ /**
60
+ * Largest shoulder an arc takes. A shoulder near 1 hugs its two tangent lines and turns at their meeting within a millimetre: f1's trunk
61
+ * fitted the tape's straight run between the thighs with shoulders of 0.91 to 0.96, and those arcs drew a crease up the front of each thigh
62
+ * that no net over the wall could take out. Held at this the wall stays fair, and what it leaves the net carries.
63
+ */
64
+ const FAIR = 0.85;
65
+ /** Largest share of the way to a box corner that a guide's touch offset may take. */
66
+ const CORNER = 0.92;
67
+ /** The limb layout: four extremes, each quarter halved `depth` times by nested medians (4, 8 or 16 conics). */
68
+ function limb(depth) {
69
+ let layout = { mirror: false, anchors: ["max", "max", "min", "min"].map((pick, q) => ({ kind: q % 2 === 0 ? "u" : "v", guide: true, pick })) };
70
+ for (let level = 1; level <= depth; ++level)
71
+ layout = { mirror: false, anchors: layout.anchors.flatMap((anchor) => [anchor, { kind: "m", level }]) };
72
+ return layout;
73
+ }
74
+ AutoMovieHumanConicSection.limb = limb;
75
+ /**
76
+ * The lens layout: a long thin section with its length along the chart's `v`, its two faces' extremes on the median line `v = 0` and
77
+ * its two ends' extremes free, each quarter halved `depth` times by nested medians. A flat face has no one extreme: a free face extreme
78
+ * of a lens 30 mm long and 5 thick wandered from one end of its face to the other between neighbouring stations (the ear's plate), and
79
+ * the engine's chain between such stations was refused. On the median line each face's extreme stands where the course crosses the
80
+ * lens, at one number each, and the lens's two ends, where it turns, carry the free extremes.
81
+ */
82
+ function lens(depth) {
83
+ let layout = {
84
+ mirror: false,
85
+ anchors: [
86
+ { kind: "u", mid: true, guide: true, window: [-Math.PI / 2, Math.PI / 2] },
87
+ { kind: "v", guide: true, pick: "max" },
88
+ { kind: "u", mid: true, guide: true, window: [Math.PI / 2, (3 * Math.PI) / 2] },
89
+ { kind: "v", guide: true, pick: "min" },
90
+ ],
91
+ };
92
+ for (let level = 1; level <= depth; ++level)
93
+ layout = { mirror: false, anchors: layout.anchors.flatMap((anchor) => [anchor, { kind: "m", level }]) };
94
+ return layout;
95
+ }
96
+ AutoMovieHumanConicSection.lens = lens;
97
+ /**
98
+ * The bilateral layout: the front and back extremes on the median line and one side extreme between them, each arc halved `depth` times
99
+ * by nested medians, the half reflected in the median line (4, 8 or 16 conics). A section symmetric about the median plane has its
100
+ * front and back extremes on that plane with their tangents square to it, so those extremes cost one number each and the half the rest;
101
+ * fitted as a limb, such a section spends twice the numbers and its front and back anchors wander off the median line wherever the
102
+ * front is flat, each drawing the crease where two conics meet along the skin.
103
+ */
104
+ function bilateral(depth) {
105
+ let anchors = [
106
+ { kind: "u", mid: true, guide: true, window: [-Math.PI / 2, Math.PI / 2] },
107
+ { kind: "v", guide: true, pick: "max" },
108
+ { kind: "u", mid: true, guide: true, window: [Math.PI / 2, (3 * Math.PI) / 2] },
109
+ ];
110
+ for (let level = 1; level <= depth; ++level)
111
+ anchors = anchors.flatMap((anchor, k) => (k < anchors.length - 1 ? [anchor, { kind: "m", level }] : [anchor]));
112
+ return { mirror: true, anchors };
113
+ }
114
+ AutoMovieHumanConicSection.bilateral = bilateral;
115
+ /**
116
+ * The limb layout of the given median depth with a groove after each listed anchor: two inflections and the groove's own median between
117
+ * them, `[i, m, i]`, the inflections a level deeper than every median and the groove's median a level deeper again, so each inflection
118
+ * stands on the chord of the anchors round it and the groove's floor on the triangle of its two inflections. Across a family the
119
+ * inflections' shares and turns are fields like every other, so each groove's two inflection lines run along the stations as smooth
120
+ * curves, the way conic lofting draws a concavity with one more control line. On `limb(1)` a groove seeds an admissible chain only after
121
+ * a `u` extreme (anchors 0 and 4).
122
+ *
123
+ * @param depth The limb's median depth.
124
+ * @param after Indices into `limb(depth).anchors` after which a groove stands, each at most once.
125
+ */
126
+ function inflected(depth, after) {
127
+ return {
128
+ mirror: false,
129
+ anchors: limb(depth).anchors.flatMap((anchor, k) => after.includes(k) ? [anchor, { kind: "i", level: depth + 1 }, { kind: "m", level: depth + 2 }, { kind: "i", level: depth + 1 }] : [anchor]),
130
+ };
131
+ }
132
+ AutoMovieHumanConicSection.inflected = inflected;
133
+ /**
134
+ * A base layout with feature runs inserted after given anchors, and the listed median anchors (`m`) of the base turned into feature
135
+ * anchors (`f`) at the same place in the order. Only the model's own anchor kinds are used.
136
+ *
137
+ * A median stands on the triangle of the nearest anchors already resolved when it is (`neighbours`), which are the feature anchors
138
+ * once any stand in its run, since features resolve before every median (`resolve`); its tangent is then parallel to a different
139
+ * chord (`resolve`: a median's tangent is its neighbours' chord). So a feature inserted beside a median moves that median, and no field
140
+ * vector of the featured layout reproduces the stored section there. Turned into a feature anchor, the old median keeps its own point
141
+ * and tangent, and a stored wall of the base layout converts exactly (`convert`): each inserted feature splits a stored conic arc at
142
+ * an interior point into two conic arcs, which de Casteljau's construction on the rational quadratic's homogeneous controls gives
143
+ * exactly (Farin, Curves and Surfaces for CAGD, rational quadratic Bezier curves).
144
+ *
145
+ * @param base The layout the features go into.
146
+ * @param runs After which anchor of `base` each run of feature anchors stands.
147
+ * @param freed Indices in `base` of median anchors (`m`) turned into feature anchors.
148
+ */
149
+ function featured(base, runs, freed = []) {
150
+ // A least per arc names the base's arcs, which the inserted features split; it has no reading on the featured layout.
151
+ if (typeof base.least === "object")
152
+ throw new Error("featured: a least per arc does not carry over to inserted features");
153
+ for (const k of freed)
154
+ if (base.anchors[k]?.kind !== "m")
155
+ throw new Error(`featured: anchor ${k} of the base is not a median`);
156
+ return {
157
+ mirror: base.mirror,
158
+ ...(base.least === undefined ? {} : { least: base.least }),
159
+ anchors: base.anchors.flatMap((anchor, k) => [
160
+ freed.includes(k) ? { kind: "f", feature: "convex" } : anchor,
161
+ ...runs.filter((r) => r.after === k).flatMap((r) => r.anchors),
162
+ ]),
163
+ };
164
+ }
165
+ AutoMovieHumanConicSection.featured = featured;
166
+ /**
167
+ * The field vector of `featured(base, runs, freed)` that draws the same closed chain as `values` on `base`: every base anchor where it
168
+ * was (a freed median as a feature at its own point and tangent), each run's features on the base arc that follows the anchor they
169
+ * stand after, at equal steps of their projection on their frame's chord between the arc's two ends (so a feature's share along the
170
+ * chord, the number a featured layout stores, is a smooth function of the base's fields), and every shoulder that of its piece of the
171
+ * base arc.
172
+ * A piece `[a, b]` of the rational quadratic with homogeneous controls `(P0, 1), (w P1, w), (P2, 1)` has the blossom controls
173
+ * `B(a, a)`, `B(a, b)`, `B(b, b)`, so its middle weight normalised by its end weights is `W1 / sqrt(W0 W2)` and its shoulder
174
+ * `w / (1 + w)` (the shoulder `rho = |M S| / |M A|` of a conic of middle weight `w`).
175
+ *
176
+ * @param values A section's field vector on `base`.
177
+ * @param base Its layout.
178
+ * @param runs The inserted feature runs (`featured`); a run after anchor `k` lies on the base arc from anchor `k` to `k + 1`.
179
+ * @param freed The base medians turned into features.
180
+ * @returns The field vector on `featured(base, runs, freed)`.
181
+ */
182
+ function convert(values, base, runs, freed = []) {
183
+ const target = featured(base, runs, freed);
184
+ const chain = resolve(values, base).input;
185
+ const K = base.anchors.length;
186
+ const arcs = base.mirror ? K - 1 : K;
187
+ // The base arc `k` as homogeneous controls: its ends, and the meeting of their tangents weighted by the arc's middle weight.
188
+ const controls = (k) => {
189
+ const p0 = chain.points[k];
190
+ const p2 = chain.points[(k + 1) % chain.points.length];
191
+ const rho = chain.shoulders[k];
192
+ return { p: [p0, meet(p0, chain.tangents[k], p2, chain.tangents[(k + 1) % chain.points.length]), p2], w: rho / (1 - rho) };
193
+ };
194
+ // The blossom of the arc's homogeneous quadratic at (s, t): a weighted point.
195
+ const blossom = (k, s, t) => {
196
+ const { p, w } = controls(k);
197
+ const b0 = (1 - s) * (1 - t), b1 = ((1 - s) * t + s * (1 - t)) * w, b2 = s * t;
198
+ const weight = b0 + b1 + b2;
199
+ return { x: [(b0 * p[0][0] + b1 * p[1][0] + b2 * p[2][0]) / weight, (b0 * p[0][1] + b1 * p[1][1] + b2 * p[2][1]) / weight], weight };
200
+ };
201
+ // The point and the heading of travel on arc `k` at `t`.
202
+ const at = (k, t) => {
203
+ const { p, w } = controls(k);
204
+ const point = blossom(k, t, t).x;
205
+ // The derivative of the rational curve: (N' D - N D') / D^2, whose direction is that of N' D - N D'.
206
+ const D = (1 - t) ** 2 + 2 * t * (1 - t) * w + t * t;
207
+ const dD = -2 * (1 - t) + 2 * (1 - 2 * t) * w + 2 * t;
208
+ const N = [(1 - t) ** 2 * p[0][0] + 2 * t * (1 - t) * w * p[1][0] + t * t * p[2][0], (1 - t) ** 2 * p[0][1] + 2 * t * (1 - t) * w * p[1][1] + t * t * p[2][1]];
209
+ const dN = [-2 * (1 - t) * p[0][0] + 2 * (1 - 2 * t) * w * p[1][0] + 2 * t * p[2][0], -2 * (1 - t) * p[0][1] + 2 * (1 - 2 * t) * w * p[1][1] + 2 * t * p[2][1]];
210
+ const d = [dN[0] * D - N[0] * dD, dN[1] * D - N[1] * dD];
211
+ return { point, heading: Math.atan2(d[1], d[0]) };
212
+ };
213
+ // Each target anchor as a base arc and a rational parameter on it (an end of an arc for a base anchor).
214
+ const placed = [];
215
+ // The frame chord of a run inserted on base arc `k`: the extremes either side of it in the base (`frame` on the base layout).
216
+ const chordOf = (k) => {
217
+ const extreme = (j) => ["u", "v"].includes(base.anchors[(j + K) % K].kind);
218
+ let before = k;
219
+ while (!extreme(before))
220
+ before = (before + K - 1) % K;
221
+ let after = (k + 1) % K;
222
+ while (!extreme(after))
223
+ after = (after + 1) % K;
224
+ return [chain.points[before], chain.points[after]];
225
+ };
226
+ base.anchors.forEach((_, k) => {
227
+ placed.push({ arc: Math.min(k, arcs - 1), t: k < arcs ? 0 : 1 });
228
+ const n = runs.filter((r) => r.after === k).reduce((sum, r) => sum + r.anchors.length, 0);
229
+ if (n === 0)
230
+ return;
231
+ const [c0, c1] = chordOf(k);
232
+ const d = [c1[0] - c0[0], c1[1] - c0[1]];
233
+ const project = (t) => {
234
+ const q = blossom(k, t, t).x;
235
+ return ((q[0] - c0[0]) * d[0] + (q[1] - c0[1]) * d[1]) / (d[0] * d[0] + d[1] * d[1] || 1);
236
+ };
237
+ const [s0, s1] = [project(0), project(1)];
238
+ for (let j = 1; j <= n; ++j) {
239
+ const target = s0 + ((s1 - s0) * j) / (n + 1);
240
+ let lo = 0, hi = 1;
241
+ for (let i = 0; i < 60; ++i) {
242
+ const mid = (lo + hi) / 2;
243
+ if ((project(mid) - target) * Math.sign(s1 - s0) < 0)
244
+ lo = mid;
245
+ else
246
+ hi = mid;
247
+ }
248
+ placed.push({ arc: k, t: (lo + hi) / 2 });
249
+ }
250
+ });
251
+ const { at: offset, shoulders } = offsets(target);
252
+ const out = new Array(units(target).length).fill(0);
253
+ // Points of the target anchors, and each anchor's values.
254
+ const points = placed.map((q) => at(q.arc, q.t).point);
255
+ let previous = 0;
256
+ target.anchors.forEach((anchor, k) => {
257
+ const o = offset[k];
258
+ if (anchor.kind === "u" || anchor.kind === "v") {
259
+ out[o] = points[k][0];
260
+ if (anchor.mid !== true)
261
+ out[o + 1] = points[k][1];
262
+ return;
263
+ }
264
+ if (anchor.kind === "m") {
265
+ // A median the conversion keeps: its share on its neighbours' triangle, read as `resolve` places it.
266
+ const [before, after] = [k - 1, k + 1];
267
+ const p0 = points[before], p2 = points[after];
268
+ const corner = meet(p0, [Math.cos(at(placed[before].arc, placed[before].t).heading), Math.sin(at(placed[before].arc, placed[before].t).heading)], p2, [Math.cos(at(placed[after].arc, placed[after].t).heading), Math.sin(at(placed[after].arc, placed[after].t).heading)]);
269
+ const middle = [(p0[0] + p2[0]) / 2, (p0[1] + p2[1]) / 2];
270
+ const span = Math.hypot(corner[0] - middle[0], corner[1] - middle[1]) || 1;
271
+ out[o] = ((points[k][0] - middle[0]) * (corner[0] - middle[0]) + (points[k][1] - middle[1]) * (corner[1] - middle[1])) / span ** 2;
272
+ return;
273
+ }
274
+ if (anchor.kind !== "f")
275
+ throw new Error(`convert: anchor kind ${anchor.kind} is not converted`);
276
+ if (k === 0 || target.anchors[k - 1].kind !== "f")
277
+ previous = 0;
278
+ const [before, after] = frame(k, target);
279
+ const read = unplace(points[before], points[after], points[k], at(placed[k].arc, placed[k].t).heading, previous);
280
+ out[o] = read.values[0];
281
+ out[o + 1] = read.values[1];
282
+ out[o + 2] = read.values[2];
283
+ previous = read.t;
284
+ });
285
+ // Each target arc is the piece of its base arc between its two ends' parameters.
286
+ const pieces = target.mirror ? target.anchors.length - 1 : target.anchors.length;
287
+ for (let j = 0; j < pieces; ++j) {
288
+ const a = placed[j];
289
+ const b = placed[(j + 1) % placed.length];
290
+ const k = a.arc;
291
+ const tb = b.arc === k ? b.t : 1;
292
+ const W0 = blossom(k, a.t, a.t).weight, W1 = blossom(k, a.t, tb).weight, W2 = blossom(k, tb, tb).weight;
293
+ const w = W1 / Math.sqrt(W0 * W2);
294
+ out[shoulders + j] = w / (1 + w);
295
+ }
296
+ return out;
297
+ }
298
+ AutoMovieHumanConicSection.convert = convert;
299
+ /** Unit of every field of a layout, in field order: each anchor's numbers, then one shoulder per arc. */
300
+ function units(layout) {
301
+ const out = [];
302
+ for (const anchor of layout.anchors) {
303
+ if (anchor.kind === "m")
304
+ out.push("share");
305
+ else if (anchor.kind === "i")
306
+ out.push("share", "angle");
307
+ else if (anchor.kind === "f")
308
+ out.push("share", "mm", "angle");
309
+ else if (anchor.mid === true)
310
+ out.push("mm");
311
+ else
312
+ out.push("mm", "mm");
313
+ }
314
+ const arcs = layout.mirror ? layout.anchors.length - 1 : layout.anchors.length;
315
+ for (let k = 0; k < arcs; ++k)
316
+ out.push("share");
317
+ return out;
318
+ }
319
+ AutoMovieHumanConicSection.units = units;
320
+ /** Offsets of every anchor's first field, and the offset of the first shoulder. */
321
+ function offsets(layout) {
322
+ const at = [];
323
+ let cursor = 0;
324
+ for (const anchor of layout.anchors) {
325
+ at.push(cursor);
326
+ cursor += anchor.kind === "m" || anchor.mid === true ? 1 : anchor.kind === "f" ? 3 : 2;
327
+ }
328
+ return { at, shoulders: cursor };
329
+ }
330
+ AutoMovieHumanConicSection.offsets = offsets;
331
+ /** Dependent anchors (`m`, `i`) by increasing level, the order they are resolved in. */
332
+ function dependents(layout) {
333
+ return layout.anchors
334
+ .map((_, k) => k)
335
+ .filter((k) => layout.anchors[k].kind === "m" || layout.anchors[k].kind === "i")
336
+ .sort((a, b) => (layout.anchors[a].level ?? 1) - (layout.anchors[b].level ?? 1));
337
+ }
338
+ AutoMovieHumanConicSection.dependents = dependents;
339
+ /**
340
+ * The two extremes a feature anchor `k` stands between: the nearest `u` or `v` anchor before it and the nearest after it, in the
341
+ * layout's order (round the end of the list for a closed layout). Every feature of a run shares this frame and its chord.
342
+ */
343
+ function frame(k, layout) {
344
+ const K = layout.anchors.length;
345
+ const extreme = (j) => ["u", "v"].includes(layout.anchors[j].kind);
346
+ let before = (k + K - 1) % K;
347
+ while (!extreme(before))
348
+ before = (before + K - 1) % K;
349
+ let after = (k + 1) % K;
350
+ while (!extreme(after))
351
+ after = (after + 1) % K;
352
+ return [before, after];
353
+ }
354
+ AutoMovieHumanConicSection.frame = frame;
355
+ /**
356
+ * Where along its frame's chord a feature anchor stands: the feature before it in the run at `previous` (0 at the run's first), its
357
+ * own share `share` of what is left of the chord after that. Each feature then stands past the one before it by construction.
358
+ */
359
+ function along(previous, share) {
360
+ return previous + (1 - previous) * clamp(share);
361
+ }
362
+ AutoMovieHumanConicSection.along = along;
363
+ /**
364
+ * A feature point on the chord from `p0` to `p2`: at `t` of the way along it, the offset `o` square to it, millimetres outward (to the
365
+ * right of travel, which is outward on a counter-clockwise section), and its tangent the chord's direction turned by `h` radians.
366
+ */
367
+ function place(p0, p2, t, o, h) {
368
+ const d = [p2[0] - p0[0], p2[1] - p0[1]];
369
+ const length = Math.hypot(d[0], d[1]) || 1;
370
+ const angle = Math.atan2(d[1], d[0]) + h;
371
+ return { point: [p0[0] + t * d[0] + (o * d[1]) / length, p0[1] + t * d[1] - (o * d[0]) / length], tangent: [Math.cos(angle), Math.sin(angle)] };
372
+ }
373
+ AutoMovieHumanConicSection.place = place;
374
+ /**
375
+ * The numbers `[share, o, h]` of a feature point `p` with the tangent heading `heading` on the chord from `p0` to `p2`, the feature
376
+ * before it in the run at `previous` of the way along (`along`, `place`), and how far along the chord `p` itself stands.
377
+ */
378
+ function unplace(p0, p2, p, heading, previous) {
379
+ const d = [p2[0] - p0[0], p2[1] - p0[1]];
380
+ const square = d[0] * d[0] + d[1] * d[1] || 1;
381
+ const q = [p[0] - p0[0], p[1] - p0[1]];
382
+ const h = heading - Math.atan2(d[1], d[0]);
383
+ const t = (q[0] * d[0] + q[1] * d[1]) / square;
384
+ return { values: [(t - previous) / Math.max(1e-9, 1 - previous), (q[0] * d[1] - q[1] * d[0]) / Math.sqrt(square), Math.atan2(Math.sin(h), Math.cos(h))], t };
385
+ }
386
+ AutoMovieHumanConicSection.unplace = unplace;
387
+ /** The nearest resolved anchors before and after anchor `k`. */
388
+ function neighbours(k, done) {
389
+ const K = done.length;
390
+ let before = (k + K - 1) % K;
391
+ while (done[before] === null)
392
+ before = (before + K - 1) % K;
393
+ let after = (k + 1) % K;
394
+ while (done[after] === null)
395
+ after = (after + 1) % K;
396
+ return [before, after];
397
+ }
398
+ AutoMovieHumanConicSection.neighbours = neighbours;
399
+ /**
400
+ * A stored shoulder as the model reads it: inside `[EDGE, FAIR]`, and at least the layout's `least`. A fit may store a shoulder past those
401
+ * bounds where it changes nothing at the fitted sections; between the knots the field's natural cubic then crosses a bound and the arc
402
+ * holds still there while its neighbours move, which draws a level line across the wall.
403
+ *
404
+ * @param value The stored shoulder.
405
+ * @param layout The layout it belongs to.
406
+ * @param arc The arc's index among the shoulders, which selects its least when the layout lists one per arc.
407
+ */
408
+ function shoulder(value, layout, arc = 0) {
409
+ return Math.min(FAIR, Math.max(leastOf(layout, arc) ?? 0, clamp(value)));
410
+ }
411
+ AutoMovieHumanConicSection.shoulder = shoulder;
412
+ /**
413
+ * The least shoulder of one arc of a layout (`ILayout.least`): the layout's one number, or that arc's entry of its list; undefined
414
+ * where the layout sets none.
415
+ *
416
+ * @param layout The layout.
417
+ * @param arc The arc's index among the shoulders.
418
+ */
419
+ function leastOf(layout, arc) {
420
+ if (layout.least === undefined || typeof layout.least === "number")
421
+ return layout.least;
422
+ const own = layout.least[arc];
423
+ if (own === undefined)
424
+ throw new Error(`leastOf: the layout lists ${layout.least.length} least shoulders and has no arc ${arc}`);
425
+ return own;
426
+ }
427
+ AutoMovieHumanConicSection.leastOf = leastOf;
428
+ /** Confine a share to the model's bounds. */
429
+ function clamp(share) {
430
+ return Math.min(1 - EDGE, Math.max(EDGE, share));
431
+ }
432
+ AutoMovieHumanConicSection.clamp = clamp;
433
+ /** Meeting point of two tangent lines; the chord midpoint when they are parallel. */
434
+ function meet(p0, t0, p2, t2) {
435
+ const den = t0[0] * t2[1] - t0[1] * t2[0];
436
+ if (den === 0)
437
+ return [(p0[0] + p2[0]) / 2, (p0[1] + p2[1]) / 2];
438
+ const a = ((p2[0] - p0[0]) * t2[1] - (p2[1] - p0[1]) * t2[0]) / den;
439
+ return [p0[0] + a * t0[0], p0[1] + a * t0[1]];
440
+ }
441
+ AutoMovieHumanConicSection.meet = meet;
442
+ /** Resolve a field vector into its closed chain. */
443
+ function resolve(values, layout) {
444
+ const K = layout.anchors.length;
445
+ const points = new Array(K).fill(null);
446
+ const tangents = new Array(K).fill(null);
447
+ const { at, shoulders } = offsets(layout);
448
+ // Extremes first: an extreme's tangent follows the counter-clockwise travel of the chain.
449
+ layout.anchors.forEach((anchor, k) => {
450
+ if (anchor.kind !== "u" && anchor.kind !== "v")
451
+ return;
452
+ const p = anchor.mid === true ? [values[at[k]], 0] : [values[at[k]], values[at[k] + 1]];
453
+ points[k] = p;
454
+ tangents[k] = anchor.kind === "u" ? [0, p[0] > 0 ? 1 : -1] : [p[1] > 0 ? -1 : 1, 0];
455
+ });
456
+ // A guide that reaches its box's corner leaves its arc no first leg. Where one point of a section is both its forward
457
+ // and its side extreme (a section standing like a diamond in its chart) the touch offset would do exactly that, so each
458
+ // guide is held inside the share CORNER of the way to the corners its two neighbouring guides set.
459
+ const boxed = layout.anchors.map((_, k) => k).filter((k) => layout.anchors[k].guide === true);
460
+ if (!layout.mirror && boxed.length === 4)
461
+ boxed.forEach((k, q) => {
462
+ const across = q % 2 === 0 ? 1 : 0;
463
+ const a = points[boxed[(q + 1) % 4]][across];
464
+ const b = points[boxed[(q + 3) % 4]][across];
465
+ const p = points[k];
466
+ p[across] = Math.min(CORNER * Math.max(a, b), Math.max(CORNER * Math.min(a, b), p[across]));
467
+ });
468
+ // Then the feature points in order, each on the chord of its frame (`frame`: the extremes either side of its run), past the feature
469
+ // before it in the run (`along`).
470
+ let previous = 0;
471
+ layout.anchors.forEach((anchor, k) => {
472
+ if (anchor.kind !== "f")
473
+ return;
474
+ if (k === 0 || layout.anchors[k - 1].kind !== "f")
475
+ previous = 0;
476
+ const [before, after] = frame(k, layout);
477
+ previous = along(previous, values[at[k]]);
478
+ const placed = place(points[before], points[after], previous, values[at[k] + 1], values[at[k] + 2]);
479
+ points[k] = placed.point;
480
+ tangents[k] = placed.tangent;
481
+ });
482
+ // Then the anchors that stand on their neighbours' triangle or chord, lower levels first.
483
+ for (const k of dependents(layout)) {
484
+ const [before, after] = neighbours(k, points);
485
+ const p0 = points[before];
486
+ const p2 = points[after];
487
+ const share = clamp(values[at[k]]);
488
+ if (layout.anchors[k].kind === "i") {
489
+ const angle = Math.atan2(p2[1] - p0[1], p2[0] - p0[0]) + values[at[k] + 1];
490
+ points[k] = [p0[0] + share * (p2[0] - p0[0]), p0[1] + share * (p2[1] - p0[1])];
491
+ tangents[k] = [Math.cos(angle), Math.sin(angle)];
492
+ continue;
493
+ }
494
+ const corner = meet(p0, tangents[before], p2, tangents[after]);
495
+ const middle = [(p0[0] + p2[0]) / 2, (p0[1] + p2[1]) / 2];
496
+ points[k] = [middle[0] + share * (corner[0] - middle[0]), middle[1] + share * (corner[1] - middle[1])];
497
+ tangents[k] = [p2[0] - p0[0], p2[1] - p0[1]];
498
+ }
499
+ const input = { points: [], tangents: [], shoulders: [] };
500
+ const guides = [];
501
+ const rho = (arc) => shoulder(values[shoulders + arc], layout, arc);
502
+ for (let k = 0; k < K; ++k) {
503
+ if (layout.anchors[k].guide === true)
504
+ guides.push(input.points.length);
505
+ input.points.push(points[k]);
506
+ input.tangents.push(tangents[k]);
507
+ input.shoulders.push(rho(layout.mirror && k === K - 1 ? K - 2 : k));
508
+ }
509
+ if (layout.mirror)
510
+ for (let k = K - 2; k >= 1; --k) {
511
+ if (layout.anchors[k].kind === "v" && layout.anchors[k].guide === true)
512
+ guides.push(input.points.length);
513
+ input.points.push([points[k][0], -points[k][1]]);
514
+ input.tangents.push([-tangents[k][0], tangents[k][1]]);
515
+ input.shoulders.push(rho(k - 1));
516
+ }
517
+ return { input, guides };
518
+ }
519
+ AutoMovieHumanConicSection.resolve = resolve;
520
+ /**
521
+ * The field vector with the shoulders of the two arcs that meet at anchor `k` set so the section's curvature is continuous there, each
522
+ * arc keeping its triangle (its two end points and the meeting of their tangents).
523
+ *
524
+ * Two conics that meet at an anchor share its tangent but not its curvature, and where one arc ends nearly flat and the next starts sharply
525
+ * bent the wall turns within a few millimetres along the anchor's whole station line: f1's trunk over the hips met at its first median with
526
+ * curvatures of 1.2 and 308 per metre and drew an upright line down each hip. For a rational quadratic with end weights 1 and middle
527
+ * weight `w = rho / (1 - rho)` the curvature at an end is `|(P1 - P0) x (P2 - P1)| / (w^2 |leg|^3)`, the leg the side of the triangle at
528
+ * that end (Farin, rational quadratic Bezier curves; Pottmann, curvature continuous conic splines). Both curvatures are brought to their
529
+ * geometric mean, so each arc's weight moves by the same factor; the shoulders stay within the model's bounds, where the joint is as near
530
+ * G2 as they allow. Merged into one conic instead (both halves of one arc split at its shoulder), the hip's shape moved further.
531
+ *
532
+ * @param values The section's field vector.
533
+ * @param layout Its layout, not a mirror's last anchor: `k` must have an arc on either side in the listed anchors.
534
+ * @param k The anchor.
535
+ */
536
+ function continuous(values, layout, k) {
537
+ const chain = resolve(values, layout).input;
538
+ const triangle = (a) => {
539
+ const p0 = chain.points[a];
540
+ const p2 = chain.points[a + 1];
541
+ return [p0, meet(p0, chain.tangents[a], p2, chain.tangents[a + 1]), p2];
542
+ };
543
+ const turn = ([p0, p1, p2], leg) => Math.abs((p1[0] - p0[0]) * (p2[1] - p1[1]) - (p1[1] - p0[1]) * (p2[0] - p1[0])) / leg ** 3;
544
+ const [b0, b1, b2] = triangle(k - 1);
545
+ const [a0, a1, a2] = triangle(k);
546
+ const before = turn([b0, b1, b2], Math.hypot(b2[0] - b1[0], b2[1] - b1[1]));
547
+ const after = turn([a0, a1, a2], Math.hypot(a1[0] - a0[0], a1[1] - a0[1]));
548
+ const weight = (rho) => rho / (1 - rho);
549
+ const target = Math.sqrt((before / weight(chain.shoulders[k - 1]) ** 2) * (after / weight(chain.shoulders[k]) ** 2));
550
+ const shoulder = (factor, arc) => {
551
+ const w = Math.sqrt(factor / target);
552
+ return Math.min(FAIR, Math.max(leastOf(layout, arc) ?? EDGE, w / (1 + w)));
553
+ };
554
+ const out = [...values];
555
+ const { shoulders } = offsets(layout);
556
+ out[shoulders + k - 1] = shoulder(before, k - 1);
557
+ out[shoulders + k] = shoulder(after, k);
558
+ return out;
559
+ }
560
+ AutoMovieHumanConicSection.continuous = continuous;
561
+ /** Build the engine's native conic chain from a field vector. */
562
+ function chain(values, layout) {
563
+ return engine_1.AutoMovieViewChain.of(resolve(values, layout).input);
564
+ }
565
+ AutoMovieHumanConicSection.chain = chain;
566
+ })(AutoMovieHumanConicSection || (exports.AutoMovieHumanConicSection = AutoMovieHumanConicSection = {}));
567
+ //# sourceMappingURL=AutoMovieHumanConicSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoMovieHumanConicSection.js","sourceRoot":"","sources":["../../../src/generation/conic/AutoMovieHumanConicSection.ts"],"names":[],"mappings":";;;AAAA,8CAAuD;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,IAAiB,0BAA0B,CA4iB1C;AA5iBD,WAAiB,0BAA0B;IA+DzC,yGAAyG;IACzG,MAAM,IAAI,GAAW,IAAI,CAAC;IAE1B;;;;OAIG;IACH,MAAM,IAAI,GAAW,IAAI,CAAC;IAE1B,qFAAqF;IACrF,MAAM,MAAM,GAAW,IAAI,CAAC;IAE5B,+GAA+G;IAC/G,SAAgB,IAAI,CAAC,KAAa;QAChC,IAAI,MAAM,GAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAW,CAAC,GAAG,CAAC,CAAC,IAAmB,EAAE,CAAS,EAAW,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;QACnM,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,IAAI,KAAK,EAAE,EAAE,KAAK;YAAE,MAAM,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,OA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