mesh-examples/12-14-mesh/Me763.mesh.json
Sources
- MeshFix `holeFilling::retriangulateVT` Branch 4 (*RETRIANGULATION_ROLLBACK*: `if (i < nt) { /* unlink new triangles, restore original VT */ }`) @ line 413
- `MESH_HEAL_COVERAGE.md`.
Description
Hub v0=(1,1,0) with original 3-triangle fan t0=(v0,v1,v2), t1=(v0,v2,v3), t2=(v0,v3,v4). TriangulateHole produces duplicate t3=(v0,v1,v2) identical to t0. Quality check (Branch 3) fires on t3 (overlaps t0), loop breaks with i < nt → Branch 4 rollback: new triangles unlinked, original VT restored. With t3 present: edge (v0,v1) n=2, edge (v0,v2) n=3 (non-manifold), edge (v1,v2) n=2. Euler: V=5, E=7, F=4, chi=2.
Reproducer recipe
v0=(1,1,0), v1=(0,0,0), v2=(2,0,0), v3=(2,2,0), v4=(0,2,0); t0=(v0,v1,v2), t1=(v0,v2,v3), t2=(v0,v3,v4), t3=(v0,v1,v2) [duplicate]; duplicate_triangle_pair(t0,t3); edge v0-v1 n=2, v0-v2 n=3, v1-v2 n=2, v0-v3 n=2, v0-v4 n=1; euler V=5,E=7,F=4,chi=2.
Expected kernel behavior
Branch 4 fires; i=0 < nt=1; all newly introduced triangles unlinked; original VT (t0,t1,t2) restored; vertex v0 neighborhood becomes manifold again.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 1.0, 5 1.0, 6 0.0 7 ], 8 [ 9 0.0, 10 0.0, 11 0.0 12 ], 13 [ 14 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 2.0, 20 2.0, 21 0.0 22 ], 23 [ 24 0.0, 25 2.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 2, 38 3 39 ], 40 [ 41 0, 42 3, 43 4 44 ], 45 [ 46 0, 47 1, 48 2 49 ] 50 ], 51 "metadata": { 52 "id": "Me763", 53 "schema_version": 0, 54 "defect_class": "retriangulate_region_unlinked", 55 "title": "retriangulateVT_retriangulation_rollback: duplicate triangle t3==t0=(v0,v1,v2) causes quality check failure; i<nt triggers rollback, original VT restored (Branch 4)", 56 "assertions": [ 57 { 58 "kind": "duplicate_triangle_pair", 59 "triangles": [ 60 0, 61 3 62 ] 63 }, 64 { 65 "kind": "edge_shared_by_n_triangles", 66 "edge": [ 67 0, 68 1 69 ], 70 "n": 2 71 }, 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 0, 76 2 77 ], 78 "n": 3 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 1, 84 2 85 ], 86 "n": 2 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 0, 92 3 93 ], 94 "n": 2 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 0, 100 4 101 ], 102 "n": 1 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 2, 108 3 109 ], 110 "n": 1 111 }, 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 3, 116 4 117 ], 118 "n": 1 119 }, 120 { 121 "kind": "euler_characteristic", 122 "v": 5, 123 "e": 7, 124 "f": 4, 125 "chi": 2 126 } 127 ] 128 } 129}