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