/** * Default body-region `hide` grants for HELIX character add-on slot types. * * ── WHY THIS EXISTS ──────────────────────────────────────────────────────────────────────────────────────────── * The platform ALREADY grants every `wearable`-archetype character slot the right to hide the base body's * skin underneath it (`helix-backend-api/src/add-ons/character-slot-pack.ts`, mirrored at runtime by * `helix-web-engine-new/systems/humanoid-character/.../core/vehicle/parts/characterBase.ts`) — a * `character.bottom@1` slot may hide `body_thigh_*`/`body_shin_*`, a `character.top@1` slot may hide * `body_torso`/`body_upperarm_*`, and so on. That grant is a CEILING, not a behaviour: nothing hides until * the add-on's own `ops` carries a `{v: 'hide', nodes: [...]}` entry naming regions within it. Before this * file, no code path in this CLI ever emitted one — every conformed character add-on shipped `ops: []` * regardless of slot type, so the base body's skin rendered in full under every published garment. That is * the root cause of the Base Female/Sinth Ascetic Pants poke-through: nothing was ever hiding the thigh/shin * skin the pants sit over. * * This table is the CEILING for a slot, not what a garment hides. Conform (`bridge/internal/builtInExecution.ts`) * measures the finished garment against the base body (`hideCoverage.ts`) and hides only the granted regions it * occludes (>= 98 %); a cropped trouser keeps its shins visible, a cap-sleeve top its upper arms. A profile's * explicit `hideRegions` (or `hideRegions: []` to hide nothing) overrides the measurement. Only when the base * body cannot be measured does conform fall back to emitting this whole grant — with a warning — because hiding * the full grant over skin the garment does not cover renders a void, and a hem inside a region seam a sawtooth * (the engine drops a triangle when two of its corners are in a hidden region). * * The glob strings below are copied VERBATIM from `CHARACTER_SLOT_PACK`'s `hide` arrays, not re-derived — * `bodyRegionHide.spec.ts` locks every entry down, so a platform-side rename is a failing test here rather * than a hide op the server rejects as "not covered by fits.requires.nodes". */ /** * The canonical body-region node vocabulary a HELIX base body's publish-time classifier assigns. * * ── THIS ARRAY'S ORDER IS A WIRE FORMAT, NOT JUST A LIST ────────────────────────────────────────────────────── * `bakeBodyRegions.ts` bakes each vertex's region as its INDEX INTO THIS ARRAY (a `_REGION` glTF vertex * attribute), and `helix-web-engine-new`'s runtime decodes that index back into a region name through the * IDENTICAL array (`characterBase.ts`'s `HELIX_BODY_REGIONS`, hand-synced with this one exactly like * `character-slot-pack.ts`/`characterBase.ts` already are for grants). A body baked under one order and read * under another silently mislabels regions — never reorder or remove an entry; only ever append. `body_hip` * was appended here (not inserted after `body_torso`) for exactly that reason, even though it reads more * naturally next to `body_torso`. * * `body_hip` (added for the waistband poke-through fix): the pelvis-dominant skin-weight zone — glutes, hip * crest, lower abdomen, the ring a garment's waistband sits on — as distinct from `body_torso` (spine-dominant: * ribs, chest, upper stomach, materially ABOVE where a waistband ever sits). See `bakeBodyRegions.ts`'s header * for exactly why the pelvis/spine skin-weight boundary is the split line, not an authored height threshold. */ export declare const HELIX_BODY_REGIONS: readonly ["body_head", "body_neck", "body_torso", "body_upperarm_l", "body_upperarm_r", "body_forearm_l", "body_forearm_r", "body_hand_l", "body_hand_r", "body_thigh_l", "body_thigh_r", "body_shin_l", "body_shin_r", "body_foot_l", "body_foot_r", "hair_base", "body_hip"]; export type HelixBodyRegion = (typeof HELIX_BODY_REGIONS)[number]; /** * `character.@1` -> the region globs that slot type's platform grant permits it to hide, copied * verbatim from `CHARACTER_SLOT_PACK` (`helix-backend-api/src/add-ons/character-slot-pack.ts`). A slot type * absent here, or mapped to `[]`, hides nothing by default — this matches the platform: accessories, * cosmetics, underwear and identity slots (eyewear, neck, earrings, nails, back, held props, shoulder, * brows/lashes/facial-hair, underwear, skin/eyes/makeup/tattoo, emote/locomotion/aura/voice, nameplate) are * granted no `hide` at all and are expected to layer over the body rather than occlude it. */ export declare const DEFAULT_HIDE_REGIONS_BY_SLOT_TYPE: Readonly>; /** The default hide-region globs for `slotType`, or `[]` when the platform grants that slot no `hide` at all. */ export declare function defaultHideRegionsForSlotType(slotType: string): readonly string[];