mesh-examples/12-14-mesh/Me107.mesh.json
Sources
- MeshFix `Basic_TMesh.unlinkTriangle` Branch 8 (*isolated_edge_pair_v2*: `if (e2->isIsolated() && e3->isIsolated())`)
- `MESH_HEAL_COVERAGE.md`.
Description
v1 (second vertex of target t0) appears in exactly one triangle — the target. Both edges (v0,v1) and (v1,v2) are in t0 only. After t0 is unlinked, both edges become isolated and v1 loses all connectivity. Branch 8 sets v1->e0 = NULL. Mirror of Me106 but for the second vertex position.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(2,0,0), v3=(1,1,0), v4=(0,1,0), v5=(2,1,0). t0=(v0,v1,v2); t1=(v0,v3,v4); t2=(v0,v2,v3); t3=(v2,v5,v3).
Expected kernel behavior
after unlink of t0, set v1->e0 = NULL; mark v1 as fully disconnected.
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 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 1.0, 20 1.0, 21 0.0 22 ], 23 [ 24 0.0, 25 1.0, 26 0.0 27 ], 28 [ 29 2.0, 30 1.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 0, 42 3, 43 4 44 ], 45 [ 46 0, 47 2, 48 3 49 ], 50 [ 51 2, 52 5, 53 3 54 ] 55 ], 56 "metadata": { 57 "id": "Me107", 58 "schema_version": 0, 59 "defect_class": "unlink_isolated_edge_pair_v2", 60 "title": "unlink_triangle_isolated_edge_pair_v2: v2's both incident edges isolated, v2 becomes orphan", 61 "assertions": [ 62 { 63 "kind": "edge_shared_by_n_triangles", 64 "edge": [ 65 0, 66 1 67 ], 68 "n": 1 69 }, 70 { 71 "kind": "edge_shared_by_n_triangles", 72 "edge": [ 73 1, 74 2 75 ], 76 "n": 1 77 }, 78 { 79 "kind": "edge_shared_by_n_triangles", 80 "edge": [ 81 0, 82 2 83 ], 84 "n": 2 85 }, 86 { 87 "kind": "edge_shared_by_n_triangles", 88 "edge": [ 89 0, 90 4 91 ], 92 "n": 1 93 }, 94 { 95 "kind": "edge_shared_by_n_triangles", 96 "edge": [ 97 3, 98 4 99 ], 100 "n": 1 101 } 102 ] 103 } 104}