import { type SkinModel, type VertexSet } from './armBindSkin'; /** * FOOT SIDING — a shoe skinned to its own foot, never to the other one. * * Generated characters (Dreamer: Tripo by default) come back auto-rigged by proximity in the source pose, where the * feet stand a few centimetres apart: a loafer on the LEFT foot carries 0.1-0.2 of the RIGHT foot, calf or thigh. At * rest nothing shows. In a stride the feet part half a metre and every such vertex is dragged across to the other * shoe: the shoe tears into stretched spikes and sheets (a01 sweater girl, hosted critic: "the loafers tear into * jagged, stretched spikes extending from the heels and toes"; 47-51 % of the foot surface carried an edge stretched * over 3x, against 0-0.4 % on Base Female). The gate's own `avatar.skin_intact` read 0.9 % of the WHOLE surface and * passed it, because a pair of shoes is about 3 % of the body. * * Geometry says which foot a vertex belongs to; the weights are not asked. Below the ankle (plus a margin), a vertex * lying on one side of the body's midline that carries weight on the other side's leg bones (thigh, calf, foot, ball, * twists) hands that weight to the SAME-side counterpart bone. Nothing else changes: the vertex keeps its other * influences, and a vertex within `midlineM` of the midline (feet together, a hem between the legs) is left alone * because its side is not decidable, as is one whose leg weight is mostly the other side's (a hem shared between the legs). Run on every LOD skin; only JOINTS_n / WEIGHTS_n change. */ export interface FootWeightsOptions { /** How far above the higher ankle joint a vertex still counts as the foot (default 0.04 m at 1.70 m). */ marginM?: number; /** Vertices closer than this to the midline are left alone (default 0.01 m at 1.70 m). */ midlineM?: number; } export interface FootWeightsSetReport { vertices: number; sided: number; weightMoved: number; } export declare function sideFootSet(model: SkinModel, set: VertexSet, repair: boolean, options?: FootWeightsOptions): FootWeightsSetReport;