rig-parts 2.59.0 → 2.61.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 CHANGED
@@ -277,6 +277,7 @@ Command details and config saving are in the [command reference](docs/AUTHORING.
277
277
  | `check-parts` | [Check assembled parts' integrity and write a report](docs/AUTHORING.md#check-parts) |
278
278
  | `diff-components` | [List every place the stacked parts differ from the painting](docs/AUTHORING.md#whole-figure-difference-inventory) |
279
279
  | `diff-drafts` | [Compare two assemble outputs](docs/AUTHORING.md#command-reference) |
280
+ | `depth-place` | [Place body parts from a whole-painting depth map](docs/DEPTH.md#optional-place-body-parts-from-a-whole-painting-map) |
280
281
  | `depth-prepare` | [Write one depth-model input image per part](docs/DEPTH.md#1-prepare-one-inference-image-per-part) |
281
282
  | `depth-map` | [Convert a NumPy array to a depth or normals map](docs/DEPTH.md#convert-a-numpy-array) |
282
283
  | `depth-bind` | [Bind a depth map to its prepared input](docs/DEPTH.md#3-bind-every-map-to-its-prepared-input) |
@@ -302,6 +303,7 @@ Command details and config saving are in the [command reference](docs/AUTHORING.
302
303
 
303
304
  [docs/DEPTH.md](docs/DEPTH.md) is the feature page for a person: what a depth-driven turn gives you, the two stages that make the sheets, how to pick a painting and how to judge the result.
304
305
  See the [depth-driven rigging reference](docs/AUTHORING.md#depth-driven-rigging) for sampled head and body turns and unit-depth precedence.
306
+ The mandatory Core gate checks winding at [declared combinations of generated turn inputs](docs/AUTHORING.md#combined-turn-winding).
305
307
 
306
308
  ### Per-layer depth input
307
309
 
package/cli.ts CHANGED
@@ -3,7 +3,7 @@ import { assemblyChangeDetail, assemblyConfigChanges } from './src/assembly-read
3
3
  import { diffComponentsCommand } from './src/diffcomponents.ts';
4
4
  import { DIFF_DRAFTS_SPEC, diffDraftsCommand } from './src/diffdrafts.ts';
5
5
  import { applyTakenLayers } from './src/takelayers.ts';
6
- import { applyDepth, bindDepthMap, prepareDepth } from './src/depthworkflow.ts';
6
+ import { applyDepth, bindDepthMap, type DepthPlacementTurnCheck, prepareDepth, stageDepthPlacement } from './src/depthworkflow.ts';
7
7
  import { depthMapFail } from './src/depthmaps.ts';
8
8
  import { modelArrayMap, serializeModelArrayMap } from './src/modelarray.ts';
9
9
  import { externalReceipt } from './src/externalreceipt.ts';
@@ -36,7 +36,7 @@ import { coreCfg, DEFAULT_GROW_PX, runForeground } from './src/plate.ts';
36
36
  import { type CharacterConfig, loadClothConfig, loadConfig, loadEarlyConfig, loadPaintConfig } from './src/config.ts';
37
37
  import { type ConfigWritePatch, onlyMissingAttachments } from './src/configwrite.ts';
38
38
  import { configWriteLines, type ConfigWriteTarget, readConfigWriteTarget, separateConfigWriteTarget, stageConfigWrite, type StagedConfigWrite } from './tools/configwrite.ts';
39
- import { failLine, guidePointer, PartsError, type Problem } from './src/errors.ts';
39
+ import { failLine, guidePointer, PartsError, type Problem, problemLine } from './src/errors.ts';
40
40
  import { GUIDE_DOC, type GuideAnswer, guideRule, guideSection } from './src/guide.ts';
41
41
  import { proposeHeadBox, type Box } from './src/headbox.ts';
42
42
  import { headCropPreflight, headCropPreflightLines } from './src/headcroppreflight.ts';
@@ -102,6 +102,11 @@ usage:
102
102
  Write per-part inference PNGs on neutral gray, upscaled and padded as
103
103
  declared, plus a source-hashed manifest. No model is bundled or called.
104
104
 
105
+ rig-parts depth-place --parts <assembled-dir> --config <depth-recipe.json> --rig-config <config.json> --out <empty-dir> [--check-turn]
106
+ Place body parts using a painting-frame depth map and declared polarity,
107
+ scale and anchor. Write recipe.json, config.json and depth-place-report.json.
108
+ --check-turn applies the placed recipe and runs the rig gate in scratch.
109
+
105
110
  rig-parts depth-map --array <file.npy> --input <prepared.png> --kind <depth|normals>
106
111
  --part <name> --out <map.json> [--padding LEFT,TOP,RIGHT,BOTTOM]
107
112
  Convert little-endian float32/float64 C-order NumPy values to rig-parts-map/1.
@@ -1271,6 +1276,7 @@ const TAKES = {
1271
1276
  'depth-map': { valued: ['--array', '--input', '--kind', '--part', '--out', '--padding'], switches: ['--help'] },
1272
1277
  'depth-bind': { valued: ['--map', '--input', '--part'], switches: ['--help'] },
1273
1278
  'depth-prepare': { valued: ['--parts', '--config', '--out'], switches: ['--help'] },
1279
+ 'depth-place': { valued: ['--parts', '--config', '--rig-config', '--out'], switches: ['--check-turn', '--help'] },
1274
1280
  'depth-apply': { valued: ['--parts', '--manifest', '--config', '--rig-config', '--out', '--groups'], switches: ['--help'] },
1275
1281
  layers: { valued: ['--export', '--template', '--canvas', '--full', '--source', '--config'], switches: ['--help'] },
1276
1282
  sheet: { valued: ['--source', '--layers', '--out', '--cell', '--cols'], switches: ['--help'] },
@@ -3038,6 +3044,76 @@ function cmdDepthApply(args: string[]): number {
3038
3044
  } catch (error) { return printRefusal(error); }
3039
3045
  }
3040
3046
 
3047
+ function depthPlaceTurnCheck(parts: string, scratch: string, placed: { recipe: string; config: string }): DepthPlacementTurnCheck {
3048
+ const config = placed.recipe, rigConfig = placed.config;
3049
+ const prepared = join(scratch, 'prepared'), applied = join(scratch, 'applied');
3050
+ let stage: 'prepare' | 'apply' | 'rig' = 'prepare';
3051
+ type WindingFinding = Extract<DepthPlacementTurnCheck, { status: 'refused' }>['winding'][number];
3052
+ const findings = new Map<string, WindingFinding>();
3053
+ try {
3054
+ prepareDepth({ parts, config, out: prepared });
3055
+ stage = 'apply';
3056
+ applyDepth({ parts, config, rigConfig, manifest: join(prepared, 'manifest.json'), out: applied }, () => {});
3057
+ stage = 'rig';
3058
+ const bin = findRigc(import.meta.dir, process.env.PATH ?? '');
3059
+ const configPath = join(applied, 'config.json');
3060
+ const { meshes } = loadConfig(configPath);
3061
+ rigStage({ config: configPath, parts: applied, out: join(scratch, 'rig') }, rigcRunner(bin), join(scratch, 'gate'), line => {
3062
+ const address = /^\s*FAIL\s+(A39_DEFORM_KEEPS_TRIANGLE_WINDING): animation "([^"]+)"(?: \(applied by slider "([^"]+)", not played on a track\))? deform ([^/]+)\/(\S+) (.+)$/.exec(line);
3063
+ if (address === null) return;
3064
+ const [, rule, animation, frame, slot, attachment, detail] = address;
3065
+ const witness = /^(?:BETWEEN )?key (\d+) \(t=[^)]+\)(?: and key (\d+) \(t=[^)]+\), [^:]+)?: (\d+) of (\d+) triangle\(s\) reverse winding\b/.exec(detail);
3066
+ if (witness === null) return;
3067
+ const [, key, endKey, reversed, triangles] = witness;
3068
+ const owners = Object.keys(meshes).filter(part => slot.startsWith(`${part}__island`));
3069
+ const part = !Object.hasOwn(meshes, slot) && owners.length === 1 ? owners[0] : slot;
3070
+ findings.set(line.trim(), {
3071
+ rule, animation, part, attachment, key: Number(key),
3072
+ ...(endKey === undefined ? {} : { endKey: Number(endKey) }),
3073
+ reversedTriangles: Number(reversed), triangles: Number(triangles),
3074
+ ...(frame === undefined ? {} : { frame }),
3075
+ });
3076
+ });
3077
+ return { status: 'built' };
3078
+ } catch (error) {
3079
+ if (!(error instanceof PartsError)) throw error;
3080
+ const problems = error.problems.map(({ code, object, detail }) => ({ code, object: object.replaceAll(scratch, '<scratch>'), detail: detail.replaceAll(scratch, '<scratch>') }));
3081
+ return { status: 'refused', stage, problems, winding: [...findings.values()] };
3082
+ }
3083
+ }
3084
+
3085
+ function cmdDepthPlace(args: string[]): number {
3086
+ const checks = args.filter(arg => arg === '--check-turn').length;
3087
+ if (checks > 1) return usage('--check-turn is given twice');
3088
+ const f = flags(args.filter(arg => arg !== '--check-turn'), 'depth-place', ['--parts', '--config', '--rig-config', '--out']);
3089
+ if (typeof f === 'string') return usage(f);
3090
+ try {
3091
+ const input = { parts: f.get('--parts')!, config: f.get('--config')!, rigConfig: f.get('--rig-config')!, out: f.get('--out')! };
3092
+ const placement = stageDepthPlacement(input);
3093
+ if (checks === 0) placement.write(input.out);
3094
+ else {
3095
+ const scratch = realpathSync(mkdtempSync(join(tmpdir(), 'rig-parts-depth-place-')));
3096
+ try {
3097
+ const placed = placement.write(join(scratch, 'placed'));
3098
+ const check = depthPlaceTurnCheck(input.parts, scratch, placed);
3099
+ placement.write(input.out, check);
3100
+ console.log(`depth-place: turn check ${check.status}`);
3101
+ if (check.status === 'refused') for (const problem of check.problems) {
3102
+ console.log(`depth-place: turn check ${problemLine(problem)}${guidePointer(problem.code)}`);
3103
+ }
3104
+ } finally { rmSync(scratch, { recursive: true, force: true }); }
3105
+ }
3106
+ const { anchor, near, pivot, scale, parts } = placement.report;
3107
+ console.log(`depth-place: anchor=${anchor} near=${near} scale=${scale} pivot=${pivot}`);
3108
+ for (const row of parts) {
3109
+ const round = row.round === undefined ? '' : ` roundScale=${row.round.scale} sections=${row.round.sections} IQR=${JSON.stringify(row.round.iqr)}`;
3110
+ console.log(`depth-place: ${row.part} visible=${row.visibleCount} fraction=${row.visibleFraction} mapMedian=${row.rawMedian} rigMedian=${row.rigMedian} impliedReliefScale=${row.reliefRatio}${round}`);
3111
+ }
3112
+ console.log('depth-place: wrote recipe.json, config.json and depth-place-report.json');
3113
+ return EXIT_OK;
3114
+ } catch (error) { return printRefusal(error); }
3115
+ }
3116
+
3041
3117
  function main(argv: string[]): number | Promise<number> {
3042
3118
  const [command, ...rest] = argv;
3043
3119
  if (command === undefined || command === '--help' || command === '-h' || command === 'help') {
@@ -3055,6 +3131,7 @@ function main(argv: string[]): number | Promise<number> {
3055
3131
  if (command === 'layers') return cmdLayers(rest);
3056
3132
  if (command === 'depth-prepare') return cmdDepthPrepare(rest);
3057
3133
  if (command === 'depth-map') return cmdDepthMap(rest);
3134
+ if (command === 'depth-place') return cmdDepthPlace(rest);
3058
3135
  if (command === 'edited-part') return cmdEditedPart(rest);
3059
3136
  if (command === 'external-receipt') return cmdExternalReceipt(rest);
3060
3137
  if (command === 'bust-landmarks') return cmdBustLandmarks(rest);
package/docs/AUTHORING.md CHANGED
@@ -198,7 +198,7 @@ read by no CPU stage).
198
198
  | `bones` | rig; `propose --from-config` | **proposed** by `propose`, then corrected. A single bone `{name, parent, at, tip?}` or a chain `{chain, parent, points, tip, link_inherit?}` whose links are named `<chain>0 … <chain>n`. Parents come before children. In `rig.json` each link is **turned along its chain** — `rotation` is the direction from its origin to the next link's (the last link's to `tip`) and `length` that distance (issue #73), so a physics constraint added downstream finds a lever; under `--idle-keys ctl` the link's `<link>_ctl` carries the turn and the length and the link sits at local rotation 0 beneath it. A single bone with a `tip` is turned the same way, towards its tip, with that distance as its length (issue #239); a tip on the bone's own origin is refused (`RIG_TIP_DISTINCT`). The five face bones `eye_r`, `eye_l`, `brow_r`, `brow_l` and `mouth` (by name, when one has no tip of its own) are turned to the eye line — the line through the origins of `eye_r` and `eye_l` as `bones` writes them, read image-left to image-right, drawn when parts.json holds both an `eyewhite-r` and an `eyewhite-l` part — so the blink's `scaley` squashes across the eye line on a tilted head; move an eye bone and the line moves with it. With one eyewhite or none, or an eye bone missing, the rig stage's `face axis:` line says so and they keep the page's axes. A bone under a face bone keeps the face's axis. With the line, `rig.json` also declares `invariants.axes` — one entry, `"face"`, through `eye_r` and `eye_l`, holding the turned face bones (and their controls) — so rig-c's gate holds the build to the line; the line is the one rigc draws through the same two bones, so the tolerance is only the float floor — the largest gap the emitted (float32) bones have to it, rounded up to 6 places plus one 6-place unit — and the `face axis:` line prints it. With the line the rig stage also adds `head_up` (issue #250): a slotless bone under `head`, at head's origin, turned to the eye line + 90 degrees and as long as the eye midpoint lies from head's origin along that axis — the head's frame, which a rule that needs it reads; `head` keeps its own frame, so no key on it or under it changes meaning, and a config bone of that name is refused (`RIG_HEAD_UP_NAME_FREE`). A face bone with its own `tip` is held too (issue #258), in a second entry, `"face_tips"`, when its tip lies along the line within whole-pixel rounding — a tip written in whole pixels sits at most sqrt(2)/2 px off the point of the line it stands for, so its direction may sit up to asin((sqrt(2)/2) / length) degrees off — with its tolerance measured the same way; a tip further off is the bone's own axis, and the `face axis:` line names it with its gap and that bound. A failure is rig-c's `A51_BONES_LIE_ALONG_THEIR_DECLARED_AXIS` line, which names the bone and the fix (rig-c's `docs/AUTHORING.md` §3.7 and §5.2); with no line no entry is written and A51 reports SKIP. Every region on a turned bone is turned back, so the setup pose does not move. Any other single bone keeps world rotation 0; one whose parent is a link is turned back upright. A single bone may declare `inherit` (issue #348): what it takes from its parent's transform, one of rig-c's own mode names exactly as rig-c's table spells them — `normal`, `onlyTranslation`, `noRotationOrReflection`, `noScale`, `noScaleOrReflection` (rig-c's `RigBone.inherit`) — written to that bone in `rig.json` as declared; any other spelling, `"NoScale"` included (the runtime would fold its first letter; nothing here folds or maps), is refused (`CONFIG_BONE_INHERIT`), and a chain takes no `inherit` (`CONFIG_KEY_KNOWN`). A chain may instead declare `link_inherit` (issue #369), an object mapping its own expanded link names to those same modes, for example `"link_inherit": {"leg_r1": "noScale"}`. Only the named link changes; omitted links inherit normally. A key outside this chain is `CONFIG_NAME_RESOLVES`, with this chain's valid link names in the detail; a non-object or non-string mode is `CONFIG_FIELD_TYPE`, and another mode spelling is `CONFIG_BONE_INHERIT`. The mode is forwarded to the expanded link, or to its control under `--idle-keys ctl`, by the same rule as a single bone. This is an authored opt-in: `propose` does not add it. Its setup rotation is the turn from where rig-c's own poser puts the bone with no rotation of its own under that mode, so it still stands upright (or along its tip) at the setup pose. Where the idle gives the bone a `<bone>_ctl`, the mode goes on the control: the control is the bone the parent's rotation reaches, and the bone under it inherits normally, so the idle's keys moved onto the control still turn it. A foot that does not take its shin's rotation (`noRotationOrReflection` or `onlyTranslation`) keeps its shoe level while the leg is posed (`FEET_STAY_LEVEL`, §7); which mode is the author's. `noScale` keeps a shin or shoe's shape under a scaled parent but still takes the parent's rotation: a shoe that must also stay level needs a separate rotation constraint, for example a transform constraint from an unrotated bone. This does not change the proposed feet's existing inheritance or `FEET_STAY_LEVEL` default. An automatic mesh weighted through a bone with a mode other than `normal` gets no derived amplitude (its row names the bone) and no residual envelope (rig-c's `SKINNING_RANGE_UNSUPPORTED`). Absent, `rig.json` carries no `inherit` and no byte moves |
199
199
  | `meshes.<part>` | rig | **proposed**, then corrected. Generated modes below; `explicit` transfers an accepted mesh (see “An accepted mesh”). Exactly one mode is allowed. `grid` (the lattice: cell size, px — what `propose` writes for non-torso parts: by default one spacing for the figure, round(H / 37) rig px with H the height of every part's box together, a part whose tenth of its short side is already coarser keeping that, and under `propose --grid-rule part` the reference's tenth of the part's short side clamped to 5..36, issue #265), `contour` (the outline mode, authored or drafted for the chest carrier; the next row and "A contour mesh" below) or `auto` (the automatic mode, authored; "An automatic mesh" below) — two, or none, is `CONFIG_MESH_MODE`. In distance-generated modes: `r` (added to every distance before weighting: `w = 1/(d + r)²`), `segments` (a chain name, a bone name with a `tip`, or `[bone, [x0,y0], [x1,y1]]`), and, **authored**, optional, `exponent` (issue #161): a number above 0 that replaces the 2 in that rule, `w = 1/(d + r)^exponent` — a larger one hands each vertex more fully to its nearest bone; absent is 2 and changes no byte, a value that is not a number above 0 is `CONFIG_FIELD_TYPE` at `meshes.<part>.exponent`, and a declared one is echoed as `exponent` in the mesh's `mesh_report.json` row; the exponent is the distance rule's, so declared beside `rule: "heat"` it is refused (`CONFIG_FIELD_TYPE` at `meshes.<part>.exponent`). The segment list is the one authored decision about a layer: which bones may pull it. The slot's bone is the first segment's. Optional `rule` (issue #161): `"distance"` — the rule above, and what an absent `rule` means (every byte is the same) — or `"heat"`, bone heat over the part's own silhouette, in every mode: the lattice's art (alpha above 8, less any island a declared `stray` left out) with holes filled, or for `contour` and `auto` the silhouette their outline is traced from (that mode's art — alpha above 8 for `contour`, alpha 1 and above for `auto` — less any island a declared `stray` left out, holes filled, grown by its `margin`); each bound bone's sources are the silhouette pixels whose centre lies within 0.75 px of its segment (a pixel two bones reach goes to the nearer, a tie to the first listed), held at 1 for that bone and 0 for the others; the field is solved by row-major Gauss–Seidel over-relaxation to a sweep change under 1e-7 within 20000 sweeps; a vertex reads the nearest silhouette pixel and takes the same cap and floor (and `regions`) as the distance rule; `r` is not read. The mesh's `mesh_report.json` row gains `heat` (the constants, each bone's sources and sweeps, the residual). Any other value is `CONFIG_FIELD_TYPE`; a bound bone with no source pixel is `RIG_HEAT_BONE_SOURCE`, an island no bone has a source in `RIG_HEAT_ISLAND_SOURCE`, a solve past its sweep bound `RIG_HEAT_CONVERGED` — none is weighted 0. The rule is chosen per mesh, so `RIG_HEAT_BONE_SOURCE` names three remedies: move the segment onto the art, take the bone out of `segments`, or keep this part on the distance rule — the one to take when the bone anchors the part from outside its art (a torso bone under a neck), since the first moves a bone another part placed and the second drops the anchor (issue #303). On a lattice, `RIG_HEAT_ISLAND_SOURCE` on an island that is dust — at most 4 px and at most 0.1 % of the part's art px, `mesh-draft`'s line — names `meshes.<part>.stray` and the figure that leaves it out, with the value declared; an island above that line keeps the segment remedy, a real piece being a real authoring question. In every mode the mesh's `mesh_report.json` row's `bones` names the bones the emitted model binds for the attachment — the sorted set its weights in the written `rig.json` name, so a `turn` twin (`turn_<part>_<bone>`) or a stopped link's `<link>_d` where those rebind it, never the segment bone it stands for — the same list in every mode, `remesh --delta`'s included (issue #536) Optional `gather: false` keeps an exclusively bound non-segment limb rider at its authored draw position (issue #680); its binding and mesh geometry are unchanged. Remove the key for normal gathering; a non-rider is refused as `RIG_GATHER_RIDER`. `propose` drafts the chest-holding topwear as `contour` instead (issue #986), using the figure tolerance and spacing described below. For a one-layer figure it drafts `trunk_chest` as contour. Other garments keep their existing modes. |
200
200
  | `meshes.<part>.influence` | rig | **authored**, optional (issue #378), a mode beside `grid`, `contour` and `auto`: `{cell, radius, across, max, shape, hold_tip?}`, every field but `hold_tip` required, none defaulted. rig-c's `segments` lattice over the part at `cell` px, each vertex pulled by every link of the mesh's `segments` within `radius` px of it — a pull that falls to exactly 0 at `radius` (`shape` `"linear"` or `"smooth"`), across the `segments` entries or only within the nearest one (`across`), the strongest `max` kept. The lattice and the shares are computed by rig-c's own promised functions (`buildSegmentsLattice`, `segmentDistance`, `influenceShares`), so the rule is rig-c's (its AUTHORING §3.4.7), and the mesh is written with explicit weights like every other mode. `radius` is a length on this part: the rig stage measures the farthest lattice vertex's distance to its nearest link and refuses a radius at or under it (`RIG_INFLUENCE_REACH`), naming the distance. `propose --cloth` drafts it when a recipe declares `influence` and no `radius` (issue #518): the farthest vertex's distance plus 3 of the part's lattice cells, printed on a `LINT` line with both figures. Measured on the cloth fixture and the public `wind` example (#513: 8 covered parts, `render --folds` with the physics on under wind and a hip sway of 8° and 30°): a radius just above the floor folds **more** than the lattice (one skirt went from 0 to 55 folded frames), and a larger one is **not** safer (one fringe folded again at about 3–4× its farthest distance); +2 to +6 cells read 0 on every part, +2 at the edge. That reading counted folds only; read against `check` as well (the rig as built, under the wind schedule +1 → −1 → calm, `build --environment`, the three covered `wind` parts at the same number of cells), the window that holds is **+2 to +3 cells**, and +4 is the ceiling: `wind` `bottomwear`'s `CHECK_TIP_OVER_ROOT` ratio is 1.898 on the lattice, 1.801 at +2 cells, 1.590 at +3 and **1.471 at +4**, under the floor 1.4725, so the build fails there, and 1.351 at +6 (#513, rig-parts 1.52.0, rigc 2.60.0; the lattice, +3 and +4 read again on rig-parts 1.54.0, rigc 2.60.0, the same figures, #599). The drafted +3 sits in that window, one cell under the ceiling (no radius between +3 and +4 was read), and the window is a hypothesis until a third subject — each edge rests on one part — so state `radius` in the recipe to keep your own. `r`, `exponent`, `rule`, `influences`, `stray` and `ribs` belong to the distance rule or another mode and are refused beside it (`CONFIG_INFLUENCE_MODE`). `hold_tip` (issue #615) — `true` only, or absent: the pulled shares are smoothed by the lattice's held-fork passes (the cloth recipe's `split.hold_tip` sentence below: four passes of 1-ring mesh-edge averaging, self weight 0.5, floor 0.005) capped at the declared `max`, so no vertex binds more than `max` bones; absent, the shares are rig-c's as pulled and every byte is the one written before the field existed (`false`, a second spelling of absent, is `CONFIG_FIELD_TYPE`). The mesh's `mesh_report.json` row echoes it in `influence`. `propose --cloth` writes it, with `max` raised to at least 8 (the lattice's smoothing cap), on the parts a recipe with `influence` and `split.hold_tip: true` meshes; the rig stage reads it off the mesh and never the recipe. Measured on `wind` `bottomwear` and the cloth fixture's skirt under a 60° hip sway (#615, `render --folds`, physics on): `wind` `bottomwear` folds 41 frames as drafted before the field (max 6) and **0** with `hold_tip` and max 8, against its lattice's 5; with `hold_tip` at max 6 it reads 23, and at max 8 without `hold_tip` 3; the fixture skirt (recipe given `split.hold_tip`) reads 20 before and 0 with it, against its lattice's 0, and 0 at max 8 without it. So the raised `max` carries most of the gap and the smoothing the rest on `wind` (rig-parts 1.54.0, rigc 2.60.0; a split skirt without `hold_tip` is not smoothed and reads its 44 as before). For cloth and hair that should bend as one surface across its chains |
201
- | `meshes.<part>.contour` | rig | **authored or proposed**, optional (issue #84): `{tolerance, margin, spacing, maxEdge?, budget?, stray?, bridges?, regions?, bust?}`. `tolerance` — rig-c's Douglas–Peucker tolerance on the traced outline, px, 0 or more; `margin` — how far the silhouette grows before it is traced, px: 0, or 1 or more (a pixel joins when its centre lies within `margin` of an art pixel's centre; a value above 0 and below 1 adds nothing and is refused, `CONFIG_FIELD_TYPE`); `spacing` — the background interior spacing, px, above 0; `maxEdge` (issue #265) — the longest outline edge, px, above 0: every simplified edge longer than it is cut into `ceil(length / maxEdge)` equal pieces, each cut point on the 1/256 px grid, before any region or rib touches the outline (absent: nothing is cut, and no byte moves; under 2/256 px the rig stage refuses it, `CONTOUR_PARAMETER`, because two cut points could snap together); the row echoes it in `params` and counts the points it added in `contour.outlineCut`, both only when declared; `budget` — the most vertices the mesh may have (refused above it, nothing thinned); `stray` — the largest island, in art pixels, that may be left out of the mesh (absent: none is); `bridges` (issue #326) — `true`, its one value: islands are read in this order — **dust first** (those `stray` leaves out), **then faint islands** (every pixel's alpha under 64, a quarter of full opacity: left out the same way, their pixels kept in the image but not meshed, so not drawn, and named in the row's `contour.bridges.faint` with their px, brightest alpha and box), **then every visible island is meshed and bridged, whatever the bridge costs** — overdraw is reported, never a reason to drop art; the largest island, or a tie for it, is never left out, faint or not: dropping it would draft the part without its art, and a part whose main body is faint is a question about the layer, which the plan and the author own, not one for the mesh — and the pieces are joined into the one outline rig-c takes by bridges — the kept islands, holes filled, grow together by `margin`, so islands closer than about twice the margin are one grown silhouette, traced as one; each silhouette is traced, simplified, capped, refined and triangulated as a one-island mesh is; then, starting from the silhouette with the most art, the nearest pair of a vertex on the joined outline and one on a silhouette still apart whose quad holds (wound as the mesh, crossing no outline, holding no other vertex, one closed outline after) is joined by that quad, two triangles over no art, until none is apart. Coverage and overshoot read the silhouettes' triangles; a bridge's area is in `meshArea` and in the row's `contour.bridges` (`islands`, `units`, and per join `unit`, `span` — its two crossing edges, px — `area`, `vertices`, `pair`; and `faint`, only when an island was left out as faint), and the row's `params` echoes `bridges`, both only when declared; `art_coverage` counts a faint island's pixels as art not covered. Absent, a second island is refused as below and no byte moves; on one island it writes the mesh the undeclared entry writes. Any other value is `CONFIG_FIELD_TYPE`; beside `ribs` it is `CONTOUR_PARAMETER` (a rib runs across one outline); a join no pair makes is `CONTOUR_BRIDGE`. A bridge stretches with whatever pulls its two ends apart, so it belongs on a part whose pieces ride one bone — the only case `mesh-draft` drafts; a bridge adds no vertex (issue #570): its four corners, `contour.bridges.joins[].vertices`, are outline vertices of the two silhouettes it joins, and they are weighted as every vertex of the mesh is, by distance to every bone the mesh's `segments` name — no step of the weighting reads which island a vertex lies on, so where two islands ride two bones (two legs in one `legwear` on `leg_r` and `leg_l`) each island's vertices, the corners among them, take weight from the other island's bones too (selftest `CW100`: on its fixture the left island's two corners each take 0.35821 from the right island's bone, and none of its vertices less than 0.30431), and a part whose pieces must not pull each other is split into one part per piece; `regions` — local deformation regions, each `{name, shape, bone, spacing, band, cover?}` with `shape` `"circle"` (`cx, cy, r`) or `"polygon"` (`points`, 3 or more): `bone` is the region's control bone (any bone `bones` declares), `spacing` the interior spacing inside the region and its band, `band` the width the bone's weight falls across, and optional `cover` (issue #1548; non-empty part name, `CONFIG_FIELD_TYPE` otherwise; never drafted by `propose`), on a 2.5D turn `"surface"` part whose region `bone` lies in the other turn group's subtree, names the `"surface"` part in that other group (`turn.roles` for head, `turn.body.roles` for body) whose extended depth sheet supplies the region's other-group depth once at `bone`'s setup position (`g · D(z_cover)` across the band, with full-opacity `alpha === 255` support required on `cover`'s art at `bone`'s setup position, `RIG_TURN_BAND_COVER_SUPPORT`; declaring `cover` on a non-surface part, on a bone in the part's own turn group or outside both turn subtrees, or naming an undeclared, non-`"surface"` or sheetless part is `CONFIG_TURN_BAND_COVER`; absent, the band reads the part's own sheet and no byte moves). Every length and position is **rig px**, like every other in the config; the part image is the rig less `(x − 4, y − 4)` (its box less the pad), a translation, so a length is the same number in both. A region's `cx`, `cy`, `r`, `band` and `points` are multiples of 1/256 px (`CONFIG_FIELD_TYPE` otherwise); region names are unique per mesh (`CONFIG_REGION_NAME_UNIQUE`). `bust` (issue #475) — `{apex_r, apex_l, cleavage, alpha?: 0.22, clearance?: 3.8, bone_r?: "boob_r", bone_l?: "boob_l", spacing?: 14}`: derives the two circular regions `bust_r` and `bust_l` from the three rig-px landmarks `apex_r`, `apex_l` and `cleavage` (multiples of 1/256 px, `CONFIG_FIELD_TYPE` otherwise; projecting the torso midline `neck → chest → hip` onto `apex_r → apex_l` misses the cleavage by 14–93 px across all five calibrated 3/4-yaw characters, so all three points are required). With `d_s = \|cleavage − apex_s\|` and `D = \|apex_r − apex_l\|`, each side `s ∈ {r, l}` is placed at `cx = apex_s[0]`, `cy = apex_s[1]` with outer radius `R_s = d_s − clearance`, core radius `r_s = round(alpha × R_s)` and `band_s = round(R_s) − r_s` (`alpha` = 0.22, `clearance` = 3.8 px, `spacing` = 14 px, `bone_r` = `"boob_r"`, `bone_l` = `"boob_l"` by default, reproducing the five calibrated example characters within `<= 6 px`, max `\|ΔR\| = 5 px`, max `\|Δr\| = 3 px`). Refused when `clearance <= 0`, `R_r + R_l >= D`, or a derived `r_s` or `band_s` is not positive (`CONFIG_BUST_CLEARANCE`), when `bone_r` or `bone_l` is not declared in `bones` (`CONFIG_NAME_RESOLVES`), or when `contour.regions` also names `bust_r` or `bust_l` (`CONFIG_REGION_NAME_UNIQUE`). Both `propose` and `rig` read `contour.bust` through `contourRegionsOf` (`deriveBustRegions`), and hand-written `contour.regions` entries build byte-identically when `bust` is absent. The alpha threshold is not a field: art is alpha above 8, the lattice's and `check`'s Short outline edges amplify a cap or floor step in the vertex weights; the recorded grid, contour, bust and continuous-cut comparison is in "The weight cut" below. |
201
+ | `meshes.<part>.contour` | rig | **authored or proposed**, optional (issue #84): `{tolerance, margin, spacing, maxEdge?, budget?, stray?, bridges?, regions?, bust?}`. `tolerance` — rig-c's Douglas–Peucker tolerance on the traced outline, px, 0 or more; `margin` — how far the silhouette grows before it is traced, px: 0, or 1 or more (a pixel joins when its centre lies within `margin` of an art pixel's centre; a value above 0 and below 1 adds nothing and is refused, `CONFIG_FIELD_TYPE`); `spacing` — the background interior spacing, px, above 0; `maxEdge` (issue #265) — the longest outline edge, px, above 0: every simplified edge longer than it is cut into `ceil(length / maxEdge)` equal pieces, each cut point on the 1/256 px grid, before any region or rib touches the outline (absent: nothing is cut, and no byte moves; under 2/256 px the rig stage refuses it, `CONTOUR_PARAMETER`, because two cut points could snap together); the row echoes it in `params` and counts the points it added in `contour.outlineCut`, both only when declared; `budget` — the most vertices the mesh may have (refused above it, nothing thinned); `stray` — the largest island, in art pixels, that may be left out of the mesh (absent: none is); `bridges` (issue #326) — `true`, its one value: islands are read in this order — **dust first** (those `stray` leaves out), **then faint islands** (every pixel's alpha under 64, a quarter of full opacity: left out the same way, their pixels kept in the image but not meshed, so not drawn, and named in the row's `contour.bridges.faint` with their px, brightest alpha and box), **then every visible island is meshed and bridged, whatever the bridge costs** — overdraw is reported, never a reason to drop art; the largest island, or a tie for it, is never left out, faint or not: dropping it would draft the part without its art, and a part whose main body is faint is a question about the layer, which the plan and the author own, not one for the mesh — and the pieces are joined into the one outline rig-c takes by bridges — the kept islands, holes filled, grow together by `margin`, so islands closer than about twice the margin are one grown silhouette, traced as one; each silhouette is traced, simplified, capped, refined and triangulated as a one-island mesh is; then, starting from the silhouette with the most art, the nearest pair of a vertex on the joined outline and one on a silhouette still apart whose quad holds (wound as the mesh, crossing no outline, holding no other vertex, one closed outline after) is joined by that quad, two triangles over no art, until none is apart. Coverage and overshoot read the silhouettes' triangles; a bridge's area is in `meshArea` and in the row's `contour.bridges` (`islands`, `units`, and per join `unit`, `span` — its two crossing edges, px — `area`, `vertices`, `pair`; and `faint`, only when an island was left out as faint), and the row's `params` echoes `bridges`, both only when declared; `art_coverage` counts a faint island's pixels as art not covered. Absent, a second island is refused as below and no byte moves; on one island it writes the mesh the undeclared entry writes. Any other value is `CONFIG_FIELD_TYPE`; beside `ribs` it is `CONTOUR_PARAMETER` (a rib runs across one outline); a join no pair makes is `CONTOUR_BRIDGE`. A bridge stretches with whatever pulls its two ends apart, so it belongs on a part whose pieces ride one bone — the only case `mesh-draft` drafts; a bridge adds no vertex (issue #570): its four corners, `contour.bridges.joins[].vertices`, are outline vertices of the two silhouettes it joins, and they are weighted as every vertex of the mesh is, by distance to every bone the mesh's `segments` name — no step of the weighting reads which island a vertex lies on, so where two islands ride two bones (two legs in one `legwear` on `leg_r` and `leg_l`) each island's vertices, the corners among them, take weight from the other island's bones too (selftest `CW100`: on its fixture the left island's two corners each take 0.35821 from the right island's bone, and none of its vertices less than 0.30431), and a part whose pieces must not pull each other is split into one part per piece; `regions` — local deformation regions, each `{name, shape, bone, spacing, band, cover?, falloff?}` with `shape` `"circle"` (`cx, cy, r`) or `"polygon"` (`points`, 3 or more): `bone` is the region's control bone (any bone `bones` declares), `spacing` the interior spacing inside the region and its band, `band` the width the bone's weight falls across. The default eases the outer half of the band. Set `falloff: "linear"` to retain the prior weights (issue #1578). See [A contour mesh](#a-contour-mesh-meshespartcontour-issue-84). Optional `cover` (issue #1548; non-empty part name, `CONFIG_FIELD_TYPE` otherwise; never drafted by `propose`), on a 2.5D turn `"surface"` part whose region `bone` lies in the other turn group's subtree, names the `"surface"` part in that other group (`turn.roles` for head, `turn.body.roles` for body) whose extended depth sheet supplies the region's other-group depth once at `bone`'s setup position (`g · D(z_cover)` across the band, with full-opacity `alpha === 255` support required on `cover`'s art at `bone`'s setup position, `RIG_TURN_BAND_COVER_SUPPORT`; declaring `cover` on a non-surface part, on a bone in the part's own turn group or outside both turn subtrees, or naming an undeclared, non-`"surface"` or sheetless part is `CONFIG_TURN_BAND_COVER`; absent, the band reads the part's own sheet and no byte moves). Every length and position is **rig px**, like every other in the config; the part image is the rig less `(x − 4, y − 4)` (its box less the pad), a translation, so a length is the same number in both. A region's `cx`, `cy`, `r`, `band` and `points` are multiples of 1/256 px (`CONFIG_FIELD_TYPE` otherwise); region names are unique per mesh (`CONFIG_REGION_NAME_UNIQUE`). `bust` (issue #475) — `{apex_r, apex_l, cleavage, alpha?: 0.22, clearance?: 3.8, bone_r?: "boob_r", bone_l?: "boob_l", spacing?: 14}`: derives the two circular regions `bust_r` and `bust_l` from the three rig-px landmarks `apex_r`, `apex_l` and `cleavage` (multiples of 1/256 px, `CONFIG_FIELD_TYPE` otherwise; projecting the torso midline `neck → chest → hip` onto `apex_r → apex_l` misses the cleavage by 14–93 px across all five calibrated 3/4-yaw characters, so all three points are required). With `d_s = \|cleavage − apex_s\|` and `D = \|apex_r − apex_l\|`, each side `s ∈ {r, l}` is placed at `cx = apex_s[0]`, `cy = apex_s[1]` with outer radius `R_s = round(d_s − clearance)`, core radius `r_s = round(alpha × R_s)` and `band_s = R_s − r_s` (`alpha` = 0.22, `clearance` = 3.8 px, `spacing` = 14 px, `bone_r` = `"boob_r"`, `bone_l` = `"boob_l"` by default, reproducing the five calibrated example characters within `<= 6 px`, max `\|ΔR\| = 5 px`, max `\|Δr\| = 3 px`). Refused when `clearance <= 0`, `R_r + R_l >= D`, a derived `r_s <= 0`, or a derived `band_s < 0` (`CONFIG_BUST_CLEARANCE`), when `bone_r` or `bone_l` is not declared in `bones` (`CONFIG_NAME_RESOLVES`), or when `contour.regions` also names `bust_r` or `bust_l` (`CONFIG_REGION_NAME_UNIQUE`). Both `propose` and `rig` read `contour.bust` through `contourRegionsOf` (`deriveBustRegions`), and the derived pair keeps its linear falloff. To write the same circles directly in `contour.regions`, set `falloff: "linear"` on both entries. The alpha threshold is not a field: art is alpha above 8, the lattice's and `check`'s Short outline edges amplify a cap or floor step in the vertex weights; the recorded grid, contour, bust and continuous-cut comparison is in "The weight cut" below. |
202
202
  | `meshes.<part>.ribs` | rig | **authored**, optional (issue #188), in the `contour` and `auto` modes: `{<chain>: {stations}, …}`, each key a chain this mesh's `segments` name. Each link of the chain gets a row of vertices across the part at its origin and at `stations` points evenly between its origin and its end (`stations`, a whole number, 0 or more, required; a chain of L links carries L × (stations + 1) ribs), each rib a row of vertices across the part, kept as a row of locked edges; the rule is "Ribs along a chain" under "A contour mesh". Absent places none and changes no byte. Refused: a lattice mesh with ribs (`CONFIG_RIBS_MODE` — its vertices are its grid's corners), a key that is not one of the mesh's chains (`CONFIG_NAME_RESOLVES`), an object naming no chain or a `stations` that is not a whole number from 0 (`CONFIG_FIELD_TYPE`); at the rig stage `CONTOUR_RIB_ART`, `CONTOUR_RIB_LINK`, `CONTOUR_RIB_CROSSING`, `CONTOUR_RIB_EDGE` (the contour refusals). The mesh's `mesh_report.json` row gains `ribs` — the declaration, the ribs placed and the vertices they hold — and its contour report (the source's, in `auto`) lists each rib's vertices |
203
203
  | `meshes.<part>.influences` | rig | **authored or proposed**, optional (issue #284), in the `grid` and `contour` modes: `{maxInfluences?, floor?}`, at least one. `maxInfluences` — the most bones that pull one vertex, a whole number 1 or more, or `null`, no cap (every bone the mesh's `segments` name; `null` is the config's spelling of a bound declared absent, as in `maxOvershoot` and `weightJump`); absent is 4. `floor` — `"cut"` (the capped shares normalised, any under 0.03 dropped, the rest normalised again; what an absent `floor` means) or `"continuous"` (0.03 subtracted from every capped share, those at or below 0 dropped, the rest normalised again, so a bone fades out of a vertex instead of leaving it in one step). Absent, the mesh is weighted at 4 and the cut and every byte is the one written before the field existed; declared, it applies under either `rule`, and is echoed as `influences` in the mesh's `mesh_report.json` row. `propose` writes `{maxInfluences: null, floor: "continuous"}` only on a newly drafted contour torso whose segments name a chain or its links, with a note explaining the short-outline-edge weight step (issues #986, #991). Other drafts and authored contour entries retain their policy, and `mesh-draft` carries a lattice's declaration to the contour candidate it drafts. A cap that is not a whole number 1 or more or `null` (the string `"none"` included), another `floor`, or an object naming neither is `CONFIG_FIELD_TYPE`; a vertex the declared cut leaves with no bone is `RIG_INFLUENCES_KEPT`; beside `auto` it is `CONFIG_INFLUENCES_MODE` (that mode's cap and floor are `auto.influences`). What each setting trades is "The weight cut" below |
204
204
  | `meshes.<part>.stray` | rig | **authored**, optional (issue #303), in the `grid` mode: the largest island, in art pixels, that may be left out of the lattice — the contour mode's `contour.stray`, with the same meaning, over the same islands (the 4-connected islands of the art, alpha above 8): every island of `stray` art px or fewer is cleared from the art the lattice and, under `rule: "heat"`, its silhouette are built over, except an island as large as the largest, which is never left out (two equal largest pieces both stay). Unlike the contour mode an island above the figure is not refused — the lattice bridges every island it keeps, as it always has. An island that sits in a cell the lattice keeps for other art leaves the lattice unchanged: there `stray` changes only the silhouette `rule: "heat"` reads, and gives back no triangle (demo `bottomwear`'s 2 px island, in the cell kept for the hem's tip, is that case). Absent, nothing is left out and every byte is the one written before the field existed; a figure that leaves nothing out changes no byte of `rig.json` or `motion.json`. The part's image is not touched: a pixel left out stays in it, and is drawn only where a cell kept for other art happens to cover it; `art_coverage` is over all the art, the islands left out included. Declared, the mesh's `mesh_report.json` row echoes `stray` and adds `stray_cleared` (`islands`, `pixels`, `art_pixels`, after `influences`), and the rig stage's mesh line ends `stray <n> left out <i> island(s), <p> of <a> art px`. A value that is not a whole number from 0 is `CONFIG_FIELD_TYPE`; beside `contour` or `auto` it is `CONFIG_STRAY_MODE` (those modes state it in `contour.stray` and `auto.source.stray`). `propose` and `mesh-draft` never write it |
@@ -2500,18 +2500,30 @@ depth sheet or generated key, and adds no winding validator. Lattice meshes,
2500
2500
  head turns, unrelated animations and attachments absent from the generated
2501
2501
  body-turn deform get no contour/body-turn advice.
2502
2502
 
2503
- **Weights.** A region's bone takes `g` at a vertex: 1 inside the region (its edge included),
2504
- `1 − d/band` at a distance `d` past it, 0 at `d ≥ band` (with `band` 0, a step) — linear, no
2505
- curve. The rest, `1 − g`, is shared among the segment bones exactly as the lattice shares a
2506
- vertex (`w = 1/(d + r)²`, at most 4 bones, the 0.03 floor inside that share). A vertex no
2507
- region reaches is weighted and rounded exactly as a lattice vertex at the same point would be.
2508
- With a region present: a region bone that is also a segment bone is one entry,
2509
- `g + (1 − g)·share`; when the segment share already holds 4 bones and the region's bone is not
2510
- one of them, the lightest segment bone is dropped (never `g`); the 0.03 floor is not applied
2511
- again to the scaled shares; the weights are rounded to 5 places, an entry rounding to 0 is
2512
- dropped, and the remainder goes to the heaviest entry, so each vertex sums to exactly 1
2513
- (`src/localweights.ts`, `roundShares` in `src/rig.ts`). The 1 and the 0 are decided exactly on
2514
- the 1/256 px grid; only a value in between is a floating-point figure. A region's bone counts
2503
+ **Weights.** The nominal share `g` is 1 inside or on the region, `1 − d/band` at a
2504
+ distance `0 < d < band`, and 0 at or past the outer edge. With `band: 0`, the share
2505
+ steps directly from 1 to 0. The endpoints are decided exactly on the 1/256 px grid.
2506
+ Two regions with `g > 0` at the same vertex are refused before weighting.
2507
+
2508
+ By default, a region listed in `contour.regions` uses `4g²(1 − g)` for
2509
+ `0 < g < 0.5` and uses `g` everywhere else (issue #1578). The cubic starts at
2510
+ the outer edge with zero slope and meets the inner half with matching value
2511
+ and slope. Set `falloff: "linear"` on a declared contour region to use `g`
2512
+ throughout the band, retain its existing bytes, and opt out of the
2513
+ [coupled turn-band solve](#combined-turn-winding). Other explicit values are
2514
+ `CONFIG_FIELD_TYPE`. Regions derived from `contour.bust` and automatic mesh
2515
+ regions keep their linear weighting. Zero-width bands still use a hard edge.
2516
+
2517
+ With selected region share `w_region`, the segment bones split `1 − w_region`
2518
+ in the same proportions as the lattice (`w = 1/(d + r)²`, at most 4 bones, a
2519
+ 0.03 floor before scaling). If the region bone is also a segment bone, its
2520
+ single entry takes `w_region + (1 − w_region)·share`. If the region adds a bone
2521
+ to a full set of segment shares, the lightest segment bone is dropped and the
2522
+ remaining segment shares are renormalized before scaling. At a reached vertex,
2523
+ the weights are rounded to 5 places and entries rounding to 0 are dropped.
2524
+ The heaviest entry absorbs the rounding remainder so the weights sum to 1
2525
+ (`src/localweights.ts`, `roundShares` in `src/rig.ts`). A vertex outside the
2526
+ support uses the lattice's weighting and rounding. A region's bone counts
2515
2527
  as a mesh bone, so an idle key on it moves to `<bone>_ctl` under `--idle-keys ctl` like a
2516
2528
  segment bone's.
2517
2529
 
@@ -2535,6 +2547,13 @@ not: there the islands `source.stray` leaves out are cleared from every reader's
2535
2547
  `source.stray` below). A lattice mesh's row is
2536
2548
  unchanged.
2537
2549
 
2550
+ When the [coupled turn-band solve](#combined-turn-winding) runs, the mesh
2551
+ row's `coupled_turn_bands` entries name the part and band region, the number
2552
+ of vertices adjusted, the largest change in effective share, the declared
2553
+ slider tuples that triggered the solve, and the outcome. The rig stage also
2554
+ reports a fallback in its diagnostics, which are available even when Core
2555
+ refuses the candidate before `mesh_report.json` is written.
2556
+
2538
2557
  **Refusals** — every one names the part, the value found and the value required, and every
2539
2558
  contour refusal in a run is listed together; nothing falls back to the lattice:
2540
2559
 
@@ -2680,7 +2699,8 @@ unreduced source on the rig's idle and passes the author's bounds (step 4). The
2680
2699
  joined to the outside only at a corner counts as outside and a source spanning it is refused
2681
2700
  here (`CONTOUR_OVERSHOOT`, "the background flooded 8-connected"), with the number rig-c would
2682
2701
  read, rather than by rig-c's admission after the call. The row's `source.contour` says so
2683
- (`fitConnectivity: 8`); the contour mode keeps its 4-connected reading and writes no such key. Its weights are the contour mode's — segments and region falloff — under the author's
2702
+ (`fitConnectivity: 8`); the contour mode keeps its 4-connected reading and writes no such key.
2703
+ The source blends segment shares with the linear region falloff under the author's
2684
2704
  `influences`, with no 0.03 floor unless the author writes one.
2685
2705
  2. **The call** — rig-c's `reduceMesh` (`@rig-c/core/mesh`, 2.28.x) refines inside the declared
2686
2706
  regions, then removes vertices while every declared bound still holds. Every number it is
@@ -2860,7 +2880,7 @@ wall time goes to standard error, not into the table).
2860
2880
  | `minArtSamples` | the fewest art pixels a raster row is taken over, 1 or more |
2861
2881
  | `motion` | **required**: `maxLocalDeformation` (rig px, 0 or more — how far the reduced mesh may carry any art pixel from where its source carries it, at any frame); optional `maxStretch` / `minStretch` (ratios; absent, the rows are reported and not gated); optional `deformMayFold` (absent is **false**: a triangle that turns over refuses the part; true declares the slot in `invariants.deformMayFold` and lists every fold instead); optional `gradation` (px per px, 0 or more, or `null`; the author's G for `MQ_ALLOCATION_CONTRAST`, never derived — absent or `null`, the contrast reads `not-measurable` naming it; see *The allocation rows* below); optional `selection` (`{ "policy": "multi-interval", "maxProbes": <whole number, 1 or more> }`; absent, the acceptance loop is the bisection — see *The multi-interval selection* above); optional `residual` (`{ "maxResidual": <px, 0 or more> }`; absent, nothing is sent — see *The skinning residual as a per-step veto* above) |
2862
2882
  | `protect` | optional; each field optional: `hull` (true keeps every source outline vertex; absent is **false**, the default agreed for this mode), `vertices` and `edges` (source vertex indices and pairs that must survive), `regionBoundaries` (region names whose outline vertices must survive), `weightJump` (an L1 weight difference above which a source edge is kept; absent is none), `influences` (bones never pruned from a vertex; every region's bone is added) |
2863
- | `regions` | optional, each `{name, shape, bone?, band?, maxEdgeLength, transition, grade, minArtSamples}` with `shape` `"circle"` (`cx, cy, r`) or `"polygon"` (`points`): `bone` and `band` are the control bone and its weight falloff exactly as a contour region's (rig px, multiples of 1/256 px), written together (the region weights its bone and asks for density) or not at all (density only, issue #155; one without the other is refused by name); `maxEdgeLength` is L0, the longest an edge meeting the region may be, px; outside it, across `transition` px, the bound relaxes as `L0 + grade·d`; `transition` 0 is a hard edge; `minArtSamples` is the region's own sample floor |
2883
+ | `regions` | optional, each `{name, shape, bone?, band?, maxEdgeLength, transition, grade, minArtSamples}` with `shape` `"circle"` (`cx, cy, r`) or `"polygon"` (`points`): `bone` and `band` declare the control bone and its linear weight falloff (rig px, multiples of 1/256 px), written together (the region weights its bone and asks for density) or not at all (density only, issue #155; one without the other is refused by name). Automatic regions reject `falloff` as `CONFIG_KEY_KNOWN`. `maxEdgeLength` is L0, the longest an edge meeting the region may be, px; outside it, across `transition` px, the bound relaxes as `L0 + grade·d`; `transition` 0 is a hard edge; `minArtSamples` is the region's own sample floor |
2864
2884
  | `boundaryRuns` | optional, `{ maxVertices }`, a whole number 2 or more, no default: each removal pass first tries to replace a run of 2 to `maxVertices` consecutive source-hull vertices with one chord, as one step held to every declared row (below) |
2865
2885
  | `retriangulate` | optional, `"delaunay"`: once the reduction ends, the kept vertices are re-triangulated by Delaunay flips, taken whole only when every declared row still passes (below) |
2866
2886
  | `removalOrder` | optional, `"deformation-load"`: the single removals are tried in ascending predicted load instead of ascending source index (below) |
@@ -10071,7 +10091,7 @@ by `rig`, so their output requires no alternate compiler or dependency pin.
10071
10091
  | rule | refused input | remedy |
10072
10092
  | --- | --- | --- |
10073
10093
  | <a id="DEPTH_RECIPE"></a>`DEPTH_RECIPE` | unknown, absent or wrongly typed recipe field, group, source or frame | use the documented explicit recipe schema; no guessed field |
10074
- | <a id="DEPTH_RECIPE_NUMBER"></a>`DEPTH_RECIPE_NUMBER` | missing/nonfinite median, relief, near-scale pivot or prepare number; invalid range/integer | declare every numeric field in its documented units and range |
10094
+ | <a id="DEPTH_RECIPE_NUMBER"></a>`DEPTH_RECIPE_NUMBER` | missing or nonfinite median, relief, group scale or pivot, or prepare number. Also covers invalid ranges, invalid integers and invalid numeric `place.pivot` | declare numbers in the documented units and range, or use `"anchor"` for the placement pivot |
10075
10095
  | <a id="DEPTH_INPUT_PRESENT"></a>`DEPTH_INPUT_PRESENT` | declared input missing or not a file, or `depth-map` input unreadable or prepared PNG undecodable | restore the named readable input file in its expected format |
10076
10096
  | <a id="DEPTH_INPUT_JSON"></a>`DEPTH_INPUT_JSON` | malformed numeric or configuration JSON | write valid finite JSON |
10077
10097
  | <a id="DEPTH_PART_RESOLVES"></a>`DEPTH_PART_RESOLVES` | selected or cleared name absent from parts.json | use the assembled part name |
@@ -10087,17 +10107,92 @@ by `rig`, so their output requires no alternate compiler or dependency pin.
10087
10107
  | <a id="DEPTH_ARRAY_NONFINITE"></a>`DEPTH_ARRAY_NONFINITE` | retained raw depth pixel contains `NaN` or an infinity | export finite depth values at the named raw pixel |
10088
10108
  | <a id="DEPTH_ARRAY_NORMAL"></a>`DEPTH_ARRAY_NORMAL` | retained raw normal is zero or nonfinite, or a pooled normal cancels to zero | export finite nonzero signed XYZ normals in image axes and inspect the named raw or output pixel |
10089
10109
  | <a id="DEPTH_MAP_FORMAT"></a>`DEPTH_MAP_FORMAT` | wrong numeric schema, channels, shape, count, unknown field or nonfinite element | provide the declared float JSON map, not a preview |
10090
- | <a id="DEPTH_MAP_SIZE"></a>`DEPTH_MAP_SIZE` | map dimensions differ from its explicit frame | use the registered part, enlarged art or padded input grid |
10110
+ | <a id="DEPTH_MAP_SIZE"></a>`DEPTH_MAP_SIZE` | map dimensions differ from its explicit frame | use the registered part, enlarged art or padded input grid for a per-part map, or `parts.json`'s `rig_size` for a placement map |
10091
10111
  | <a id="DEPTH_MAP_SUPPORT"></a>`DEPTH_MAP_SUPPORT` | no alpha>=128 support | provide a supported part |
10092
10112
  | <a id="DEPTH_MAP_SPREAD"></a>`DEPTH_MAP_SPREAD` | p5=p95 with nonzero relief | supply a nonflat map or declare relief 0 |
10093
10113
  | <a id="DEPTH_APPLY_CLIPPED"></a>`DEPTH_APPLY_CLIPPED` | a pixel with original alpha >= 128 has pre-encoding depth `z <= 0` or `z >= zScale` | use the reported minimum median for each low-clipped part and the reported minimum group scale for upper clipping. The rig checks the head and body role sets separately, so if a surface belongs to both, use the larger required `zScale` in both groups. Recompute the group scale after median edits if the maximum changes, then prepare again. |
10094
10114
  | <a id="DEPTH_NORMAL_ISLANDS"></a>`DEPTH_NORMAL_ISLANDS` | zero/multiple connected components at native or integration resolution | scalar source, or a larger registered normal input that preserves one island |
10095
10115
  | <a id="DEPTH_NORMAL_VECTOR"></a>`DEPTH_NORMAL_VECTOR` | a sampled support normal is zero | provide nonzero signed XYZ normals |
10096
10116
  | <a id="DEPTH_NORMAL_CONVEXITY"></a>`DEPTH_NORMAL_CONVEXITY` | core/rim or its convexity sign is unresolved | larger closed convex mask or scalar source |
10097
- | <a id="DEPTH_GROUP_BINDING"></a>`DEPTH_GROUP_BINDING` | part outside declared turn roles, mixed retained near/zScale, or filename collision | register exact roles and one shared scale/polarity, replace/clear conflicting sheets, use distinct names |
10117
+ | <a id="DEPTH_GROUP_BINDING"></a>`DEPTH_GROUP_BINDING` | part outside declared turn roles, including a placed body part absent from `turn.body.roles`, mixed retained near/zScale, or filename collision | register exact roles and one shared scale/polarity, replace/clear conflicting sheets, use distinct names |
10098
10118
  | <a id="DEPTH_GROUP_SELECTION"></a>`DEPTH_GROUP_SELECTION` | `depth-apply --groups` with an empty list, a group the recipe does not declare, or a group named twice | name each group to apply once, from the recipe's `groups` |
10099
10119
  | <a id="DEPTH_GROUP_LEFT_OUT"></a>`DEPTH_GROUP_LEFT_OUT` | `depth-apply --groups` leaves a group out while the rig config declares that group's turn (`turn.body`; `turn.roles` or `turn.depths` for head) | remove that turn block from the rig config, or name the group in `--groups` |
10100
10120
  | <a id="DEPTH_AUTHORED_UNIT_CONFLICT"></a>`DEPTH_AUTHORED_UNIT_CONFLICT` | a selected part already records `provenance.depth.kind: "authored-unit"`; adding scalar depth would make its two representations conflict | retain the authored unit or supply an explicitly reassembled scalar-compatible input; apply never replaces the provenance automatically |
10121
+ | <a id="DEPTH_PLACE_NEAR"></a>`DEPTH_PLACE_NEAR` | `place.near` is missing or invalid | declare `black` for low raw values near or `white` for high raw values near |
10122
+ | <a id="DEPTH_PLACE_SCALE"></a>`DEPTH_PLACE_SCALE` | `place.scale` is missing, nonfinite or nonpositive, or a placed median or implied relief overflows | use the available anchor evidence to declare a finite positive scale in rig pixels per model unit that keeps placement values finite |
10123
+ | <a id="DEPTH_PLACE_GROUP"></a>`DEPTH_PLACE_GROUP` | missing `groups.body` in the recipe or missing 2.5D `turn.body` in the rig config | declare both body blocks and register the placement parts under the body's turn roles |
10124
+ | <a id="DEPTH_PLACE_ANCHOR"></a>`DEPTH_PLACE_ANCHOR` | `place.anchor` is missing or fails to name the first body turn surface | name the first `surface` in `turn.body.roles` and declare its body recipe median |
10125
+ | <a id="DEPTH_PLACE_OCCLUDED"></a>`DEPTH_PLACE_OCCLUDED` | a body recipe part or `turn.body` unit has zero visible pixels at alpha >= 128 in the assembled draw order | make the part visible in the assembled art or remove it from placement |
10126
+ | <a id="DEPTH_PLACE_ROUND"></a>`DEPTH_PLACE_ROUND` | invalid `place.round`, a name outside the placement set, no measurable section, or a nonpositive fitted slope | list unique body recipe parts or body units with measurable round sections and check the declared polarity and depth profile |
10127
+
10128
+ ### Place body depth from a whole-painting map (#1570)
10129
+
10130
+ Run `depth-place` on the assembled parts before preparing the recipe you will
10131
+ apply. Add the optional `place` object to `rig-parts-depth/1` and declare
10132
+ `groups.body` and the matching `turn.body` in the rig config.
10133
+
10134
+ ```sh
10135
+ rig-parts depth-place --parts assembled --config depth-recipe.json --rig-config config.json --out placed --check-turn
10136
+ ```
10137
+
10138
+ | `place` field | contract |
10139
+ | --- | --- |
10140
+ | `map` | Required. A one-channel `rig-parts-map/1` on the assembled painting grid (`parts.json`'s `rig_size`), resolved relative to the recipe. |
10141
+ | `near` | Required. `black` means low raw values are near. `white` means high raw values are near. This is the painting map's polarity. `groups.body.near` controls the encoding of the per-part sheets. |
10142
+ | `scale` | Required. A finite positive value in rig pixels per model unit. The refusal for a missing scale prints the available anchor evidence. |
10143
+ | `anchor` | Required. The body turn's first `surface`, with a median already declared in `parts`. |
10144
+ | `round` | Optional. An array of unique body recipe part or body unit names for round-limb scale evidence. |
10145
+ | `pivot` | Optional. Omit it or use `"anchor"` to write `0`, the offset at the reference depth. Supply a finite number to write that explicit offset in rig pixels. |
10146
+
10147
+ At each painting pixel, the last drawn part with alpha at least 128 owns the
10148
+ sample. Every assembled part participates in occlusion. Each body recipe part
10149
+ and body turn unit must have at least one visible pixel. Its raw median uses
10150
+ those visible samples. The command also refuses missing recipe parts, body
10151
+ units or `clear` entries, mismatched map dimensions, and round parts without
10152
+ measurable sections or with a nonpositive fitted slope.
10153
+
10154
+ With raw medians `m` and `mAnchor`, declared anchor median `zAnchor` and
10155
+ scale `k`, the resulting rig depth is `zAnchor + sign * (m - mAnchor) * k`,
10156
+ with `sign = -1` for `black` and `+1` for `white`. The anchor retains its
10157
+ declared median. Placed unit depths are world rig `z` in
10158
+ `turn.body.unitDepths`. A unit can use just the painting map, with no per-part
10159
+ map declaration. The body carrier projects an explicit unit depth as
10160
+ `pivot + z - zRef`, with `zRef` from the first body surface (#1577).
10161
+
10162
+ The output directory receives `recipe.json`, `config.json` and
10163
+ `depth-place-report.json`. The placed recipe supplies the body medians and
10164
+ the resolved group pivot, which the config also records. Any existing `groups.body.unitDepths` override
10165
+ also carries the placed unit values, so applying the recipe preserves them.
10166
+ Relief remains declared per part, and the body's sheet `zScale` remains a
10167
+ separate authored value. Relative map and config references are rebased to the
10168
+ output directory. Prepare with `placed/recipe.json` to bind its bytes, then
10169
+ apply with the new preparation manifest and `placed/config.json`. If placement
10170
+ changes a declared assembly input, apply's `ASSEMBLY_CONFIG_STALE` refusal names
10171
+ the change and requires reassembly with the placed config.
10172
+
10173
+ `depth-place-report.json` has `spec: "rig-parts-depth-place-report/1"`, `near`,
10174
+ `scale`, `anchor`, `pivot` and `parts`. The rows follow `parts.json` draw order
10175
+ and carry `part`, `group`, `visibleCount`, `visibleFraction` (visible pixels
10176
+ divided by alpha >= 128 pixels), `rawMedian`, `rawP5`, `rawP95`, `rigMedian`,
10177
+ `reliefRatio` (declared relief divided by `rawP95 - rawP5`, or `null` when
10178
+ unavailable) and `impliedRelief` (`(rawP95 - rawP5) * scale`, or `null` for a
10179
+ unit without a recipe entry). An optional
10180
+ `round` row field carries `sections`, `invertedSections`, `scale` (median fit)
10181
+ and `iqr` (the 25th and 75th percentiles of the section scales). The fit
10182
+ uses the full supported silhouette for its principal axis and section widths
10183
+ and the visible samples for regression. For a missing or invalid declared
10184
+ scale, the refusal includes the available evidence by part.
10185
+
10186
+ With `--check-turn`, the command runs prepare, apply and `rig` with the real
10187
+ Core gate in scratch space at the declared turn range and adds `turnCheck`
10188
+ to the report. The check object has `status: "built"` on success.
10189
+ With `status: "refused"` it also has `stage` (`prepare`, `apply` or `rig`),
10190
+ `problems` (each with `code`, `object` and `detail`) and `winding`. Available
10191
+ `A39_DEFORM_KEEPS_TRIANGLE_WINDING` findings carry `rule`, `animation`,
10192
+ `part`, `attachment`, `key`, `reversedTriangles` and `triangles`, with `endKey`
10193
+ for an interval and `frame` when a slider is named. A named check refusal
10194
+ still lets successful placement write its files and exit `0`. Adjust the
10195
+ declarations and check the new candidate with the same gate.
10101
10196
 
10102
10197
  ### Unit depth precedence
10103
10198
 
@@ -10276,6 +10371,42 @@ recorded unit sheet does not by itself promise different turn geometry.
10276
10371
  See the [authoring contract](AUTHORING.md#per-layer-depth-sheets-773)
10277
10372
  and the [getting-started guide](https://github.com/rig-c/getting-started).
10278
10373
 
10374
+ #### Combined turn winding
10375
+
10376
+ Parts writes the generated turn inputs to `rig.json` as
10377
+ `invariants.deformSliderCombinations` when it generates at least two dials.
10378
+ Head 2.5D roles generate yaw and pitch. Body roles generate body yaw. Each
10379
+ tuple names every applicable slider and gives its exact endpoint input
10380
+ (`-maxDeg` or `+maxDeg` for that dial), or explicit neutral `0` for the dial held
10381
+ at neutral.
10382
+ If Parts reuses an authored slider and rewrites its dial mapping, the
10383
+ declaration uses that slider's retained name.
10384
+
10385
+ | Generated dials | Declared poses |
10386
+ | --- | --- |
10387
+ | Head yaw and pitch | All four endpoint pairs |
10388
+ | Head yaw, pitch and body yaw | All eight endpoint triples, plus twelve endpoint pairs with the third dial at neutral (four for each choice of neutral dial), for twenty poses |
10389
+ | Fewer than two, including body-only yaw | Declaration omitted. Core reports A53 SKIP. |
10390
+
10391
+ Legacy authored sliders alone do not create declarations. Core 3.10.0's
10392
+ `A53_DECLARED_SLIDER_COMBINATIONS_KEEP_WINDING` poses each declared tuple
10393
+ together through the mandatory build gate. A reversal names the slider inputs,
10394
+ their mapped times and deform keys, the slot and attachment, and the reversed
10395
+ and total triangle counts. The gate refuses the candidate before rig emission.
10396
+ A39 also checks individual dials. A53 reports measured and unmeasured tuple
10397
+ counts for rigs that declare combinations.
10398
+
10399
+ For an eased, explicitly declared contour band shared by the head and body
10400
+ turn fields (#1582), Parts tries a bounded solve only when the generated fields
10401
+ would reverse a triangle at a declared tuple. It adjusts the effective blend
10402
+ shares in the turn deform keys. The authored skin weights and band geometry
10403
+ stay fixed. Even an edit elsewhere in the rig can tip a tuple into folding
10404
+ and trigger the solve, changing the emitted deform bytes at those band
10405
+ vertices. The contour mesh's `coupled_turn_bands` report names the triggering
10406
+ tuples. If the solve cannot keep the required signed area, Parts keeps the
10407
+ original deform fields and reports the fallback. Core's mandatory gate still
10408
+ decides whether the rig is written.
10409
+
10279
10410
  ### Per-layer depth input
10280
10411
 
10281
10412
  `config.depth` explicitly enables scalar input. Without it, `depth_filename`
@@ -10495,8 +10626,8 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
10495
10626
  <!-- check-row-table:begin -->
10496
10627
  | Row family | Registered JSON paths | row_scope | row_kind | row_subjects (producer expression) | Producer |
10497
10628
  | --- | --- | --- | --- | --- | --- |
10498
- | `ANIMATIONS_DO_NOT_FOLD.declared_not_folding` | `ANIMATIONS_DO_NOT_FOLD.declared_not_folding` | part when the supplied mapping resolves a piece; otherwise rig | finding | resolved piece for e.slot; otherwise [] | [check.ts:3731](../src/check.ts#L3731) |
10499
- | `ANIMATIONS_DO_NOT_FOLD.folding` | `ANIMATIONS_DO_NOT_FOLD.folding` | part when the supplied mapping resolves a piece; otherwise rig | finding when entry === undefined; otherwise evidence | resolved piece for slot; otherwise [] | [check.ts:3691](../src/check.ts#L3691) |
10629
+ | `ANIMATIONS_DO_NOT_FOLD.declared_not_folding` | `ANIMATIONS_DO_NOT_FOLD.declared_not_folding` | part when the supplied mapping resolves a piece; otherwise rig | finding | resolved piece for e.slot; otherwise [] | [check.ts:3745](../src/check.ts#L3745) |
10630
+ | `ANIMATIONS_DO_NOT_FOLD.folding` | `ANIMATIONS_DO_NOT_FOLD.folding` | part when the supplied mapping resolves a piece; otherwise rig | finding when entry === undefined; otherwise evidence | resolved piece for slot; otherwise [] | [check.ts:3705](../src/check.ts#L3705) |
10500
10631
  | `ART_JOINT_DISTANCE.joints` | `ART_JOINT_DISTANCE.joints` | 'rig' | finding when status === 'FAIL'; otherwise evidence | [] | [artjoints.ts:86](../src/artjoints.ts#L86) |
10501
10632
  | `BEHIND_PART_SEAMS.contributors` | `BEHIND_PART_SEAMS.turn.pairs[].frames[].standing.samples[].contributors`; `BEHIND_PART_SEAMS.turn.pairs[].frames[].motion_opened.samples[].contributors`; `BEHIND_PART_SEAMS.pairs[].setup.motion_opened.samples[].contributors`; `BEHIND_PART_SEAMS.pairs[].setup.standing.samples[].contributors`; `BEHIND_PART_SEAMS.pairs[].frames[].motion_opened.samples[].contributors`; `BEHIND_PART_SEAMS.pairs[].frames[].standing.samples[].contributors` | 'pair' | evidence | [pair.a, pair.b] | [behindseams.ts:664](../src/behindseams.ts#L664) |
10502
10633
  | `BEHIND_PART_SEAMS.hits` | `BEHIND_PART_SEAMS.pairs[].motion_opened.frames`; `BEHIND_PART_SEAMS.pairs[].standing.frames`; `BEHIND_PART_SEAMS.pairs[].motion_opened.worst`; `BEHIND_PART_SEAMS.pairs[].standing.worst` | 'pair' | finding when r.px > allowance; otherwise evidence | parts | [behindseams.ts:750](../src/behindseams.ts#L750) |
@@ -10512,53 +10643,53 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
10512
10643
  | `BEHIND_PART_SEAMS.unread_corridors` | `BEHIND_PART_SEAMS.turn.pairs[].frames[].standing.unread_corridors`; `BEHIND_PART_SEAMS.pairs[].setup.standing.unread_corridors`; `BEHIND_PART_SEAMS.pairs[].frames[].standing.unread_corridors` | 'pair' | evidence | [pair.a, pair.b] | [behindseams.ts:585](../src/behindseams.ts#L585) |
10513
10644
  | `BOUNDARY_COLOUR_STEP.over` | `BOUNDARY_COLOUR_STEP.over` | 'pair' | finding | r.parts | [boundarycolour.ts:221](../src/boundarycolour.ts#L221) |
10514
10645
  | `BOUNDARY_COLOUR_STEP.unmeasured` | `BOUNDARY_COLOUR_STEP.unmeasured` | part when the supplied mapping resolves a piece; otherwise rig | evidence | resolved piece for r.slot; otherwise [] | [boundarycolour.ts:222](../src/boundarycolour.ts#L222) |
10515
- | `CLOTH_SETTLES.rows` | `CLOTH_SETTLES.rows` | 'rig' | finding when speeds.length > 0 && s < speeds.length; otherwise evidence | [] | [check.ts:6180](../src/check.ts#L6180) |
10646
+ | `CLOTH_SETTLES.rows` | `CLOTH_SETTLES.rows` | 'rig' | finding when speeds.length > 0 && s < speeds.length; otherwise evidence | [] | [check.ts:6194](../src/check.ts#L6194) |
10516
10647
  | `CUT_JOINT_MATERIAL.rows` | `CUT_JOINT_MATERIAL.rows` | 'part' | finding when r.status === 'FAIL'; otherwise evidence | [r.part] | [cutmaterial.ts:280](../src/cutmaterial.ts#L280) |
10517
- | `FEET_STAY_LEVEL.feet` | `FEET_STAY_LEVEL.feet` | 'part' | finding when row.status === 'FAIL'; otherwise evidence | [row.part] | [check.ts:3933](../src/check.ts#L3933) |
10518
- | `FEET_STAY_LEVEL.feet[].worst.through` | `FEET_STAY_LEVEL.feet[].worst.through` | 'rig' | evidence | [] | [check.ts:3908](../src/check.ts#L3908) |
10519
- | `LIMB_ONE_BONE.parts` | `LIMB_ONE_BONE.parts` | 'part' | finding when fail; otherwise evidence | [p.name] | [check.ts:4226](../src/check.ts#L4226) |
10648
+ | `FEET_STAY_LEVEL.feet` | `FEET_STAY_LEVEL.feet` | 'part' | finding when row.status === 'FAIL'; otherwise evidence | [row.part] | [check.ts:3947](../src/check.ts#L3947) |
10649
+ | `FEET_STAY_LEVEL.feet[].worst.through` | `FEET_STAY_LEVEL.feet[].worst.through` | 'rig' | evidence | [] | [check.ts:3922](../src/check.ts#L3922) |
10650
+ | `LIMB_ONE_BONE.parts` | `LIMB_ONE_BONE.parts` | 'part' | finding when fail; otherwise evidence | [p.name] | [check.ts:4240](../src/check.ts#L4240) |
10520
10651
  | `PART_SUPPORT_REPORT.pairs` | `PART_SUPPORT_REPORT.pairs` | 'pair' | evidence; finding when length > 0; otherwise evidence | [F.name, B.name] | [coincide.ts:114](../src/coincide.ts#L114), [coincide.ts:130](../src/coincide.ts#L130) |
10521
10652
  | `PART_SUPPORT_REPORT.raw_pairs` | `PART_SUPPORT_REPORT.raw_pairs` | 'pair' | evidence | [F.name, B.name] | [coincide.ts:110](../src/coincide.ts#L110) |
10522
10653
  | `PART_SUPPORT_REPORT.unowned.regions` | `PART_SUPPORT_REPORT.unowned.regions` | 'rig' | finding | [] | [coincide.ts:145](../src/coincide.ts#L145) |
10523
10654
  | `PHYSICS_CONTRIBUTES.rows` | `PHYSICS_CONTRIBUTES.rows` | 'part' | evidence; finding when !moves; otherwise evidence | [part] | [physicscontrib.ts:217](../src/physicscontrib.ts#L217), [physicscontrib.ts:220](../src/physicscontrib.ts#L220) |
10524
- | `SEAM_OVER_MOTION.pairs` | `SEAM_OVER_MOTION.pairs` | 'pair' | evidence | [p.a, p.b] | [check.ts:5577](../src/check.ts#L5577) |
10525
- | `SEAM_OVER_MOTION.required.pairs` | `SEAM_OVER_MOTION.required.pairs` | 'pair' | finding when open > 0; otherwise evidence | [p.a, p.b] | [check.ts:4896](../src/check.ts#L4896) |
10526
- | `SEAM_OVER_MOTION.required.pairs[].open_frames` | `SEAM_OVER_MOTION.required.pairs[].open_frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:4888](../src/check.ts#L4888) |
10527
- | `SEAM_OVER_MOTION.roots.unmeasured` | `SEAM_OVER_MOTION.roots.unmeasured` | 'part' | evidence | [root.part] | [check.ts:5554](../src/check.ts#L5554) |
10528
- | `SEAM_OVER_MOTION.rows` | `SEAM_OVER_MOTION.rows` | 'pair'; unique ? 'pair' : 'rig' | finding when motionSeamFinding(want.root !== undefined, p.status, p.banded, opens.length); otherwise evidence; finding when motionSeamFinding(rootNames.has(r.pair), r.status, r.banded, r.opens.length); otherwise evidence | [want.a, want.b]; unique ? [pair.a, pair.b] : [] | [check.ts:5511](../src/check.ts#L5511), [check.ts:5583](../src/check.ts#L5583) |
10529
- | `SEAM_OVER_MOTION.rows[].cells` | `SEAM_OVER_MOTION.rows[].cells` | 'pair' | evidence | [want.a, want.b] | [check.ts:5524](../src/check.ts#L5524) |
10530
- | `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | 'pair' | evidence | [want.a, want.b] | [check.ts:5514](../src/check.ts#L5514) |
10655
+ | `SEAM_OVER_MOTION.pairs` | `SEAM_OVER_MOTION.pairs` | 'pair' | evidence | [p.a, p.b] | [check.ts:5591](../src/check.ts#L5591) |
10656
+ | `SEAM_OVER_MOTION.required.pairs` | `SEAM_OVER_MOTION.required.pairs` | 'pair' | finding when open > 0; otherwise evidence | [p.a, p.b] | [check.ts:4910](../src/check.ts#L4910) |
10657
+ | `SEAM_OVER_MOTION.required.pairs[].open_frames` | `SEAM_OVER_MOTION.required.pairs[].open_frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:4902](../src/check.ts#L4902) |
10658
+ | `SEAM_OVER_MOTION.roots.unmeasured` | `SEAM_OVER_MOTION.roots.unmeasured` | 'part' | evidence | [root.part] | [check.ts:5568](../src/check.ts#L5568) |
10659
+ | `SEAM_OVER_MOTION.rows` | `SEAM_OVER_MOTION.rows` | 'pair'; unique ? 'pair' : 'rig' | finding when motionSeamFinding(want.root !== undefined, p.status, p.banded, opens.length); otherwise evidence; finding when motionSeamFinding(rootNames.has(r.pair), r.status, r.banded, r.opens.length); otherwise evidence | [want.a, want.b]; unique ? [pair.a, pair.b] : [] | [check.ts:5525](../src/check.ts#L5525), [check.ts:5597](../src/check.ts#L5597) |
10660
+ | `SEAM_OVER_MOTION.rows[].cells` | `SEAM_OVER_MOTION.rows[].cells` | 'pair' | evidence | [want.a, want.b] | [check.ts:5538](../src/check.ts#L5538) |
10661
+ | `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | 'pair' | evidence | [want.a, want.b] | [check.ts:5528](../src/check.ts#L5528) |
10531
10662
  | `SEAM_OVER_MOTION.rows[].pose_at_worst.joints` | `SEAM_OVER_MOTION.rows[].pose_at_worst.joints` | 'rig' | evidence | [] | [motionseampose.ts:53](../src/motionseampose.ts#L53) |
10532
- | `SEAM_OVER_MOTION.worlds.*.rows` | `SEAM_OVER_MOTION.worlds.*.rows` | 'pair' | evidence | [want.a, want.b] | [check.ts:5508](../src/check.ts#L5508) |
10533
- | `SEAM_OVER_RANGE.joints` | `SEAM_OVER_RANGE.joints` | 'part' | evidence; finding when poses.some(p => p.status === 'FAIL'); otherwise evidence | [j.part] | [check.ts:4550](../src/check.ts#L4550), [check.ts:4596](../src/check.ts#L4596) |
10534
- | `SEAM_OVER_RANGE.joints[].poses` | `SEAM_OVER_RANGE.joints[].poses` | 'part' | finding when fail; otherwise evidence | [j.part] | [check.ts:4594](../src/check.ts#L4594) |
10663
+ | `SEAM_OVER_MOTION.worlds.*.rows` | `SEAM_OVER_MOTION.worlds.*.rows` | 'pair' | evidence | [want.a, want.b] | [check.ts:5522](../src/check.ts#L5522) |
10664
+ | `SEAM_OVER_RANGE.joints` | `SEAM_OVER_RANGE.joints` | 'part' | evidence; finding when poses.some(p => p.status === 'FAIL'); otherwise evidence | [j.part] | [check.ts:4564](../src/check.ts#L4564), [check.ts:4610](../src/check.ts#L4610) |
10665
+ | `SEAM_OVER_RANGE.joints[].poses` | `SEAM_OVER_RANGE.joints[].poses` | 'part' | finding when fail; otherwise evidence | [j.part] | [check.ts:4608](../src/check.ts#L4608) |
10535
10666
  | `SETUP_MATCHES_PAINTING.regions` | `SETUP_MATCHES_PAINTING.regions` | 'rig' | finding when status === 'FAIL'; otherwise evidence | [] | [setuppainting.ts:175](../src/setuppainting.ts#L175) |
10536
10667
  | `SETUP_MATCHES_PAINTING.regions[].slots` | `SETUP_MATCHES_PAINTING.regions[].slots` | part when the supplied mapping resolves a piece; otherwise rig | evidence | resolved piece for slot; otherwise [] | [setuppainting.ts:176](../src/setuppainting.ts#L176) |
10537
10668
  | `SOURCE_EXPOSURE.rows` | `SOURCE_EXPOSURE.rows` | 'part' | finding when declared !== undefined && r.px > declared.max_px; otherwise evidence | [r.part] | [sourceexposure.ts:292](../src/sourceexposure.ts#L292) |
10538
10669
  | `SOURCE_EXPOSURE.unmeasured` | `SOURCE_EXPOSURE.unmeasured` | part when the supplied mapping resolves a piece; otherwise rig | finding when declared !== undefined; otherwise evidence | resolved piece for u.slot; otherwise [] | [sourceexposure.ts:293](../src/sourceexposure.ts#L293) |
10539
- | `STILL_REGIONS_DARK.*.crossing` | `STILL_REGIONS_DARK.*.crossing` | part when the supplied mapping resolves a piece; otherwise rig | finding | resolved piece for sl.name; otherwise [] | [check.ts:9352](../src/check.ts#L9352) |
10540
- | `STILL_REGIONS_DARK.*.still_slots` | `STILL_REGIONS_DARK.*.still_slots` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when r.max > tolerance; otherwise evidence | resolved piece for slot; otherwise [] | [check.ts:9338](../src/check.ts#L9338), [check.ts:9343](../src/check.ts#L9343) |
10541
- | `STRESS_OFF_CHAIN.not_read` | `STRESS_OFF_CHAIN.not_read` | 'part' | evidence | [r.part] | [check.ts:4154](../src/check.ts#L4154) |
10542
- | `STRESS_OFF_CHAIN.per_part` | `STRESS_OFF_CHAIN.per_part` | 'part' | finding when poses.some(p => typeof p.reading === 'number' && p.reading > STRESS_RIGID); otherwise evidence | [r.part] | [check.ts:4142](../src/check.ts#L4142) |
10543
- | `STRESS_OFF_CHAIN.per_part[].off_chain` | `STRESS_OFF_CHAIN.per_part[].off_chain` | 'part' | evidence | [r.part] | [check.ts:4142](../src/check.ts#L4142) |
10544
- | `STRESS_OFF_CHAIN.per_part[].poses` | `STRESS_OFF_CHAIN.per_part[].poses` | 'part' | evidence; finding when shown > STRESS_RIGID; otherwise evidence | [r.part] | [check.ts:4110](../src/check.ts#L4110), [check.ts:4128](../src/check.ts#L4128) |
10545
- | `TEXTURE_STRETCH.per_mesh` | `TEXTURE_STRETCH.per_mesh` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when severity > TEXTURE_STRETCH_CEILING; otherwise evidence | resolved piece for m.slot; otherwise [] | [check.ts:10002](../src/check.ts#L10002), [check.ts:10012](../src/check.ts#L10012) |
10546
- | `TIP_OVER_ROOT.parts` | `TIP_OVER_ROOT.parts` | 'part' | evidence; finding when !ok && !(!rigid && hanging.onLink && Math.max(c.root, c.tip) < TIP_TRAVEL_FLOOR); otherwise evidence | [p.name] | [check.ts:8727](../src/check.ts#L8727), [check.ts:8732](../src/check.ts#L8732), [check.ts:8753](../src/check.ts#L8753), [check.ts:8764](../src/check.ts#L8764) |
10547
- | `WIND_BAND.pairs` | `WIND_BAND.pairs` | 'pair' | finding when !holdsAll; otherwise evidence | [p.a, p.b] | [check.ts:6684](../src/check.ts#L6684) |
10548
- | `WIND_BAND.pairs[].steps` | `WIND_BAND.pairs[].steps` | 'pair' | finding when !s.holds; otherwise evidence | [p.a, p.b] | [check.ts:6695](../src/check.ts#L6695) |
10549
- | `figure_openings.openings` | `figure_openings.openings` | 'pair' | finding | [ps.under, ps.above] | [check.ts:6001](../src/check.ts#L6001) |
10550
- | `loop_physics` | `loop_physics` | 'rig' | evidence | [] | [check.ts:7765](../src/check.ts#L7765) |
10551
- | `requirements.lines.* (bone)` | `requirements.lines.*` | 'rig' | finding when line.status === 'FAIL'; otherwise evidence | [] | [check.ts:8095](../src/check.ts#L8095) |
10552
- | `requirements.lines.* (seam)` | `requirements.lines.*` | 'pair' | finding when line.status === 'FAIL'; otherwise evidence | [r.part, r.neighbour] | [check.ts:8095](../src/check.ts#L8095) |
10553
- | `requirements.lines.* (stretch)` | `requirements.lines.*` | part when the supplied mapping resolves a piece; otherwise rig | finding when line.status === 'FAIL'; otherwise evidence | resolved piece for r.slot; otherwise [] | [check.ts:8095](../src/check.ts#L8095) |
10554
- | `seam_cells.frames` | `frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:4885](../src/check.ts#L4885) |
10555
- | `seam_cells.frames[].cells` | `frames[].cells` | part when the supplied mapping resolves a piece; otherwise rig | evidence | resolved piece for cell.setupTop ?? ''; otherwise [] | [check.ts:4845](../src/check.ts#L4845) |
10556
- | `seam_pairs` | `seam_pairs`; `seam_scope.whole_pairs`; `sets.*.seam_pairs`; `sets.*.seam_scope.whole_pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:2571](../src/check.ts#L2571) |
10557
- | `seam_scope.changes` | `seam_scope.changes`; `sets.*.seam_scope.changes` | 'rig' | evidence | [] | [check.ts:2049](../src/check.ts#L2049) |
10558
- | `seam_scope.domain.states` | `seam_scope.domain.states`; `sets.*.seam_scope.domain.states` | 'rig' | evidence | [] | [check.ts:2134](../src/check.ts#L2134) |
10559
- | `seam_scope.pairs` | `seam_scope.pairs`; `sets.*.seam_scope.pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:7618](../src/check.ts#L7618) |
10560
- | `seam_scope.population.pairs` | `seam_scope.population.pairs`; `sets.*.seam_scope.population.pairs` | 'pair' | evidence | row.parts | [check.ts:2505](../src/check.ts#L2505) |
10561
- | `seam_scope.population.single_art` | `seam_scope.population.single_art`; `sets.*.seam_scope.population.single_art` | 'part' | evidence | [row.part] | [check.ts:2506](../src/check.ts#L2506) |
10670
+ | `STILL_REGIONS_DARK.*.crossing` | `STILL_REGIONS_DARK.*.crossing` | part when the supplied mapping resolves a piece; otherwise rig | finding | resolved piece for sl.name; otherwise [] | [check.ts:9366](../src/check.ts#L9366) |
10671
+ | `STILL_REGIONS_DARK.*.still_slots` | `STILL_REGIONS_DARK.*.still_slots` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when r.max > tolerance; otherwise evidence | resolved piece for slot; otherwise [] | [check.ts:9352](../src/check.ts#L9352), [check.ts:9357](../src/check.ts#L9357) |
10672
+ | `STRESS_OFF_CHAIN.not_read` | `STRESS_OFF_CHAIN.not_read` | 'part' | evidence | [r.part] | [check.ts:4168](../src/check.ts#L4168) |
10673
+ | `STRESS_OFF_CHAIN.per_part` | `STRESS_OFF_CHAIN.per_part` | 'part' | finding when poses.some(p => typeof p.reading === 'number' && p.reading > STRESS_RIGID); otherwise evidence | [r.part] | [check.ts:4156](../src/check.ts#L4156) |
10674
+ | `STRESS_OFF_CHAIN.per_part[].off_chain` | `STRESS_OFF_CHAIN.per_part[].off_chain` | 'part' | evidence | [r.part] | [check.ts:4156](../src/check.ts#L4156) |
10675
+ | `STRESS_OFF_CHAIN.per_part[].poses` | `STRESS_OFF_CHAIN.per_part[].poses` | 'part' | evidence; finding when shown > STRESS_RIGID; otherwise evidence | [r.part] | [check.ts:4124](../src/check.ts#L4124), [check.ts:4142](../src/check.ts#L4142) |
10676
+ | `TEXTURE_STRETCH.per_mesh` | `TEXTURE_STRETCH.per_mesh` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when severity > TEXTURE_STRETCH_CEILING; otherwise evidence | resolved piece for m.slot; otherwise [] | [check.ts:10016](../src/check.ts#L10016), [check.ts:10026](../src/check.ts#L10026) |
10677
+ | `TIP_OVER_ROOT.parts` | `TIP_OVER_ROOT.parts` | 'part' | evidence; finding when !ok && !(!rigid && hanging.onLink && Math.max(c.root, c.tip) < TIP_TRAVEL_FLOOR); otherwise evidence | [p.name] | [check.ts:8741](../src/check.ts#L8741), [check.ts:8746](../src/check.ts#L8746), [check.ts:8767](../src/check.ts#L8767), [check.ts:8778](../src/check.ts#L8778) |
10678
+ | `WIND_BAND.pairs` | `WIND_BAND.pairs` | 'pair' | finding when !holdsAll; otherwise evidence | [p.a, p.b] | [check.ts:6698](../src/check.ts#L6698) |
10679
+ | `WIND_BAND.pairs[].steps` | `WIND_BAND.pairs[].steps` | 'pair' | finding when !s.holds; otherwise evidence | [p.a, p.b] | [check.ts:6709](../src/check.ts#L6709) |
10680
+ | `figure_openings.openings` | `figure_openings.openings` | 'pair' | finding | [ps.under, ps.above] | [check.ts:6015](../src/check.ts#L6015) |
10681
+ | `loop_physics` | `loop_physics` | 'rig' | evidence | [] | [check.ts:7779](../src/check.ts#L7779) |
10682
+ | `requirements.lines.* (bone)` | `requirements.lines.*` | 'rig' | finding when line.status === 'FAIL'; otherwise evidence | [] | [check.ts:8109](../src/check.ts#L8109) |
10683
+ | `requirements.lines.* (seam)` | `requirements.lines.*` | 'pair' | finding when line.status === 'FAIL'; otherwise evidence | [r.part, r.neighbour] | [check.ts:8109](../src/check.ts#L8109) |
10684
+ | `requirements.lines.* (stretch)` | `requirements.lines.*` | part when the supplied mapping resolves a piece; otherwise rig | finding when line.status === 'FAIL'; otherwise evidence | resolved piece for r.slot; otherwise [] | [check.ts:8109](../src/check.ts#L8109) |
10685
+ | `seam_cells.frames` | `frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:4899](../src/check.ts#L4899) |
10686
+ | `seam_cells.frames[].cells` | `frames[].cells` | part when the supplied mapping resolves a piece; otherwise rig | evidence | resolved piece for cell.setupTop ?? ''; otherwise [] | [check.ts:4859](../src/check.ts#L4859) |
10687
+ | `seam_pairs` | `seam_pairs`; `seam_scope.whole_pairs`; `sets.*.seam_pairs`; `sets.*.seam_scope.whole_pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:2585](../src/check.ts#L2585) |
10688
+ | `seam_scope.changes` | `seam_scope.changes`; `sets.*.seam_scope.changes` | 'rig' | evidence | [] | [check.ts:2063](../src/check.ts#L2063) |
10689
+ | `seam_scope.domain.states` | `seam_scope.domain.states`; `sets.*.seam_scope.domain.states` | 'rig' | evidence | [] | [check.ts:2148](../src/check.ts#L2148) |
10690
+ | `seam_scope.pairs` | `seam_scope.pairs`; `sets.*.seam_scope.pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:7632](../src/check.ts#L7632) |
10691
+ | `seam_scope.population.pairs` | `seam_scope.population.pairs`; `sets.*.seam_scope.population.pairs` | 'pair' | evidence | row.parts | [check.ts:2519](../src/check.ts#L2519) |
10692
+ | `seam_scope.population.single_art` | `seam_scope.population.single_art`; `sets.*.seam_scope.population.single_art` | 'part' | evidence | [row.part] | [check.ts:2520](../src/check.ts#L2520) |
10562
10693
 
10563
10694
  | Open serialized type path | Reason for schema exclusion |
10564
10695
  | --- | --- |