@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
package/README.md
CHANGED
|
@@ -31,16 +31,16 @@ const body = AutoMovieHumanCanonicalBody.prepare(parameters, { mass: 72, id: "a"
|
|
|
31
31
|
|
|
32
32
|
## Polygon man
|
|
33
33
|
|
|
34
|
-
The polygon man is drawn by `@automovie/
|
|
34
|
+
The polygon man is drawn by `@automovie/render` from the canonical body, and posed with canonical poses such as the ones `@automovie/motions` samples.
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
npm install @automovie/
|
|
37
|
+
npm install @automovie/render @automovie/interface three
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
```ts
|
|
41
41
|
import { AutoMovieHumanCanonicalBody, type IAutoMovieHumanParameters } from "@automovie/human";
|
|
42
42
|
import type { IAutoMoviePose } from "@automovie/interface";
|
|
43
|
-
import { buildHumanPolygon } from "@automovie/
|
|
43
|
+
import { buildHumanPolygon } from "@automovie/render";
|
|
44
44
|
import * as THREE from "three";
|
|
45
45
|
|
|
46
46
|
declare const parameters: IAutoMovieHumanParameters;
|
|
@@ -60,6 +60,21 @@ drawing.setPose({ posed: AutoMovieHumanCanonicalBody.display(body, pose).posed }
|
|
|
60
60
|
|
|
61
61
|
The polygon man is plain because it only has to show motion cheaply. Nothing about it stands for skin or clothing.
|
|
62
62
|
|
|
63
|
+
## Inspection
|
|
64
|
+
|
|
65
|
+
The figure is inspected with AutoMovie's shared instrument. `src/executable/subjects.ts` is a draw-only subject module that offers every person the package defines, by name (`f1`), in its canonical pose; `<person>@<pose>` names another pose once the package defines one. From this folder, `pnpm capture` runs `automovie capture` on it for stills and contact sheets, and `pnpm inspect` opens the inspector page over it; both take the request keys the [`render` README](../render/README.md#inspection) lists.
|
|
66
|
+
|
|
67
|
+
| Path | What it names |
|
|
68
|
+
| --- | --- |
|
|
69
|
+
| `f1` | The whole person |
|
|
70
|
+
| `f1/body` | The sewn skin: the trunk with the limbs, digits, ears and nose joined to it |
|
|
71
|
+
| `f1/<family>`, `f1/<family>.mirror` | One family's construction curves, such as `f1/arm` and its reflected twin's `f1/arm.mirror`; a loose family, when one is defined, is also a piece of its own here |
|
|
72
|
+
| `f1/<family>/section/<k>` | The section ring at the family's `k`-th authored knot |
|
|
73
|
+
| `f1/<family>/guide/<q>` | The guide rail at quarter phase `q`, 0 to 3 |
|
|
74
|
+
| `f1/<family>/axis` | The line through the rings' centres |
|
|
75
|
+
|
|
76
|
+
The construction curves are marks of the kinds `curve/section`, `curve/guide` and `curve/axis`, so `--marks curve/*` draws them over the surface and `--marks curve/* --surface 0` draws them alone, through the same views. The skin is one piece, so a family's surface cannot be drawn apart from the body; select its curves and frame them with `@focus`.
|
|
77
|
+
|
|
63
78
|
## Background
|
|
64
79
|
|
|
65
80
|
The anatomy, sources and lofting technique behind the generator are written up in [`docs`](./docs/README.md).
|
|
@@ -1,44 +1,26 @@
|
|
|
1
|
+
import { AutoMovieHandAnthropometry } from "@automovie/engine";
|
|
1
2
|
import { AutoMovieHumanSex } from "../typings/AutoMovieHumanSex";
|
|
2
3
|
/**
|
|
3
4
|
* Each digit's breadth and girth at its two joints nearest the tip: the
|
|
4
5
|
* digit's front-view outline and its tape at the knots the digit walk turns
|
|
5
6
|
* at.
|
|
6
7
|
*
|
|
7
|
-
* Source:
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* (counted from the tip: the distal interphalangeal joint, the thumb's
|
|
13
|
-
* interphalangeal joint) and the second (the proximal interphalangeal joint,
|
|
14
|
-
* the thumb's metacarpophalangeal joint), with the hand length (means,
|
|
15
|
-
* {@link JOINTS}, {@link HAND_LENGTH}).
|
|
8
|
+
* Source: the population table `@automovie/engine`'s
|
|
9
|
+
* `AutoMovieHandAnthropometry` holds (Rastgoo Balov et al. 2026, SAGE Open
|
|
10
|
+
* Med, PMC13039577, Tables 1 and 2: the right hands of 51 women and 49 men,
|
|
11
|
+
* each digit's breadth and girth at its first and second joint from the tip,
|
|
12
|
+
* with the hand length; means), which the objects a hand takes read too.
|
|
16
13
|
*
|
|
17
14
|
* Derivation: the person's digits scale with their hand length over the
|
|
18
15
|
* sample's mean hand length. A joint's depth is not published; its box's
|
|
19
16
|
* range (`AutoMovieHumanBodyBox.range`) bounds it from the breadth and girth,
|
|
20
17
|
* between `girth / 2 - breadth` and `sqrt(girth^2 / 4 - breadth^2)`.
|
|
21
18
|
*
|
|
22
|
-
* Limits:
|
|
23
|
-
* tip as the paper's order of its measures implies (the first joint's breadth
|
|
24
|
-
* is the smaller); the women's thumb breadth at its first joint carries a
|
|
25
|
-
* large SD (7.90 mm), a sign of an outlier in the sample.
|
|
19
|
+
* Limits: the table's own, stated where it is held.
|
|
26
20
|
*/
|
|
27
21
|
export declare namespace AutoMovieHumanDigitJoints {
|
|
28
22
|
/** One joint's caliper breadth and tape girth, mm. */
|
|
29
|
-
|
|
30
|
-
/** Breadth across the joint, mm. */
|
|
31
|
-
breadth: number;
|
|
32
|
-
/** Circumference round the joint, mm. */
|
|
33
|
-
girth: number;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Digits 1 (thumb) to 5 (little), each `[first joint, second joint]` from
|
|
37
|
-
* the tip, women then men (means).
|
|
38
|
-
*/
|
|
39
|
-
const JOINTS: readonly [readonly (readonly [IJoint, IJoint])[], readonly (readonly [IJoint, IJoint])[]];
|
|
40
|
-
/** The sample's mean hand length, women and men, mm. */
|
|
41
|
-
const HAND_LENGTH: readonly [number, number];
|
|
23
|
+
type IJoint = AutoMovieHandAnthropometry.IJoint;
|
|
42
24
|
/**
|
|
43
25
|
* A digit's joint, scaled to the person's hand.
|
|
44
26
|
*
|
|
@@ -1,56 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AutoMovieHumanDigitJoints = void 0;
|
|
4
|
+
const engine_1 = require("@automovie/engine");
|
|
4
5
|
const AutoMovieHumanSex_1 = require("../typings/AutoMovieHumanSex");
|
|
5
6
|
/**
|
|
6
7
|
* Each digit's breadth and girth at its two joints nearest the tip: the
|
|
7
8
|
* digit's front-view outline and its tape at the knots the digit walk turns
|
|
8
9
|
* at.
|
|
9
10
|
*
|
|
10
|
-
* Source:
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* (counted from the tip: the distal interphalangeal joint, the thumb's
|
|
16
|
-
* interphalangeal joint) and the second (the proximal interphalangeal joint,
|
|
17
|
-
* the thumb's metacarpophalangeal joint), with the hand length (means,
|
|
18
|
-
* {@link JOINTS}, {@link HAND_LENGTH}).
|
|
11
|
+
* Source: the population table `@automovie/engine`'s
|
|
12
|
+
* `AutoMovieHandAnthropometry` holds (Rastgoo Balov et al. 2026, SAGE Open
|
|
13
|
+
* Med, PMC13039577, Tables 1 and 2: the right hands of 51 women and 49 men,
|
|
14
|
+
* each digit's breadth and girth at its first and second joint from the tip,
|
|
15
|
+
* with the hand length; means), which the objects a hand takes read too.
|
|
19
16
|
*
|
|
20
17
|
* Derivation: the person's digits scale with their hand length over the
|
|
21
18
|
* sample's mean hand length. A joint's depth is not published; its box's
|
|
22
19
|
* range (`AutoMovieHumanBodyBox.range`) bounds it from the breadth and girth,
|
|
23
20
|
* between `girth / 2 - breadth` and `sqrt(girth^2 / 4 - breadth^2)`.
|
|
24
21
|
*
|
|
25
|
-
* Limits:
|
|
26
|
-
* tip as the paper's order of its measures implies (the first joint's breadth
|
|
27
|
-
* is the smaller); the women's thumb breadth at its first joint carries a
|
|
28
|
-
* large SD (7.90 mm), a sign of an outlier in the sample.
|
|
22
|
+
* Limits: the table's own, stated where it is held.
|
|
29
23
|
*/
|
|
30
24
|
var AutoMovieHumanDigitJoints;
|
|
31
25
|
(function (AutoMovieHumanDigitJoints) {
|
|
32
|
-
/**
|
|
33
|
-
* Digits 1 (thumb) to 5 (little), each `[first joint, second joint]` from
|
|
34
|
-
* the tip, women then men (means).
|
|
35
|
-
*/
|
|
36
|
-
AutoMovieHumanDigitJoints.JOINTS = [
|
|
37
|
-
[
|
|
38
|
-
[{ breadth: 18.41, girth: 60.61 }, { breadth: 20.07, girth: 68.52 }],
|
|
39
|
-
[{ breadth: 14.09, girth: 50.09 }, { breadth: 16.48, girth: 58.32 }],
|
|
40
|
-
[{ breadth: 14.08, girth: 48.78 }, { breadth: 16.1, girth: 59.28 }],
|
|
41
|
-
[{ breadth: 13.15, girth: 46.21 }, { breadth: 15.15, girth: 55.31 }],
|
|
42
|
-
[{ breadth: 11.87, girth: 42.92 }, { breadth: 13.41, girth: 48.49 }],
|
|
43
|
-
],
|
|
44
|
-
[
|
|
45
|
-
[{ breadth: 18.85, girth: 66.47 }, { breadth: 23.56, girth: 76.71 }],
|
|
46
|
-
[{ breadth: 15.34, girth: 53.58 }, { breadth: 17.98, girth: 64.06 }],
|
|
47
|
-
[{ breadth: 15.74, girth: 54.55 }, { breadth: 17.93, girth: 64.45 }],
|
|
48
|
-
[{ breadth: 14.79, girth: 51.64 }, { breadth: 17.21, girth: 61.77 }],
|
|
49
|
-
[{ breadth: 13.49, girth: 46.61 }, { breadth: 14.99, girth: 54.3 }],
|
|
50
|
-
],
|
|
51
|
-
];
|
|
52
|
-
/** The sample's mean hand length, women and men, mm. */
|
|
53
|
-
AutoMovieHumanDigitJoints.HAND_LENGTH = [175.64, 194.98];
|
|
54
26
|
/**
|
|
55
27
|
* A digit's joint, scaled to the person's hand.
|
|
56
28
|
*
|
|
@@ -62,8 +34,8 @@ var AutoMovieHumanDigitJoints;
|
|
|
62
34
|
*/
|
|
63
35
|
function at(sex, handLength, digit, joint) {
|
|
64
36
|
const k = sex === AutoMovieHumanSex_1.AutoMovieHumanSex.Female ? 0 : 1;
|
|
65
|
-
const scale = handLength /
|
|
66
|
-
const read =
|
|
37
|
+
const scale = handLength / engine_1.AutoMovieHandAnthropometry.HAND_LENGTH[k];
|
|
38
|
+
const read = engine_1.AutoMovieHandAnthropometry.JOINTS[k][digit - 1][joint - 1];
|
|
67
39
|
return { breadth: scale * read.breadth, girth: scale * read.girth };
|
|
68
40
|
}
|
|
69
41
|
AutoMovieHumanDigitJoints.at = at;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoMovieHumanDigitJoints.js","sourceRoot":"","sources":["../../src/generation/AutoMovieHumanDigitJoints.ts"],"names":[],"mappings":";;;AAAA,oEAAiE;AAEjE
|
|
1
|
+
{"version":3,"file":"AutoMovieHumanDigitJoints.js","sourceRoot":"","sources":["../../src/generation/AutoMovieHumanDigitJoints.ts"],"names":[],"mappings":";;;AAAA,8CAA+D;AAE/D,oEAAiE;AAEjE;;;;;;;;;;;;;;;;;GAiBG;AACH,IAAiB,yBAAyB,CAmBzC;AAnBD,WAAiB,yBAAyB;IAIxC;;;;;;;;OAQG;IACH,SAAgB,EAAE,CAAC,GAAsB,EAAE,UAAkB,EAAE,KAAwB,EAAE,KAAY;QACnG,MAAM,CAAC,GAAU,GAAG,KAAK,qCAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1D,MAAM,KAAK,GAAW,UAAU,GAAG,mCAA0B,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAC7E,MAAM,IAAI,GAAW,mCAA0B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QAClF,OAAO,EAAE,OAAO,EAAE,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;IACtE,CAAC;IALe,0BAAA,EAAE,KAKjB,CAAA;AACH,CAAC,EAnBgB,yBAAyB,aAAzB,yBAAyB,GAAzB,yBAAyB,QAmBzC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { AutoMovieViewAxis, AutoMovieViewLoft, type IAutoMovieLoftRelief, type IAutoMovieViewPart } from "@automovie/engine";
|
|
2
|
+
import { AutoMovieHumanConicSection } from "./AutoMovieHumanConicSection";
|
|
3
|
+
/**
|
|
4
|
+
* A conic family as it is authored, and its generation through the engine's
|
|
5
|
+
* view loft.
|
|
6
|
+
*
|
|
7
|
+
* A family is one part's tape wall: along a jointed course every section is
|
|
8
|
+
* an `AutoMovieHumanConicSection` whose fields are natural cubics through
|
|
9
|
+
* their values at a few shared station knots. Reliefs carry what lies inside
|
|
10
|
+
* that wall. Nothing else defines the part's surface.
|
|
11
|
+
*/
|
|
12
|
+
export declare namespace AutoMovieHumanConicLoft {
|
|
13
|
+
/** A point or direction in the figure's absolute frame: millimetres, forward +X, up +Y, left +Z. */
|
|
14
|
+
type V3 = [number, number, number];
|
|
15
|
+
/** The complete authored definition of one part. */
|
|
16
|
+
interface IFamily {
|
|
17
|
+
/** Chain name. */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Course centres: the first end, the joints and the last end, mm. */
|
|
20
|
+
centres: V3[];
|
|
21
|
+
/** Half arclength of the turn at each interior centre, mm. */
|
|
22
|
+
halves: number[];
|
|
23
|
+
/** The chart's `u` direction at the first segment before it is squared to the course. */
|
|
24
|
+
up: V3;
|
|
25
|
+
/**
|
|
26
|
+
* The chart's roll about the course; absent, none. A part whose sections turn in their planes along the course (a sheet that curls
|
|
27
|
+
* along its length, as the ear's plate does from the lobule up to the helix's top) keeps its long axis on `u` only if the chart turns
|
|
28
|
+
* with it: read in a chart carried by the course alone, its extremes trade places as it turns, and a field that follows one extreme
|
|
29
|
+
* jumps to the next.
|
|
30
|
+
*/
|
|
31
|
+
roll?: IRoll;
|
|
32
|
+
/** The anchors every section is read through. */
|
|
33
|
+
layout: AutoMovieHumanConicSection.ILayout;
|
|
34
|
+
/** Shared station knots, arclength from the first centre, mm. */
|
|
35
|
+
knots: number[];
|
|
36
|
+
/** Knot values by section field then knot. */
|
|
37
|
+
values: number[][];
|
|
38
|
+
/** Reliefs composed onto the wall; absent means none. */
|
|
39
|
+
reliefs?: IAutoMovieLoftRelief[];
|
|
40
|
+
/** Where the part closes in a point, toward its first knot and toward its last; null leaves that end an open section. */
|
|
41
|
+
tips?: [ITip | null, ITip | null];
|
|
42
|
+
/**
|
|
43
|
+
* Largest distance between two neighbouring phases at the part's widest section, mm; absent, `PHASE_MM`. A small part whose skin turns
|
|
44
|
+
* within a few millimetres takes a finer pitch: at 4 mm the ear's thin rim was sampled by three phases and its edge drew a row of teeth.
|
|
45
|
+
*/
|
|
46
|
+
pitch?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Largest step between neighbouring phases, radians, beside the finest relief net's columns: the mesh's density round the part held
|
|
49
|
+
* apart from its nets'. f1's trunk took its phases from its finest net, the eyes' at 105 columns (0.016 rad); with that net coarsened to
|
|
50
|
+
* 73 columns for its own sake the whole face's mesh went from about 400 phases round to 270 and read in level bands and blocks.
|
|
51
|
+
*/
|
|
52
|
+
phase?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Largest turn of a ring's tangent between two neighbouring phases, radians; absent, the phases are uniform. With it the phases are
|
|
55
|
+
* spaced by how fast the rings turn as well as by `pitch`: at every phase the density is the most any ring asks there, its length over
|
|
56
|
+
* `pitch` or its turn over this, so a sharp edge that only some sections have (a sole's) takes its phases close together where it
|
|
57
|
+
* stands, and the rest of the part keeps its spacing. f1's leg on uniform phases set by its thigh's girth turned by up to 0.83 rad
|
|
58
|
+
* between two of them round the forefoot's outer edge, which showed as level stripes.
|
|
59
|
+
*/
|
|
60
|
+
turn?: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* A roll of a part's chart about its course: at each station the chart carried by the course is turned by the angle, from `u` toward
|
|
64
|
+
* `v`, a natural cubic through its values at its own knots (straight past the first and the last), so the frames stay C2.
|
|
65
|
+
*/
|
|
66
|
+
interface IRoll {
|
|
67
|
+
/** Stations of the angle's knots, mm, increasing; at least two. */
|
|
68
|
+
knots: number[];
|
|
69
|
+
/** The angle at each knot, radians. */
|
|
70
|
+
values: number[];
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* One closed end of a part.
|
|
74
|
+
*
|
|
75
|
+
* Between `from` and `tip` the part is its section at `from` shrunk by one factor, with that section's tangent angles and shoulders kept. With
|
|
76
|
+
* `t = d / H`, `d` the distance to the tip and `H` that of `from`, the factor is `g = sqrt(P(t))` for the cubic `P(t) = a t + b t^2 + c t^3`:
|
|
77
|
+
* upright at the tip (`a > 0`, so `g` grows as `sqrt(t)`), 1 at `from`, leaving `from` at the wall's own taper `q = H mu` (`mu` the wall's
|
|
78
|
+
* relative growth per millimetre away from the tip) and bending there as the wall bends (`g'' = k`, the wall's relative second derivative
|
|
79
|
+
* times `H^2`), so the cap continues the wall without a crease in its slope or its curvature. Those three conditions at `t = 1`, `P = 1`,
|
|
80
|
+
* `P' = 2 q` and `P'' = 2 q^2 + 2 k`, give `c = (1 - q)^2 + k`, `b = 2 q - 1 - 2 c` and `a = 1 - b - c = 2 (1 - q) + c`; `c` is held at 0
|
|
81
|
+
* or more, which keeps `P` positive on the cap. With `c = 0` this is the conic `P = 2 (1 - q) t + (2 q - 1) t^2`, which bends by
|
|
82
|
+
* `-(1 - q)^2` at `from`: the earlier law, which met the slope of every wall but not its bend and left a ring round every finger's and toe's
|
|
83
|
+
* tip, where the wall runs on straight.
|
|
84
|
+
*/
|
|
85
|
+
interface ITip {
|
|
86
|
+
/** Station of the last section the fields own, between the first and the last knot, mm. */
|
|
87
|
+
from: number;
|
|
88
|
+
/** Station of the point, mm. */
|
|
89
|
+
tip: number;
|
|
90
|
+
/**
|
|
91
|
+
* The end is not the figure's skin: buried inside another part, as a digit's root inside its limb, or under the digits merged onto it,
|
|
92
|
+
* as a hand's or a foot's closed end. It closes as the conic (`c = 0`), the slimmest the law allows, instead of bending on as its wall
|
|
93
|
+
* bends: the fuller cap brought the foot's end 5.9 mm below the sole and moved where the outer digits come out of their limbs' ends.
|
|
94
|
+
*/
|
|
95
|
+
covered?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* The point of the chart, `[u, v]` mm, the cap's sections gather about while it closes, when the end's top does not stand over the
|
|
98
|
+
* course. A coordinate `x` of the cap is `x g + 2 c g (1 - g)^2` for its centre's coordinate `c`: at `from` it and its slope in `g` are
|
|
99
|
+
* the plain cap's, so the cap leaves the wall as before; it bulges toward the centre over its middle, by `8 c / 27` at most at
|
|
100
|
+
* `g = 1 / 3`; and it still closes on the course, where the pole is, since `x / g` tends to `x + 2 c`, which keeps the course inside
|
|
101
|
+
* every section while `|2 c|` is less than the section's extent on the far side. f1's crown: the course runs 16 mm behind the skull's
|
|
102
|
+
* top (the reference's top contour at 1,699 mm spans x -4 to 40), and the plain cap shrank the last section, 34 mm behind the course
|
|
103
|
+
* and 83 mm in front, toward it, so the back of the crown stood 4 mm proud of the reference at x -20 and the top was a flat lid with a
|
|
104
|
+
* corner behind.
|
|
105
|
+
*/
|
|
106
|
+
centre?: [number, number];
|
|
107
|
+
/**
|
|
108
|
+
* Each coordinate of the cap takes the taper and the bend of its own outline at `from`, instead of the mean extent's. One factor for the
|
|
109
|
+
* whole section met the mean slope but not each side's: f1's crown section narrows 0.95 mm a millimetre in front (on 83 mm) and 1.2 behind
|
|
110
|
+
* (on 34 mm), and the shared factor took 1.9 in front and 0.77 behind, a dip at the crown's front and a corner at its back. A coordinate
|
|
111
|
+
* within `OWN_LEAST` of the section's size of zero keeps the shared factor, since its relative change has no meaning there.
|
|
112
|
+
*/
|
|
113
|
+
own?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* How many rings the cap is meshed in between its first section and its tip; absent, one at each of its knots (`CAP_KNOTS`). A dome
|
|
116
|
+
* turns its normal through a quarter turn over its rings, and twelve showed as a bullseye of flat bands on a toe's tip.
|
|
117
|
+
*/
|
|
118
|
+
rings?: number;
|
|
119
|
+
}
|
|
120
|
+
/** The part's course as the engine reads it, its chart turned by the part's roll. */
|
|
121
|
+
function axis(family: Pick<IFamily, "centres" | "halves" | "up" | "roll">): AutoMovieViewAxis.IAxis;
|
|
122
|
+
/** The family's field vector at one station. */
|
|
123
|
+
function reader(family: Pick<IFamily, "knots" | "values">): (s: number) => number[];
|
|
124
|
+
/**
|
|
125
|
+
* The engine's view part of a family.
|
|
126
|
+
*
|
|
127
|
+
* The engine reads a section as four guides on its box with conic pieces
|
|
128
|
+
* between them. Those guide coordinates, touch offsets, piece points,
|
|
129
|
+
* tangent angles and shoulders are not authored: at every requested
|
|
130
|
+
* station they are resolved from the family's fields through
|
|
131
|
+
* `AutoMovieHumanConicSection.resolve` and handed over as derived outlines
|
|
132
|
+
* with one knot per station.
|
|
133
|
+
*
|
|
134
|
+
* @param family The authored definition.
|
|
135
|
+
* @param stations Stations of the emitted layers and of the derived outlines, mm, increasing.
|
|
136
|
+
*/
|
|
137
|
+
function part(family: IFamily, requested: number[]): IAutoMovieViewPart;
|
|
138
|
+
/**
|
|
139
|
+
* The family's twin across the median plane `z = 0`, as a family of its own.
|
|
140
|
+
*
|
|
141
|
+
* 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
|
|
142
|
+
* reflected section with `v` negated, which also reverses its travel: the twin's anchors are the original's in reverse
|
|
143
|
+
* order from the first, each extreme with its `v` negated, and the arc after the twin's anchor `j` is the original's arc
|
|
144
|
+
* 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
|
|
145
|
+
* dependent anchors keep the original's order of resolution. A relief keeps its stations and heights and takes the
|
|
146
|
+
* negated phase window, the reflected axis and its columns in reverse.
|
|
147
|
+
*
|
|
148
|
+
* @param family A family whose layout is not itself a mirror layout.
|
|
149
|
+
* @param name The twin's chain name.
|
|
150
|
+
*/
|
|
151
|
+
function mirror(family: IFamily, name: string): IFamily;
|
|
152
|
+
/** Loft a family through the engine. */
|
|
153
|
+
function create(family: IFamily, stations: number[]): AutoMovieViewLoft.IResult;
|
|
154
|
+
}
|