This tool creates a separate tifxyz preview for small, enclosed rectangular holes. It uses Coons interpolation from the observed rim and accepts the organizer's native float32 coordinate TIFFs. All observed coordinates and the source scale are preserved. The resulting mesh runs through VC3D's existing headless flattening path.
I applied the preview to two naturally missing 3 × 3 gaps in PHerc0139 w025 and one naturally missing 2 × 2 gap in PHerc1447. Two output meshes reproduced byte for byte and contain 22 newly filled vertices. The original interior coordinates are unknown. The raw CT sections show projected repair geometry and do not establish that fibers continue across the gaps.
In 48 headless runs on 16 deliberately masked crops from the published PHerc0139 w035 mesh, I compared the official native inpainting and flattening path with Coons prefill followed by identical flattening. The intact baseline captures the error due to regridding alone. The comparison scores withheld original coordinates by their distance to the reconstructed mesh triangles in native CT coordinates.
| Hole size | Crops | Withheld points | Native RMSE | Coons RMSE | Crops improved |
|---|---|---|---|---|---|
| 7 × 7 | 8 | 392 | 2.621 voxels | 2.113 voxels | 6 of 8 |
| 3 × 3 | 8 | 72 | 1.273 voxels | 0.945 voxels | 4 of 8 |
The pooled 7 × 7 error fell by 19.4%. It still fell by at least 11.6% after omitting any single crop. The pooled 3 × 3 gain reverses after omitting the strongest result. One 7 × 7 case also grew from 1.140 to 3.039 voxels. The measurements support a separate optional preview and pertain to one benchmark mesh.
Per-point evidence and native fill logs · Raw CT receipt and public sources · Natural gap 134, 72 · Natural gap 270, 245
Use Python 3.12 with NumPy, Pillow and SciPy. The smoke test verifies exact reconstruction on a known polynomial rectangle, exclusions, and file handling.
uv run --python 3.12 --with numpy --with pillow --with scipy python -B vesuvius_ct_section_20261130/test_repair.py
uv run --python 3.12 --with numpy --with pillow --with scipy python -B vesuvius_ct_section_20261130/repair_tifxyz.py INPUT.tifxyz PREVIEW.tifxyzFor the native comparison, obtain the organizer's exact ARM64 8e24544e build and check the ZIP SHA-256 a16b899312580523e8e5dbb9394619a1fb331c0eecf8a49bd1b3ea3e04fa087e. The benchmark downloads only the named official small mesh and checks its source hashes.
uv run --python 3.12 --with numpy --with pillow --with scipy python -B vesuvius_w025_natural_20261130/native_compare/benchmark.py /path/to/VC3D.app/Contents/MacOS/flatboi new-result.jsonOfficial binary · Vesuvius Challenge official data sources
The MIT license covers original software and documentation. The CT figures derive from Vesuvius Challenge public data. The source data and its rendered imagery are attributed to the Vesuvius Challenge and remain subject to the upstream data terms.