mesh-examples/12-14-mesh/Me465.mesh.json
Sources
- MeshFix `Basic_TMesh.createSubMeshFromSelection` Branch 5 (*edge_adjacency_boundary*: `if (IS_VISITED(e->t1) && IS_VISITED(e->t2)) … else … = NULL`) @ line 865
- `MESH_HEAL_COVERAGE.md`.
Description
A 2×2 grid of 4 triangles arranged in two columns. Left column (t0,t1) is unvisited; right column (t2,t3) is IS_VISITED. Edge (v1,v4) is shared by unvisited t1 and visited t2 — this is the selection-boundary edge. In the full mesh this edge is interior (n=2). When the sub-mesh for {t2,t3} is built, Branch 5 fires for edge (v1,v4): IS_VISITED(t1)=false so the adjacency from t2 toward t1 is set to NULL, making (v1,v4) a boundary edge in the sub-mesh. Other interior edges: (v1,v3) n=2 within the left column; (v2,v4) n=2 within the right column. Outer edges all n=1. Euler: V=6, E=9, F=4, chi=1.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(2,0,0), v3=(0,1,0), v4=(1,1,0), v5=(2,1,0); t0=(v0,v1,v3), t1=(v1,v4,v3), t2=(v1,v2,v4), t3=(v2,v5,v4); assert_edge_shared(v1,v4,2); assert_edge_shared(v1,v3,2); assert_edge_shared(v2,v4,2); outer edges n=1; euler V=6,E=9,F=4,chi=1.
Expected kernel behavior
Branch 5 fires for edge (v1,v4); IS_VISITED(t1)=false so `new_e->t2 = NULL` (or equivalent) is executed, making the right column's left boundary edge a sub-mesh boundary rather than linking to the unvisited left column.
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": "Me465", 58 "schema_version": 0, 59 "defect_class": "disconnected_components", 60 "title": "selectConnectedComponent mark_and_count: MARK_VISIT(t);ns++ fires for each BFS-processed triangle (ns=4)", 61 "assertions": [ 62 { 63 "kind": "edge_shared_by_n_triangles", 64 "edge": [ 65 1, 66 3 67 ], 68 "n": 2 69 }, 70 { 71 "kind": "edge_shared_by_n_triangles", 72 "edge": [ 73 1, 74 4 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 4, 114 5 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 1, 130 2 131 ], 132 "n": 1 133 }, 134 { 135 "kind": "adjacent_triangles_normal_dot_gt", 136 "triangles": [ 137 0, 138 1 139 ], 140 "threshold": 0.9 141 }, 142 { 143 "kind": "adjacent_triangles_normal_dot_gt", 144 "triangles": [ 145 1, 146 2 147 ], 148 "threshold": 0.9 149 }, 150 { 151 "kind": "adjacent_triangles_normal_dot_gt", 152 "triangles": [ 153 2, 154 3 155 ], 156 "threshold": 0.9 157 }, 158 { 159 "kind": "euler_characteristic", 160 "v": 6, 161 "e": 9, 162 "f": 4, 163 "chi": 1 164 } 165 ] 166 } 167}