@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.
- package/README.md +18 -3
- package/lib/generation/AutoMovieHumanDigitJoints.d.ts +8 -26
- package/lib/generation/AutoMovieHumanDigitJoints.js +9 -37
- package/lib/generation/AutoMovieHumanDigitJoints.js.map +1 -1
- package/lib/generation/conic/AutoMovieHumanConicLoft.d.ts +154 -0
- package/lib/generation/conic/AutoMovieHumanConicLoft.js +430 -0
- package/lib/generation/conic/AutoMovieHumanConicLoft.js.map +1 -0
- package/lib/generation/conic/AutoMovieHumanConicPose.d.ts +92 -0
- package/lib/generation/conic/AutoMovieHumanConicPose.js +202 -0
- package/lib/generation/conic/AutoMovieHumanConicPose.js.map +1 -0
- package/lib/generation/conic/AutoMovieHumanConicRelief.d.ts +52 -0
- package/lib/generation/conic/AutoMovieHumanConicRelief.js +88 -0
- package/lib/generation/conic/AutoMovieHumanConicRelief.js.map +1 -0
- package/lib/generation/conic/AutoMovieHumanConicSection.d.ts +252 -0
- package/lib/generation/conic/AutoMovieHumanConicSection.js +567 -0
- package/lib/generation/conic/AutoMovieHumanConicSection.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1.d.ts +265 -0
- package/lib/generation/f1/AutoMovieHumanF1.js +1254 -0
- package/lib/generation/f1/AutoMovieHumanF1.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Antihelix.d.ts +23 -0
- package/lib/generation/f1/AutoMovieHumanF1Antihelix.js +65 -0
- package/lib/generation/f1/AutoMovieHumanF1Antihelix.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Arm.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1Arm.js +82 -0
- package/lib/generation/f1/AutoMovieHumanF1Arm.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Axilla.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1Axilla.js +91 -0
- package/lib/generation/f1/AutoMovieHumanF1Axilla.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Breast.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1Breast.js +75 -0
- package/lib/generation/f1/AutoMovieHumanF1Breast.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Concha.d.ts +40 -0
- package/lib/generation/f1/AutoMovieHumanF1Concha.js +81 -0
- package/lib/generation/f1/AutoMovieHumanF1Concha.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerIndex.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerIndex.js +59 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerIndex.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.js +59 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerPinky.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerPinky.js +75 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerPinky.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerRing.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerRing.js +75 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerRing.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerThumb.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerThumb.js +59 -0
- package/lib/generation/f1/AutoMovieHumanF1FingerThumb.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Frames.d.ts +97 -0
- package/lib/generation/f1/AutoMovieHumanF1Frames.js +160 -0
- package/lib/generation/f1/AutoMovieHumanF1Frames.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Hand.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1Hand.js +81 -0
- package/lib/generation/f1/AutoMovieHumanF1Hand.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Helix.d.ts +20 -0
- package/lib/generation/f1/AutoMovieHumanF1Helix.js +64 -0
- package/lib/generation/f1/AutoMovieHumanF1Helix.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Joints.d.ts +231 -0
- package/lib/generation/f1/AutoMovieHumanF1Joints.js +249 -0
- package/lib/generation/f1/AutoMovieHumanF1Joints.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Landmarks.d.ts +86 -0
- package/lib/generation/f1/AutoMovieHumanF1Landmarks.js +89 -0
- package/lib/generation/f1/AutoMovieHumanF1Landmarks.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Leg.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1Leg.js +82 -0
- package/lib/generation/f1/AutoMovieHumanF1Leg.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Nose.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1Nose.js +82 -0
- package/lib/generation/f1/AutoMovieHumanF1Nose.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Nostril.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1Nostril.js +59 -0
- package/lib/generation/f1/AutoMovieHumanF1Nostril.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Placement.d.ts +75 -0
- package/lib/generation/f1/AutoMovieHumanF1Placement.js +151 -0
- package/lib/generation/f1/AutoMovieHumanF1Placement.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Placing.d.ts +45 -0
- package/lib/generation/f1/AutoMovieHumanF1Placing.js +301 -0
- package/lib/generation/f1/AutoMovieHumanF1Placing.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Plate.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1Plate.js +59 -0
- package/lib/generation/f1/AutoMovieHumanF1Plate.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeBig.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeBig.js +59 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeBig.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeIndex.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeIndex.js +59 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeIndex.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeLittle.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeLittle.js +75 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeLittle.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.js +75 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeRing.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeRing.js +75 -0
- package/lib/generation/f1/AutoMovieHumanF1ToeRing.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Trunk.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1Trunk.js +79 -0
- package/lib/generation/f1/AutoMovieHumanF1Trunk.js.map +1 -0
- package/lib/generation/f1/AutoMovieHumanF1Vault.d.ts +18 -0
- package/lib/generation/f1/AutoMovieHumanF1Vault.js +75 -0
- package/lib/generation/f1/AutoMovieHumanF1Vault.js.map +1 -0
- package/lib/generation/frame/AutoMovieHumanSegmentFrame.d.ts +149 -0
- package/lib/generation/frame/AutoMovieHumanSegmentFrame.js +290 -0
- package/lib/generation/frame/AutoMovieHumanSegmentFrame.js.map +1 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +11 -0
- package/lib/index.js.map +1 -1
- package/lib/skeleton/AutoMovieHumanCanonicalBody.d.ts +7 -3
- package/lib/skeleton/AutoMovieHumanCanonicalBody.js +31 -3
- package/lib/skeleton/AutoMovieHumanCanonicalBody.js.map +1 -1
- package/lib/skeleton/AutoMovieHumanCanonicalProfile.d.ts +22 -31
- package/lib/skeleton/AutoMovieHumanCanonicalProfile.js +112 -172
- package/lib/skeleton/AutoMovieHumanCanonicalProfile.js.map +1 -1
- package/lib/skeleton/AutoMovieHumanCanonicalSolids.d.ts +65 -0
- package/lib/skeleton/AutoMovieHumanCanonicalSolids.js +105 -0
- package/lib/skeleton/AutoMovieHumanCanonicalSolids.js.map +1 -0
- package/lib/skeleton/index.d.ts +1 -0
- package/lib/skeleton/index.js +1 -0
- package/lib/skeleton/index.js.map +1 -1
- package/package.json +21 -13
- package/src/generation/AutoMovieHumanDigitJoints.ts +12 -47
- package/src/generation/conic/AutoMovieHumanConicLoft.ts +566 -0
- package/src/generation/conic/AutoMovieHumanConicPose.ts +213 -0
- package/src/generation/conic/AutoMovieHumanConicRelief.ts +94 -0
- package/src/generation/conic/AutoMovieHumanConicSection.ts +609 -0
- package/src/generation/f1/AutoMovieHumanF1.ts +1448 -0
- package/src/generation/f1/AutoMovieHumanF1Antihelix.ts +64 -0
- package/src/generation/f1/AutoMovieHumanF1Arm.ts +82 -0
- package/src/generation/f1/AutoMovieHumanF1Axilla.ts +90 -0
- package/src/generation/f1/AutoMovieHumanF1Breast.ts +74 -0
- package/src/generation/f1/AutoMovieHumanF1Concha.ts +80 -0
- package/src/generation/f1/AutoMovieHumanF1FingerIndex.ts +58 -0
- package/src/generation/f1/AutoMovieHumanF1FingerMiddle.ts +58 -0
- package/src/generation/f1/AutoMovieHumanF1FingerPinky.ts +74 -0
- package/src/generation/f1/AutoMovieHumanF1FingerRing.ts +74 -0
- package/src/generation/f1/AutoMovieHumanF1FingerThumb.ts +58 -0
- package/src/generation/f1/AutoMovieHumanF1Frames.ts +191 -0
- package/src/generation/f1/AutoMovieHumanF1Hand.ts +81 -0
- package/src/generation/f1/AutoMovieHumanF1Helix.ts +63 -0
- package/src/generation/f1/AutoMovieHumanF1Joints.ts +319 -0
- package/src/generation/f1/AutoMovieHumanF1Landmarks.ts +101 -0
- package/src/generation/f1/AutoMovieHumanF1Leg.ts +82 -0
- package/src/generation/f1/AutoMovieHumanF1Nose.ts +82 -0
- package/src/generation/f1/AutoMovieHumanF1Nostril.ts +58 -0
- package/src/generation/f1/AutoMovieHumanF1Placement.ts +148 -0
- package/src/generation/f1/AutoMovieHumanF1Placing.ts +313 -0
- package/src/generation/f1/AutoMovieHumanF1Plate.ts +59 -0
- package/src/generation/f1/AutoMovieHumanF1ToeBig.ts +58 -0
- package/src/generation/f1/AutoMovieHumanF1ToeIndex.ts +58 -0
- package/src/generation/f1/AutoMovieHumanF1ToeLittle.ts +74 -0
- package/src/generation/f1/AutoMovieHumanF1ToeMiddle.ts +74 -0
- package/src/generation/f1/AutoMovieHumanF1ToeRing.ts +74 -0
- package/src/generation/f1/AutoMovieHumanF1Trunk.ts +79 -0
- package/src/generation/f1/AutoMovieHumanF1Vault.ts +74 -0
- package/src/generation/frame/AutoMovieHumanSegmentFrame.ts +309 -0
- package/src/index.ts +11 -0
- package/src/skeleton/AutoMovieHumanCanonicalBody.ts +53 -3
- package/src/skeleton/AutoMovieHumanCanonicalProfile.ts +153 -358
- package/src/skeleton/AutoMovieHumanCanonicalSolids.ts +175 -0
- package/src/skeleton/index.ts +1 -0
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AutoMovieHumanConicLoft = void 0;
|
|
4
|
+
const engine_1 = require("@automovie/engine");
|
|
5
|
+
const AutoMovieHumanConicSection_1 = require("./AutoMovieHumanConicSection");
|
|
6
|
+
/**
|
|
7
|
+
* A conic family as it is authored, and its generation through the engine's
|
|
8
|
+
* view loft.
|
|
9
|
+
*
|
|
10
|
+
* A family is one part's tape wall: along a jointed course every section is
|
|
11
|
+
* an `AutoMovieHumanConicSection` whose fields are natural cubics through
|
|
12
|
+
* their values at a few shared station knots. Reliefs carry what lies inside
|
|
13
|
+
* that wall. Nothing else defines the part's surface.
|
|
14
|
+
*/
|
|
15
|
+
var AutoMovieHumanConicLoft;
|
|
16
|
+
(function (AutoMovieHumanConicLoft) {
|
|
17
|
+
/** Share of a cap's first section's size under which a coordinate keeps the shared factor (`ITip.own`). */
|
|
18
|
+
const OWN_LEAST = 0.05;
|
|
19
|
+
/**
|
|
20
|
+
* Knots of a cap between its end section and its tip, besides those two. Where the tube's taper meets the cap's law the outlines' natural
|
|
21
|
+
* cubics ripple, and the ripple falls by about 0.27 per knot; twelve leave 1e-7 of it at the pole, where a section is small enough for any
|
|
22
|
+
* coordinate out of proportion to break its chain.
|
|
23
|
+
*/
|
|
24
|
+
const CAP_KNOTS = 12;
|
|
25
|
+
/**
|
|
26
|
+
* Bounds of a cap's taper `q` (`ITip`): below 1 the tip stands upright, and at 0 the cap leaves a wall that still widens toward its tip
|
|
27
|
+
* level instead of widening on. Allowed to widen on (to -0.5), the nose's cap swelled 14 % past its bulb and the nostrils' cuts came out
|
|
28
|
+
* through its sides: a cap that widens on extrapolates past the skin the wall was fitted to.
|
|
29
|
+
*/
|
|
30
|
+
const TAPER = { least: 0, most: 0.95 };
|
|
31
|
+
/**
|
|
32
|
+
* When a station is added midway between two: the model's section there stands off the mean of the two by more than `length` mm in a point's
|
|
33
|
+
* coordinate or by more than `share` in a tangent's angle, rad, or a shoulder. No interval is cut below `least` mm. At a tenth of these
|
|
34
|
+
* tolerances nearly every interval was cut whatever spacing was asked for, and the body's skin held 580,000 triangles at any setting.
|
|
35
|
+
*/
|
|
36
|
+
const REFINE = { length: 0.5, share: 0.05, least: 0.25 };
|
|
37
|
+
/**
|
|
38
|
+
* Largest distance between two neighbouring phases of a part's rings at its widest section, mm; a part has at least 48 phases. With 128
|
|
39
|
+
* phases for every part the trunk's stood 4 mm apart at the head and 9 mm at the hips, wider than its relief nets' 2.5 to 3 mm, which showed
|
|
40
|
+
* as steps, while a finger's stood half a millimetre apart.
|
|
41
|
+
*/
|
|
42
|
+
const PHASE_MM = 4;
|
|
43
|
+
/** The part's course as the engine reads it, its chart turned by the part's roll. */
|
|
44
|
+
function axis(family) {
|
|
45
|
+
const made = engine_1.AutoMovieViewAxis.jointed(family.centres, family.halves, family.up);
|
|
46
|
+
if (typeof made === "string")
|
|
47
|
+
throw new Error("course: " + made);
|
|
48
|
+
if (family.roll === undefined)
|
|
49
|
+
return made;
|
|
50
|
+
const base = made;
|
|
51
|
+
const spline = engine_1.AutoMovieNaturalSpline.create(family.roll.knots, family.roll.values);
|
|
52
|
+
// With c = cos(a) and s = sin(a): u' = c u + s v and v' = c v - s u, so with the angle's derivatives a' and a'' along the station,
|
|
53
|
+
// u'_1 = c u_1 + s v_1 + a' v', v'_1 = c v_1 - s u_1 - a' u', and
|
|
54
|
+
// u'_2 = c u_2 + s v_2 + 2 a' (c v_1 - s u_1) + a'' v' - a'^2 u', v'_2 = c v_2 - s u_2 - 2 a' (c u_1 + s v_1) - a'' u' - a'^2 v'.
|
|
55
|
+
const turn = (u, v, c, s) => [
|
|
56
|
+
[0, 1, 2].map((k) => c * u[k] + s * v[k]),
|
|
57
|
+
[0, 1, 2].map((k) => c * v[k] - s * u[k]),
|
|
58
|
+
];
|
|
59
|
+
return {
|
|
60
|
+
at: (station) => {
|
|
61
|
+
const frame = base.at(station);
|
|
62
|
+
const angle = engine_1.AutoMovieNaturalSpline.evaluate(spline, station);
|
|
63
|
+
const [u, v] = turn(frame.u, frame.v, Math.cos(angle), Math.sin(angle));
|
|
64
|
+
return { origin: frame.origin, u, v };
|
|
65
|
+
},
|
|
66
|
+
...(base.jet === undefined
|
|
67
|
+
? {}
|
|
68
|
+
: {
|
|
69
|
+
jet: (station, parameter) => {
|
|
70
|
+
const jet = base.jet(station);
|
|
71
|
+
if (jet === null)
|
|
72
|
+
return null;
|
|
73
|
+
const [a, a1, a2] = engine_1.AutoMovieNaturalSpline.read(spline, station);
|
|
74
|
+
const [c, s] = [Math.cos(a), Math.sin(a)];
|
|
75
|
+
const [u, v] = turn(jet.value.u, jet.value.v, c, s);
|
|
76
|
+
const [u1, v1] = turn(jet.first.u, jet.first.v, c, s);
|
|
77
|
+
const [u2, v2] = turn(jet.second.u, jet.second.v, c, s);
|
|
78
|
+
const rolled = {
|
|
79
|
+
value: { origin: jet.value.origin, u, v },
|
|
80
|
+
first: {
|
|
81
|
+
origin: jet.first.origin,
|
|
82
|
+
u: [0, 1, 2].map((k) => u1[k] + a1 * v[k]),
|
|
83
|
+
v: [0, 1, 2].map((k) => v1[k] - a1 * u[k]),
|
|
84
|
+
},
|
|
85
|
+
second: {
|
|
86
|
+
origin: jet.second.origin,
|
|
87
|
+
u: [0, 1, 2].map((k) => u2[k] + 2 * a1 * v1[k] + a2 * v[k] - a1 * a1 * u[k]),
|
|
88
|
+
v: [0, 1, 2].map((k) => v2[k] - 2 * a1 * u1[k] - a2 * u[k] - a1 * a1 * v[k]),
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
return engine_1.AutoMovieViewAxisJet.parameter(rolled, parameter, station);
|
|
92
|
+
},
|
|
93
|
+
}),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
AutoMovieHumanConicLoft.axis = axis;
|
|
97
|
+
/** The family's field vector at one station. */
|
|
98
|
+
function reader(family) {
|
|
99
|
+
const splines = family.values.map((field) => engine_1.AutoMovieNaturalSpline.create(family.knots, field));
|
|
100
|
+
return (s) => splines.map((spline) => engine_1.AutoMovieNaturalSpline.evaluate(spline, s));
|
|
101
|
+
}
|
|
102
|
+
AutoMovieHumanConicLoft.reader = reader;
|
|
103
|
+
/**
|
|
104
|
+
* The engine's view part of a family.
|
|
105
|
+
*
|
|
106
|
+
* The engine reads a section as four guides on its box with conic pieces
|
|
107
|
+
* between them. Those guide coordinates, touch offsets, piece points,
|
|
108
|
+
* tangent angles and shoulders are not authored: at every requested
|
|
109
|
+
* station they are resolved from the family's fields through
|
|
110
|
+
* `AutoMovieHumanConicSection.resolve` and handed over as derived outlines
|
|
111
|
+
* with one knot per station.
|
|
112
|
+
*
|
|
113
|
+
* @param family The authored definition.
|
|
114
|
+
* @param stations Stations of the emitted layers and of the derived outlines, mm, increasing.
|
|
115
|
+
*/
|
|
116
|
+
function part(family, requested) {
|
|
117
|
+
const read = reader(family);
|
|
118
|
+
const [bottom, top] = family.tips ?? [null, null];
|
|
119
|
+
// The fields own the stations between the caps; each cap starts on a station of its own.
|
|
120
|
+
const owned = [
|
|
121
|
+
...(bottom === null ? [] : [bottom.from]),
|
|
122
|
+
...requested.filter((s) => (bottom === null || s > bottom.from) && (top === null || s < top.from)),
|
|
123
|
+
...(top === null ? [] : [top.from]),
|
|
124
|
+
];
|
|
125
|
+
// The engine reads every derived number between two stations by its own spline, not through the section model, so where the model's
|
|
126
|
+
// section turns faster than that reading follows, the engine's chain loses an arc though the model's never does. Wherever the model's
|
|
127
|
+
// section midway between two stations stands off the mean of their two by more than the tolerances, the midway station is added.
|
|
128
|
+
const resolved = new Map();
|
|
129
|
+
const at = (s) => {
|
|
130
|
+
let chain = resolved.get(s);
|
|
131
|
+
if (chain === undefined)
|
|
132
|
+
resolved.set(s, (chain = AutoMovieHumanConicSection_1.AutoMovieHumanConicSection.resolve(read(s), family.layout)));
|
|
133
|
+
return chain;
|
|
134
|
+
};
|
|
135
|
+
const between = (a, b) => {
|
|
136
|
+
if (b - a <= 2 * REFINE.least)
|
|
137
|
+
return [];
|
|
138
|
+
const middle = (a + b) / 2;
|
|
139
|
+
const [low, mid, high] = [at(a), at(middle), at(b)];
|
|
140
|
+
const off = mid.input.points.some((p, k) => {
|
|
141
|
+
const turn = (t) => Math.atan2(t[1], t[0]);
|
|
142
|
+
const swing = turn(high.input.tangents[k]) - turn(low.input.tangents[k]);
|
|
143
|
+
const lean = turn(mid.input.tangents[k]) - turn(low.input.tangents[k]) - (swing - 2 * Math.PI * Math.round(swing / (2 * Math.PI))) / 2;
|
|
144
|
+
return (Math.abs(p[0] - (low.input.points[k][0] + high.input.points[k][0]) / 2) > REFINE.length ||
|
|
145
|
+
Math.abs(p[1] - (low.input.points[k][1] + high.input.points[k][1]) / 2) > REFINE.length ||
|
|
146
|
+
Math.abs(lean - 2 * Math.PI * Math.round(lean / (2 * Math.PI))) > REFINE.share ||
|
|
147
|
+
Math.abs(mid.input.shoulders[k] - (low.input.shoulders[k] + high.input.shoulders[k]) / 2) > REFINE.share);
|
|
148
|
+
});
|
|
149
|
+
return off ? [...between(a, middle), middle, ...between(middle, b)] : [];
|
|
150
|
+
};
|
|
151
|
+
const stations = owned.flatMap((s, i) => (i === 0 ? [s] : [...between(owned[i - 1], s), s]));
|
|
152
|
+
const chains = stations.map(at);
|
|
153
|
+
const count = chains[0].input.points.length;
|
|
154
|
+
const guides = chains[0].guides;
|
|
155
|
+
if (guides.length !== 4)
|
|
156
|
+
throw new Error("the layout names " + guides.length + " engine guides instead of four");
|
|
157
|
+
// The wall's taper at a cap's first section: the relative growth of the mean of its four extents over a millimetre away from the tip,
|
|
158
|
+
// times the cap's length, held to [TAPER.least, TAPER.most].
|
|
159
|
+
const size = (s) => {
|
|
160
|
+
const chain = AutoMovieHumanConicSection_1.AutoMovieHumanConicSection.resolve(read(s), family.layout);
|
|
161
|
+
return chain.guides.reduce((sum, g, q) => sum + Math.abs(chain.input.points[g][q % 2]), 0);
|
|
162
|
+
};
|
|
163
|
+
const taper = (end) => {
|
|
164
|
+
const inward = Math.sign(end.from - end.tip);
|
|
165
|
+
return Math.min(TAPER.most, Math.max(TAPER.least, (size(end.from + inward) / size(end.from) - 1) * Math.abs(end.from - end.tip)));
|
|
166
|
+
};
|
|
167
|
+
// The wall's bend at a cap's first section in the cap's own measure: the second difference of the mean extent over millimetres away from
|
|
168
|
+
// the tip, relative to the extent, times the square of the cap's length.
|
|
169
|
+
const bend = (end) => {
|
|
170
|
+
const inward = Math.sign(end.from - end.tip);
|
|
171
|
+
const [s0, s1, s2] = [0, 1, 2].map((k) => size(end.from + k * inward));
|
|
172
|
+
return ((s2 - 2 * s1 + s0) / s0) * (end.from - end.tip) ** 2;
|
|
173
|
+
};
|
|
174
|
+
// The cap's knots and its rings both stand at equal steps of the root of the distance to the tip, the engine's pole parameter.
|
|
175
|
+
const capShares = Array.from({ length: CAP_KNOTS + 1 }, (_, k) => k / (CAP_KNOTS + 1));
|
|
176
|
+
// A coordinate is zero at a tip; an angle or a shoulder keeps the cap's first section's value there. Each cap knot is that section scaled
|
|
177
|
+
// by the tip's factor (`ITip`).
|
|
178
|
+
// A coordinate along chart axis `along` gathers about the end's `centre` while it shrinks (`ITip.centre`).
|
|
179
|
+
// With `own`, a coordinate that stands clear of its centre takes the taper and the bend of its own outline (`ITip.own`), from its values
|
|
180
|
+
// one and two millimetres away from the tip.
|
|
181
|
+
const cap = (end, value, along, site, pick) => {
|
|
182
|
+
const middle = along === null ? 0 : (end.centre?.[along] ?? 0);
|
|
183
|
+
const inward = Math.sign(end.from - end.tip);
|
|
184
|
+
const length = Math.abs(end.from - end.tip);
|
|
185
|
+
const [x1, x2] = end.own === true && along !== null && pick !== undefined ? [1, 2].map((k) => pick(AutoMovieHumanConicSection_1.AutoMovieHumanConicSection.resolve(read(end.from + k * inward), family.layout))) : [NaN, NaN];
|
|
186
|
+
const x0 = value;
|
|
187
|
+
const own = Number.isFinite(x1) && Math.abs(x0) > OWN_LEAST * size(end.from);
|
|
188
|
+
const q = own ? Math.min(TAPER.most, Math.max(TAPER.least, (x1 / x0 - 1) * length)) : taper(end);
|
|
189
|
+
const c = end.covered === true ? 0 : Math.max(0, (1 - q) ** 2 + (own ? ((x2 - 2 * x1 + x0) / x0) * length ** 2 : bend(end)));
|
|
190
|
+
const b = 2 * q - 1 - 2 * c;
|
|
191
|
+
const a = 1 - b - c;
|
|
192
|
+
return capShares.map((x, k) => {
|
|
193
|
+
const t = x * x;
|
|
194
|
+
const g = Math.sqrt(t * (a + t * (b + t * c)));
|
|
195
|
+
return { site: site + "." + k, station: end.tip + (end.from - end.tip) * t, value: along === null ? value : value * g + 2 * middle * g * (1 - g) ** 2 };
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
// The cap's rings: without them the engine meshed a cap from its first section straight to its pole, a cone ending in a flat disc.
|
|
199
|
+
const rings = (end) => (end.rings === undefined ? capShares : Array.from({ length: end.rings + 1 }, (_, k) => k / (end.rings + 1))).slice(1).map((x) => end.tip + (end.from - end.tip) * x * x);
|
|
200
|
+
const closing = (pick, along) => ({
|
|
201
|
+
knots: [
|
|
202
|
+
...(bottom === null ? [] : cap(bottom, pick(chains[0]), along, "tip.bottom", pick)),
|
|
203
|
+
...stations.map((station, i) => ({ site: "s" + i, station, value: pick(chains[i]) })),
|
|
204
|
+
...(top === null ? [] : cap(top, pick(chains.at(-1)), along, "tip.top", pick).reverse()),
|
|
205
|
+
],
|
|
206
|
+
});
|
|
207
|
+
const outline = (pick, along) => closing(pick, along);
|
|
208
|
+
const share = (pick) => closing(pick, null);
|
|
209
|
+
const quarters = (make) => [make(0), make(1), make(2), make(3)];
|
|
210
|
+
// A tangent angle is kept on one branch along the station so its outline never jumps by a turn.
|
|
211
|
+
const angle = (at) => {
|
|
212
|
+
let previous = NaN;
|
|
213
|
+
return share((chain) => {
|
|
214
|
+
let value = Math.atan2(chain.input.tangents[at][1], chain.input.tangents[at][0]);
|
|
215
|
+
if (Number.isFinite(previous))
|
|
216
|
+
value += 2 * Math.PI * Math.round((previous - value) / (2 * Math.PI));
|
|
217
|
+
previous = value;
|
|
218
|
+
return value;
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
const pieces = (q) => {
|
|
222
|
+
const out = [];
|
|
223
|
+
for (let at = (guides[q] + 1) % count; at !== guides[(q + 1) % 4]; at = (at + 1) % count) {
|
|
224
|
+
const index = at;
|
|
225
|
+
out.push({ u: outline((chain) => chain.input.points[index][0], 0), v: outline((chain) => chain.input.points[index][1], 1), angle: angle(index), shoulder: share((chain) => chain.input.shoulders[index]) });
|
|
226
|
+
}
|
|
227
|
+
return out;
|
|
228
|
+
};
|
|
229
|
+
const coordinate = (q, axisIndex) => outline((chain) => chain.input.points[guides[q]][axisIndex], axisIndex);
|
|
230
|
+
// Phases round the part: its widest section's girth, as the ellipse on its half extents (Ramanujan's perimeter), at `PHASE_MM` apart.
|
|
231
|
+
const girth = Math.max(...chains.map((chain) => {
|
|
232
|
+
const [a, b] = [0, 1].map((c) => (Math.max(...chain.input.points.map((p) => p[c])) - Math.min(...chain.input.points.map((p) => p[c]))) / 2);
|
|
233
|
+
return Math.PI * (3 * (a + b) - Math.sqrt((3 * a + b) * (a + 3 * b)));
|
|
234
|
+
}));
|
|
235
|
+
// And no farther apart than the finest relief net's columns, as the layers are cut to its rows: a net shows only what the rings sample.
|
|
236
|
+
const finest = Math.min(family.phase ?? Infinity, ...(family.reliefs ?? []).map((relief) => (relief.phases[1] - relief.phases[0]) / (relief.columns - 3)));
|
|
237
|
+
const made = {
|
|
238
|
+
name: family.name,
|
|
239
|
+
axis: axis(family),
|
|
240
|
+
stations: [...(bottom === null ? [] : [bottom.tip, ...rings(bottom)]), ...stations, ...(top === null ? [] : [...rings(top).reverse(), top.tip])],
|
|
241
|
+
...(bottom === null && top === null ? {} : { pole: bottom === null ? "top" : top === null ? "bottom" : "both" }),
|
|
242
|
+
front: { positive: coordinate(0, 0), negative: coordinate(2, 0) },
|
|
243
|
+
side: { positive: coordinate(1, 1), negative: coordinate(3, 1) },
|
|
244
|
+
fullness: { kind: "top", shoulders: quarters((q) => share((chain) => chain.input.shoulders[guides[q]])), touch: quarters((q) => coordinate(q, q % 2 === 0 ? 1 : 0)), pieces: quarters(pieces) },
|
|
245
|
+
order: 32,
|
|
246
|
+
samples: Math.max(48, 8 * Math.ceil(Math.max(girth / (family.pitch ?? PHASE_MM), (2 * Math.PI) / finest) / 8)),
|
|
247
|
+
...(family.reliefs === undefined || family.reliefs.length === 0 ? {} : { reliefs: family.reliefs }),
|
|
248
|
+
};
|
|
249
|
+
if (family.turn === undefined)
|
|
250
|
+
return made;
|
|
251
|
+
// Phases spaced by turn: read on the part's own lofted chain, whose phase is its sections' B-spline parameter, not their conics' polar
|
|
252
|
+
// angle. Read on the conics, the phases of a flat section 40 by 5 mm clustered where its conics turn and its rings still turned by
|
|
253
|
+
// 0.46 rad between two of them, against 0.1 asked.
|
|
254
|
+
const loft = engine_1.AutoMovieViewLoft.create(made);
|
|
255
|
+
if (loft.chain === null)
|
|
256
|
+
return made;
|
|
257
|
+
const phases = spaced(loft.chain, stations, family.pitch ?? PHASE_MM, family.turn, finest);
|
|
258
|
+
return { ...made, samples: phases.length, phases };
|
|
259
|
+
}
|
|
260
|
+
AutoMovieHumanConicLoft.part = part;
|
|
261
|
+
/** Phases round a ring that `spaced` reads its length and turn on. */
|
|
262
|
+
const SPACING_SAMPLES = 1024;
|
|
263
|
+
/**
|
|
264
|
+
* A part's ring phases spaced by its rings' length and turn (`IFamily.turn`).
|
|
265
|
+
*
|
|
266
|
+
* Every station's ring of the lofted chain is read at `SPACING_SAMPLES` phases. Over each step between two of them the density is the
|
|
267
|
+
* largest any ring asks for: its chord over `pitch`, its turn there over `turn`, or the step over `finest`, the finest relief net's
|
|
268
|
+
* column. The phases stand at equal shares of that density's integral from phase 0, a multiple of 8 of them and at least 48, as the
|
|
269
|
+
* uniform rule's count is.
|
|
270
|
+
*
|
|
271
|
+
* @param chain The part lofted on uniform phases.
|
|
272
|
+
* @param stations The stations its fields own, mm.
|
|
273
|
+
* @param pitch Largest distance between neighbouring phases, mm.
|
|
274
|
+
* @param turn Largest turn between neighbouring phases, radians.
|
|
275
|
+
* @param finest Finest relief net's column, radians.
|
|
276
|
+
*/
|
|
277
|
+
function spaced(chain, stations, pitch, turn, finest) {
|
|
278
|
+
const M = SPACING_SAMPLES;
|
|
279
|
+
const step = (2 * Math.PI) / M;
|
|
280
|
+
const density = new Array(M).fill(step / finest);
|
|
281
|
+
const unit = (a, b) => {
|
|
282
|
+
const d = [b[0] - a[0], b[1] - a[1], b[2] - a[2]];
|
|
283
|
+
const l = Math.hypot(d[0], d[1], d[2]);
|
|
284
|
+
return d.map((x) => x / l);
|
|
285
|
+
};
|
|
286
|
+
for (const s of stations) {
|
|
287
|
+
const ring = Array.from({ length: M }, (_, j) => engine_1.AutoMovieLoftChain.point(chain, s, j * step));
|
|
288
|
+
if (ring.some((p) => !p.every(Number.isFinite)))
|
|
289
|
+
continue;
|
|
290
|
+
// Over the step from sample j to j + 1: its chord, and the larger of the turns at its two ends.
|
|
291
|
+
const turns = ring.map((b, j) => {
|
|
292
|
+
const [u, w] = [unit(ring[(j + M - 1) % M], b), unit(b, ring[(j + 1) % M])];
|
|
293
|
+
return Math.acos(Math.max(-1, Math.min(1, u[0] * w[0] + u[1] * w[1] + u[2] * w[2])));
|
|
294
|
+
});
|
|
295
|
+
for (let j = 0; j < M; ++j) {
|
|
296
|
+
const [b, c] = [ring[j], ring[(j + 1) % M]];
|
|
297
|
+
const chord = Math.hypot(c[0] - b[0], c[1] - b[1], c[2] - b[2]);
|
|
298
|
+
density[j] = Math.max(density[j], chord / pitch, Math.max(turns[j], turns[(j + 1) % M]) / turn);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
const total = density.reduce((sum, x) => sum + x, 0);
|
|
302
|
+
const count = Math.max(48, 8 * Math.ceil(total / 8));
|
|
303
|
+
const phases = [];
|
|
304
|
+
let below = 0;
|
|
305
|
+
for (let j = 0, k = 0; j < M && k < count; ++j) {
|
|
306
|
+
// The phases whose share of the integral falls in this step, read linearly within it.
|
|
307
|
+
while (k < count && (total * k) / count <= below + density[j] + 1e-12) {
|
|
308
|
+
phases.push((j + ((total * k) / count - below) / density[j]) * step);
|
|
309
|
+
++k;
|
|
310
|
+
}
|
|
311
|
+
below += density[j];
|
|
312
|
+
}
|
|
313
|
+
return phases;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* The family's twin across the median plane `z = 0`, as a family of its own.
|
|
317
|
+
*
|
|
318
|
+
* The course and the chart seed are reflected, and the roll negated. A course's chart is `v = u x t`, so the reflected course charts the
|
|
319
|
+
* reflected section with `v` negated, which also reverses its travel: the twin's anchors are the original's in reverse
|
|
320
|
+
* order from the first, each extreme with its `v` negated, and the arc after the twin's anchor `j` is the original's arc
|
|
321
|
+
* before its anchor `K - j`. A feature point is read again on the twin's frame from the reflected section at every knot. An inflection's neighbours swap, so its share is `1 - t` and its turn `-d`, and the twin's
|
|
322
|
+
* dependent anchors keep the original's order of resolution. A relief keeps its stations and heights and takes the
|
|
323
|
+
* negated phase window, the reflected axis and its columns in reverse.
|
|
324
|
+
*
|
|
325
|
+
* @param family A family whose layout is not itself a mirror layout.
|
|
326
|
+
* @param name The twin's chain name.
|
|
327
|
+
*/
|
|
328
|
+
function mirror(family, name) {
|
|
329
|
+
const anchors = family.layout.anchors;
|
|
330
|
+
const K = anchors.length;
|
|
331
|
+
if (family.layout.mirror)
|
|
332
|
+
throw new Error("mirror: the layout of " + family.name + " cannot be reflected");
|
|
333
|
+
const { at, shoulders } = AutoMovieHumanConicSection_1.AutoMovieHumanConicSection.offsets(family.layout);
|
|
334
|
+
// Dependent anchors of one level are resolved in index order, each on the nearest anchors already resolved, so a groove's second
|
|
335
|
+
// inflection stands on its first one's chord. Reversed, the twin would resolve them the other way round; it keeps the original's order
|
|
336
|
+
// by a tie-break under one level.
|
|
337
|
+
const order = AutoMovieHumanConicSection_1.AutoMovieHumanConicSection.dependents(family.layout);
|
|
338
|
+
const resolved = (anchor, k) => anchor.kind === "m" || anchor.kind === "i" ? { ...anchor, level: (anchor.level ?? 1) + order.indexOf(k) / (2 * order.length) } : anchor;
|
|
339
|
+
const values = [];
|
|
340
|
+
for (let j = 0; j < K; ++j) {
|
|
341
|
+
const k = (K - j) % K;
|
|
342
|
+
const anchor = anchors[k];
|
|
343
|
+
// An inflection stands on its neighbours' chord, and the reversed order swaps its neighbours: its share is read from the other end
|
|
344
|
+
// (`1 - t`), and its turn from the chord, reflected and travelled the other way, changes sign.
|
|
345
|
+
if (anchor.kind === "i") {
|
|
346
|
+
values.push(family.values[at[k]].map((t) => 1 - t), family.values[at[k] + 1].map((d) => -d));
|
|
347
|
+
continue;
|
|
348
|
+
}
|
|
349
|
+
// A feature point stands on its frame's chord (`AutoMovieHumanConicSection.frame`), and reversed, a run's features stand on other
|
|
350
|
+
// frames (the last one first, on the chord to the next extreme): its numbers are read again below, knot by knot, on the twin's frames.
|
|
351
|
+
if (anchor.kind === "f") {
|
|
352
|
+
values.push(family.values[at[k]].map(() => 0), family.values[at[k] + 1].map(() => 0), family.values[at[k] + 2].map(() => 0));
|
|
353
|
+
continue;
|
|
354
|
+
}
|
|
355
|
+
values.push([...family.values[at[k]]]);
|
|
356
|
+
if (anchor.kind !== "m" && anchor.mid !== true)
|
|
357
|
+
values.push(family.values[at[k] + 1].map((v) => -v));
|
|
358
|
+
}
|
|
359
|
+
for (let j = 0; j < K; ++j)
|
|
360
|
+
values.push([...family.values[shoulders + (K - j - 1)]]);
|
|
361
|
+
// Each feature's numbers on the twin: at every knot the original section is resolved, its points reflected (`v` negated) and its
|
|
362
|
+
// tangents reflected and travelled the other way, and each feature is read on its twin frame's chord (`unplace`): the reflected point
|
|
363
|
+
// and direction, so the twin's section at every knot is the original's reflection.
|
|
364
|
+
const twinLayout = { mirror: false, anchors: anchors.map((_, j) => anchors[(K - j) % K]) };
|
|
365
|
+
const twinAt = AutoMovieHumanConicSection_1.AutoMovieHumanConicSection.offsets(twinLayout).at;
|
|
366
|
+
if (anchors.some((anchor) => anchor.kind === "f"))
|
|
367
|
+
family.knots.forEach((_, m) => {
|
|
368
|
+
const input = AutoMovieHumanConicSection_1.AutoMovieHumanConicSection.resolve(family.values.map((field) => field[m]), family.layout).input;
|
|
369
|
+
const points = Array.from({ length: K }, (__, j) => {
|
|
370
|
+
const p = input.points[(K - j) % K];
|
|
371
|
+
return [p[0], -p[1]];
|
|
372
|
+
});
|
|
373
|
+
let previous = 0;
|
|
374
|
+
for (let j = 0; j < K; ++j) {
|
|
375
|
+
if (anchors[(K - j) % K].kind !== "f")
|
|
376
|
+
continue;
|
|
377
|
+
if (j === 0 || anchors[(K - j + 1) % K].kind !== "f")
|
|
378
|
+
previous = 0;
|
|
379
|
+
const t = input.tangents[(K - j) % K];
|
|
380
|
+
const [before, after] = AutoMovieHumanConicSection_1.AutoMovieHumanConicSection.frame(j, twinLayout);
|
|
381
|
+
const read = AutoMovieHumanConicSection_1.AutoMovieHumanConicSection.unplace(points[before], points[after], points[j], Math.atan2(t[1], -t[0]), previous);
|
|
382
|
+
previous = read.t;
|
|
383
|
+
values[twinAt[j]][m] = read.values[0];
|
|
384
|
+
values[twinAt[j] + 1][m] = read.values[1];
|
|
385
|
+
values[twinAt[j] + 2][m] = read.values[2];
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
const flip = (v) => [v[0], v[1], -v[2]];
|
|
389
|
+
return {
|
|
390
|
+
name,
|
|
391
|
+
centres: family.centres.map(flip),
|
|
392
|
+
halves: [...family.halves],
|
|
393
|
+
up: flip(family.up),
|
|
394
|
+
// The reflected chart's `v` is the reflection's negated, so a turn from `u` toward `v` is the reflected turn negated.
|
|
395
|
+
...(family.roll === undefined ? {} : { roll: { knots: [...family.roll.knots], values: family.roll.values.map((angle) => -angle) } }),
|
|
396
|
+
// The twin's anchor `j` is the original's `(K - j) % K`, so its arc `j`, from anchor `j` to `j + 1`, is the original's arc `K - 1 - j`
|
|
397
|
+
// run backwards, and a least per arc is read in that order.
|
|
398
|
+
layout: {
|
|
399
|
+
mirror: false,
|
|
400
|
+
anchors: anchors.map((_, j) => resolved(anchors[(K - j) % K], (K - j) % K)),
|
|
401
|
+
...(family.layout.least === undefined ? {} : { least: typeof family.layout.least === "number" ? family.layout.least : anchors.map((_, j) => AutoMovieHumanConicSection_1.AutoMovieHumanConicSection.leastOf(family.layout, K - 1 - j)) }),
|
|
402
|
+
},
|
|
403
|
+
knots: [...family.knots],
|
|
404
|
+
values,
|
|
405
|
+
// A cap's centre lies in the chart, whose `v` the twin negates.
|
|
406
|
+
...(family.tips === undefined ? {} : { tips: family.tips.map((tip) => (tip === null || tip.centre === undefined ? tip : { ...tip, centre: [tip.centre[0], -tip.centre[1]] })) }),
|
|
407
|
+
...(family.pitch === undefined ? {} : { pitch: family.pitch }),
|
|
408
|
+
...(family.turn === undefined ? {} : { turn: family.turn }),
|
|
409
|
+
...(family.reliefs === undefined
|
|
410
|
+
? {}
|
|
411
|
+
: {
|
|
412
|
+
reliefs: family.reliefs.map((relief) => {
|
|
413
|
+
const turn = relief.phases[1] > 0 ? 2 * Math.PI : 0;
|
|
414
|
+
const reverse = (net) => net.map((_, i) => net[i - (i % relief.columns) + relief.columns - 1 - (i % relief.columns)]);
|
|
415
|
+
return { ...relief, name: relief.name + ".mirror", phases: [turn - relief.phases[1], turn - relief.phases[0]], axis: flip(relief.axis), heights: reverse(relief.heights), ...(relief.shift === undefined ? {} : { shift: reverse(relief.shift) }),
|
|
416
|
+
// The twin's phases run the other way, so its turning direction is the reflected one negated.
|
|
417
|
+
...(relief.turn === undefined ? {} : { turn: flip(relief.turn).map((x) => -x) }),
|
|
418
|
+
};
|
|
419
|
+
}),
|
|
420
|
+
}),
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
AutoMovieHumanConicLoft.mirror = mirror;
|
|
424
|
+
/** Loft a family through the engine. */
|
|
425
|
+
function create(family, stations) {
|
|
426
|
+
return engine_1.AutoMovieViewLoft.create(part(family, stations));
|
|
427
|
+
}
|
|
428
|
+
AutoMovieHumanConicLoft.create = create;
|
|
429
|
+
})(AutoMovieHumanConicLoft || (exports.AutoMovieHumanConicLoft = AutoMovieHumanConicLoft = {}));
|
|
430
|
+
//# sourceMappingURL=AutoMovieHumanConicLoft.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoMovieHumanConicLoft.js","sourceRoot":"","sources":["../../../src/generation/conic/AutoMovieHumanConicLoft.ts"],"names":[],"mappings":";;;AAAA,8CAAwN;AAGxN,6EAA0E;AAE1E;;;;;;;;GAQG;AACH,IAAiB,uBAAuB,CAuiBvC;AAviBD,WAAiB,uBAAuB;IAkItC,2GAA2G;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AE,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;4BAC/O,8FAA8F;4BAC9F,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAS,EAAU,EAAE,CAAC,CAAC,CAAC,CAA6B,EAAE,CAAC;yBAC7H,CAAC;oBACJ,CAAC,CAAC;iBACH,CAAC;SACP,CAAC;IACJ,CAAC;IA3Fe,wBAAA,MAAM,SA2FrB,CAAA;IAED,wCAAwC;IACxC,SAAgB,MAAM,CAAC,MAAe,EAAE,QAAkB;QACxD,OAAO,0BAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC1D,CAAC;IAFe,wBAAA,MAAM,SAErB,CAAA;AACH,CAAC,EAviBgB,uBAAuB,aAAvB,uBAAuB,GAAvB,uBAAuB,QAuiBvC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { AutoMovieHumanConicLoft } from "./AutoMovieHumanConicLoft";
|
|
2
|
+
/**
|
|
3
|
+
* A conic family carried to a pose: what a change of its course's joint angles asks of the family besides moving its centres.
|
|
4
|
+
*
|
|
5
|
+
* A jointed course (`AutoMovieViewAxis.jointed`) rounds each interior centre by a turn of arclength `2 half`, which leaves both
|
|
6
|
+
* neighbouring segments at the set-back `d` from the centre; between two turns the course is the segment's own line, a straight run.
|
|
7
|
+
* The straight runs are bone and the turn is the joint, so a pose must keep each run on its bone:
|
|
8
|
+
*
|
|
9
|
+
* 1. **Set-back.** `d = half g(angle)` with `g` a function of the turn's angle alone (`share`, read from the engine's own preparation).
|
|
10
|
+
* At another angle the same `half` gives another set-back, and every station past the turn slides along its bone. A posed turn
|
|
11
|
+
* therefore takes `half' = half g(angle) / g(angle')`, which keeps `d`, and the turn's arclength changes by `2 (half' - half)`.
|
|
12
|
+
* 2. **Stations.** Every station of the family (`knots`, `tips`, relief windows, roll knots) is carried by a piecewise-linear map from
|
|
13
|
+
* the reference course to the posed one (`map`). A run's skin rides one segment, the bone that ends at the run's far centre, so
|
|
14
|
+
* every station of a run keeps its distance from that centre; the first run keeps its distances from the first centre. A turn's span
|
|
15
|
+
* is mapped linearly onto what lies between its neighbours' runs: its own changed arclength and, where a run's near centre stands on
|
|
16
|
+
* another segment than its bone (a built corner fixed in the parent), whatever length the line between the two centres gained or
|
|
17
|
+
* lost. That length is absorbed at the joint the turn stands for, not along the bone.
|
|
18
|
+
* 3. **Twist.** The chart is carried from `up` through each turn by that turn's own rotation, so a joint's rotation about its bone's
|
|
19
|
+
* axis moves no centre and leaves the chart where it was, while everything on the segments past it turns. The posed family takes a
|
|
20
|
+
* `roll` (`AutoMovieHumanConicLoft.IRoll`) that brings the chart on each run to where that run's segment carries the reference chart;
|
|
21
|
+
* along a run the roll goes linearly from the angle of the run before it, at its proximal joint, to its own at its distal joint, as a
|
|
22
|
+
* twist chain spreads a forearm's pronation along its length, and it holds its value across a turn.
|
|
23
|
+
*
|
|
24
|
+
* At the reference pose all three are exact no-ops: the halves, the stations and the arrays that hold them are the family's own.
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace AutoMovieHumanConicPose {
|
|
27
|
+
type V3 = AutoMovieHumanConicLoft.V3;
|
|
28
|
+
/** A jointed course's runs and turns in arclength, as `AutoMovieViewJointedCourse.prepare` dates them. */
|
|
29
|
+
export interface ICourse {
|
|
30
|
+
/** Segment lengths between neighbouring centres, mm. */
|
|
31
|
+
lengths: number[];
|
|
32
|
+
/** Each interior centre's turn angle, radians. */
|
|
33
|
+
angles: number[];
|
|
34
|
+
/** Each turn's half arclength, mm. */
|
|
35
|
+
halves: number[];
|
|
36
|
+
/** Each turn's set-back on both its segments, mm. */
|
|
37
|
+
setbacks: number[];
|
|
38
|
+
/** The station each turn starts at, mm. */
|
|
39
|
+
starts: number[];
|
|
40
|
+
/** The course's arclength from its first centre to its last, mm. */
|
|
41
|
+
total: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A turn's set-back as a share of its half arclength, by its angle: the engine's own preparation of a made corner of that angle with a
|
|
45
|
+
* half of 1 mm between two segments of 1 km (the set-back is linear in the half and does not read the lengths). A straight joint has
|
|
46
|
+
* no turn; its share is the limit 1 of a vanishing angle, where the turn lies along both segments.
|
|
47
|
+
*/
|
|
48
|
+
export function share(angle: number): number;
|
|
49
|
+
/** The turn angle at each interior centre, radians, as the engine reads it: `atan2(|a x b|, a . b)` of the neighbouring unit directions. */
|
|
50
|
+
export function angles(centres: readonly V3[]): number[];
|
|
51
|
+
/**
|
|
52
|
+
* The halves that keep every turn's set-back when a course's centres move: `half' = half g(angle) / g(angle')`. At unchanged angles
|
|
53
|
+
* the given array itself is returned.
|
|
54
|
+
*/
|
|
55
|
+
export function halves(reference: readonly V3[], given: number[], posed: readonly V3[]): number[];
|
|
56
|
+
/** A course's runs and turns in arclength. A straight joint keeps its half as the stretch its set-backs span, which the engine walks as plain line. */
|
|
57
|
+
export function course(centres: readonly V3[], given: readonly number[]): ICourse;
|
|
58
|
+
/**
|
|
59
|
+
* The map of stations from a reference course to its posed course, of slope 1 on every run and before the first centre and past the
|
|
60
|
+
* last, and linear across each turn's span. A run after a turn ends where the posed course's run ends, at its far centre's set-back,
|
|
61
|
+
* and keeps its reference length back from there; the first run starts at the first centre. Each turn's span lies between its
|
|
62
|
+
* neighbours' runs, so it takes the turn's own change of arclength and any change of the following segment's length. Null when the
|
|
63
|
+
* two courses' breakpoints are the same numbers, where the map is the identity; a span left without length is refused.
|
|
64
|
+
*/
|
|
65
|
+
export function map(reference: ICourse, posed: ICourse): ((station: number) => number) | null;
|
|
66
|
+
/**
|
|
67
|
+
* The roll that brings a posed family's chart on each run to where the run's segment carries the reference chart.
|
|
68
|
+
*
|
|
69
|
+
* On run `k` the angle is read at the run's middle: from the posed course's own chart `u`, carried from `up` by the turns alone, toward
|
|
70
|
+
* `v`, to the reference course's own `u` there, carried likewise, as `carried` maps it into the pose. Each angle is taken on the branch nearest the run
|
|
71
|
+
* before it. The roll's knots stand at each run's ends and `ROLL_KNOTS` points between, on the line from the angle of the run before
|
|
72
|
+
* (the first run: its own) to the run's own, so it holds across every turn. Absent when no run's angle reaches `NO_TWIST`.
|
|
73
|
+
*
|
|
74
|
+
* @param reference The family as stored, in the reference pose.
|
|
75
|
+
* @param posed Its centres, halves and `up` at the pose, without a roll.
|
|
76
|
+
* @param carried A direction of the reference pose on run `k`, as that run's segment carries it to the pose.
|
|
77
|
+
*/
|
|
78
|
+
export function twist(reference: AutoMovieHumanConicLoft.IFamily, posed: Pick<AutoMovieHumanConicLoft.IFamily, "centres" | "halves" | "up">, carried: (run: number, direction: V3) => V3): AutoMovieHumanConicLoft.IRoll | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* A family carried to a pose: its centres and `up` as given, its halves keeping every set-back, its stations mapped, and the roll its
|
|
81
|
+
* joints' twists ask for. Its section values, layout and relief nets are the family's own arrays; where no station moves, so are its
|
|
82
|
+
* `knots`, `tips` and reliefs. `station` maps a station of the reference family to the posed one.
|
|
83
|
+
*
|
|
84
|
+
* A family that already rolls its chart (`roll`) keeps that roll on mapped knots; such a family whose joints also twist is refused,
|
|
85
|
+
* since one roll would have to carry both.
|
|
86
|
+
*/
|
|
87
|
+
export function repose(family: AutoMovieHumanConicLoft.IFamily, centres: V3[], up: V3, carried: (run: number, direction: V3) => V3): {
|
|
88
|
+
family: AutoMovieHumanConicLoft.IFamily;
|
|
89
|
+
station: ((station: number) => number) | null;
|
|
90
|
+
};
|
|
91
|
+
export {};
|
|
92
|
+
}
|