Repository navigation
ped_assemble: exclude weld-collapsed faces from edge incidence - #6877
Conversation
|
Independent AI-assisted Windows CPU check of The real CLI text and JSON agreed in all 14 runs. After inspection, both revisions assembled byte-identical 5,720-byte GLBs. Positions and indices preserved all 24 vertices and 12 triangles, including the four slivers. Stock tests passed 15/15 on head and 14/14 on base with uv CPython 3.12.13. Synthetic inputs only. |
shayderrr
left a comment
There was a problem hiding this comment.
Summary
tools/ped_assemble.py changes analyze_edge_topology() so welded corners with fewer than three distinct positions are counted as collapsed_triangles and excluded from the edge graph, and inspect_seams now prints that count. tests/test_ped_assemble.py locks in the inspection output.
Why merge
This turns degenerate welded geometry from silent topology noise into an explicit diagnostic, which makes seam inspection trustworthy on assets where collapsing corners previously distorted edge-pair statistics. The behavior change is small, named, and covered by a regression test.
Verdict: Approve
Summary
Why mergeThis turns degenerate welded geometry from silent topology noise into an explicit diagnostic, which makes seam inspection trustworthy on assets where collapsing corners previously distorted edge-pair statistics. The behavior change is small, named, and covered by a regression test. Verdict: Approve |
|
Verified at f7e6bad: clean against current main 2dd8795; 15 tests OK, the new weld-collapse test fails against unfixed main. collapsed_triangles stays internal to the tool and its --inspect-seams line, so no consumer sees a shape change. Synthetic meshes. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
Claimed in the coordination issue as: ped-weld-collapsed-faces (grouped claim)
What and why
A thin triangle can lose two or all three distinct corners after a seam weld. Counting both directions of its residual edge fabricated a non-manifold edge beside an ordinary boundary triangle on
1cc6e3c12. Skip these faces for welded edge incidence and exposecollapsed_trianglesin the topology report andinspect-seamssummary. Original triangle counts and geometry are unchanged.Tested
Ubuntu 26.04 LTS x86-64, Python 3.12.13, CPU only (no GPU or driver used).
python3.12 -I tests/test_ped_assemble.py: 15 passed, 0 skipped. Realinspect-seamsCLI, one triangle plus a tiny sliver: 3 boundary edges, 0 non-manifold edges, 1 collapsed triangle in both text and JSON. Regression also covers a face welded to a point and a finer grid control.git diff --checkandpython3.12 -I scripts/check_no_game_data.py tests/test_ped_assemble.py tools/ped_assemble.py: passed.git merge-tree --write-treeagainst main (1cc6e3c12): clean. Clean with ped_assemble: guard output paths and report I/O or JSON errors with exit 2 #5764, ASSET-495: Preserve embedded PNG textures when importing ped GLBs #5824, ped_assemble: an unwritable --json/--out path is one ERROR line and exit 2, not a traceback #6004, ASSET-505: Preserve static GLB node transforms during ped import #6037, BUILD-1975: Bound transient GLB import allocations #6119, ASSET-522: Preserve GLB strip and fan topology #6199, ped_assemble: a malformed JSON part or manifest is one ERROR line and exit 2, not a traceback #6431, ASSET-539: Preserve extra UV sets during ped assembly #6604 and tools: fix BOM-prefixed JSON inputs in 10 utilities (batch 01) #6779.AI-assisted: yes (OpenAI Codex).
Checklist