OpenTPW

UI-003: Selected-mesh fitting and remaining transform parity#

Status and bounded implementation#

The earlier proposal treated stripped child translation as the main possible gap. New static analysis establishes selected-mesh endpoint fitting as a separate, bounded correction. This implementation preserves that fit metadata and uses it for DrawFrame and inverse shape picking. UI-003 remains open; it is not a claim of complete native UI fidelity. UI-004 depth, ordering and texture grouping are unchanged.

Static evidence and its limits#

Implementation contract#

Synthetic verification#

UiModelFitTests builds synthetic meshes and checks actual CPU draw vertices and UiModelImage.CoversPoint, without game fixtures or a GPU:

Local .NET was unavailable when these tests were prepared. Repository/Python checks and independent algebraic assertions are distinct from compiling or executing the C# suite. Exact-head CI and source review are required before publication is considered validated; no rendered/native pixel comparison is claimed.

Remaining work#

General ancestor scale/rotation composition, control-angle handling, linked first-child state traversal (including empty/dummy states), native out-of-range behavior and rendered comparisons remain open. Any later hierarchy change must preserve geometric layout consumers or explicitly migrate them. UI-004's depth and render-order uncertainty must be investigated separately, not inferred from this fit correction.

Source: docs/proposals/ui-003-trace-ui-child-transforms.md in the project repository.