mesh-examples/12-14-mesh/Me110.mesh.json
Sources
- MeshFix `Triangle.intersects` Branch 2 (*FULL_VERTEX_COINCIDENCE*: `if (eq1 && eq2 && eq3) return false`)
- `MESH_HEAL_COVERAGE.md`.
Description
two triangle entries that reference the exact same three vertex indices (a true duplicate). MeshFix's `intersects` predicate fast-exits at Branch 2 before running any geometry test — identical triangles are not considered a self-intersection; they are a duplicate-triangle defect handled by the merge pass. Each edge is shared by exactly 2 (both copies).
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0,1,0). t0=(v0,v1,v2), t1=(v0,v1,v2) — same indices.
Expected kernel behavior
detect as duplicate-triangle defect (merge-duplicate-polygons path), not as self-intersection.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 0.0, 5 0.0, 6 0.0 7 ], 8 [ 9 1.0, 10 0.0, 11 0.0 12 ], 13 [ 14 0.0, 15 1.0, 16 0.0 17 ] 18 ], 19 "triangles": [ 20 [ 21 0, 22 1, 23 2 24 ], 25 [ 26 0, 27 1, 28 2 29 ] 30 ], 31 "metadata": { 32 "id": "Me110", 33 "schema_version": 0, 34 "defect_class": "duplicate_triangle_same_indices", 35 "title": "intersects_full_vertex_coincidence: exact duplicate triangles \u2014 Branch 2 returns false (not an intersection)", 36 "assertions": [ 37 { 38 "kind": "duplicate_triangle_pair", 39 "triangles": [ 40 0, 41 1 42 ] 43 }, 44 { 45 "kind": "edge_shared_by_n_triangles", 46 "edge": [ 47 0, 48 1 49 ], 50 "n": 2 51 }, 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 2 57 ], 58 "n": 2 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 1, 64 2 65 ], 66 "n": 2 67 } 68 ] 69 } 70}