FA-88563 / Mesh topology invariants / Member archive
Compaction keeps faces that collapse to a line · case 03
Faces with repeated corners survive and keep otherwise unused vertices alive.
Case contract
Input [verts, faces]: drop faces with fewer than 3 distinct vertices, then keep only vertices referenced by remaining faces, renumbered 0-based in increasing old-index order. Faces keep their corner order. Return [kept vertex payloads, remapped faces].
Why this case matters
Mesh processing pipelines (remeshing, export, simulation, printing) trust these topological counts and adjacency answers; a wrong invariant silently accepts broken meshes or rejects valid ones.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| gap and degenerate | [["a", "c", "d", "e", "f"], [[0, 1, 2], [2, 2, 4], [1, 3, 2]]] | [["a", "c", "d", "e"], [[0, 1, 2], [1, 3, 2]]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗