mesh-examples/12-14-mesh/Me584.mesh.json
Sources
- MeshFix `checkAndRepair::rebuildConnectivity` Branch 6 (*FIXCONNECTIVITY_REQUESTED*: `if (fixconnectivity) fixConnectivity()
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Two triangles (t0, t1) sharing only vertex s2 (a bowtie/orphan fan) with no shared edge between them. t0=(s0,s1,s2) and t1=(s2,s3,s4) are connected at s2 but not via a shared edge, leaving the vertex fan of s2 disconnected (two components). When checkAndRepair is called with fixconnectivity=true, rebuildConnectivity's final branch triggers fixConnectivity() to stitch the orphan half-edges → Branch 6 fires. All six edges are boundary edges (n=1); s2 has a disconnected fan; t1 is not reachable from t0 via shared-edge traversal.
Reproducer recipe
s0=(0,0,0), s1=(2,0,0), s2=(1,2,0), s3=(3,2,0), s4=(1,4,0); t0=(s0,s1,s2), t1=(s2,s3,s4); all edges n=1; assert_vertex_fan_disconnected(s2); assert_triangle_not_reachable_from(t1,t0).
Expected kernel behavior
Branch 6 fires; fixConnectivity() is called; orphan fan at s2 is stitched into manifold connectivity; the two formerly disconnected components become topologically linked.
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 0.0, 20 1.0, 21 0.0 22 ], 23 [ 24 1.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 3 39 ], 40 [ 41 1, 42 4, 43 3 44 ], 45 [ 46 1, 47 2, 48 4 49 ], 50 [ 51 2, 52 5, 53 4 54 ] 55 ], 56 "metadata": { 57 "id": "Me584", 58 "schema_version": 0, 59 "defect_class": "mesh_selection", 60 "title": "createSubMeshFromSelection edge_adjacency_boundary: interior edge (v1,v4) is selection boundary; sub-mesh adjacency becomes NULL toward unvisited t1 (Branch 5)", 61 "assertions": [ 62 { 63 "kind": "edge_shared_by_n_triangles", 64 "edge": [ 65 1, 66 4 67 ], 68 "n": 2 69 }, 70 { 71 "kind": "edge_shared_by_n_triangles", 72 "edge": [ 73 1, 74 3 75 ], 76 "n": 2 77 }, 78 { 79 "kind": "edge_shared_by_n_triangles", 80 "edge": [ 81 2, 82 4 83 ], 84 "n": 2 85 }, 86 { 87 "kind": "edge_shared_by_n_triangles", 88 "edge": [ 89 0, 90 1 91 ], 92 "n": 1 93 }, 94 { 95 "kind": "edge_shared_by_n_triangles", 96 "edge": [ 97 0, 98 3 99 ], 100 "n": 1 101 }, 102 { 103 "kind": "edge_shared_by_n_triangles", 104 "edge": [ 105 3, 106 4 107 ], 108 "n": 1 109 }, 110 { 111 "kind": "edge_shared_by_n_triangles", 112 "edge": [ 113 1, 114 2 115 ], 116 "n": 1 117 }, 118 { 119 "kind": "edge_shared_by_n_triangles", 120 "edge": [ 121 2, 122 5 123 ], 124 "n": 1 125 }, 126 { 127 "kind": "edge_shared_by_n_triangles", 128 "edge": [ 129 4, 130 5 131 ], 132 "n": 1 133 }, 134 { 135 "kind": "euler_characteristic", 136 "v": 6, 137 "e": 9, 138 "f": 4, 139 "chi": 1 140 } 141 ] 142 } 143}