mesh-examples/12-14-mesh/Me632.mesh.json
Sources
- MeshFix `Basic_TMesh.growSelection` Branch 3 (*unselected_triangle_neighbor_check*: `if (!IS_VISITED(t)) { if (IS_VISITED(v1) || ...) }` @ line 702)
- `MESH_HEAL_COVERAGE.md`.
Description
A 3-triangle strip where t0 is the pre-selected seed. In the second scan t1 and t2 both enter Branch 3 because !IS_VISITED is true for each. t1 shares edge (v1,v2) with t0 so its vertices are marked; t2 shares no marked vertex. Both triangles exercise Branch 3; t1 also exercises Branch 4 (vertex_neighbor_selection).
Reproducer recipe
t0=(v0,v1,v2) selected seed; t1=(v1,v2,v3) shares edge; t2=(v3,v4,v5) no marked vertex. Interior edge (v1,v2) n=2; assert euler V=6, E=8, F=3, chi=1.
Expected kernel behavior
Branch 3 fires for t1 and t2; !IS_VISITED check passes for both; IS_VISITED vertex check then determines whether each is selected.
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 0.0, 15 1.0, 16 0.0 17 ], 18 [ 19 1.0, 20 1.0, 21 0.0 22 ], 23 [ 24 2.0, 25 0.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 1, 42 2, 43 3 44 ], 45 [ 46 3, 47 4, 48 5 49 ] 50 ], 51 "metadata": { 52 "id": "Me632", 53 "schema_version": 0, 54 "defect_class": "non_manifold_edge", 55 "title": "growSelection unselected_triangle_neighbor_check: !IS_VISITED(t1) and !IS_VISITED(t2) both enter Branch 3; 3-triangle strip with selected seed t0 (Branch 3)", 56 "assertions": [ 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 1, 61 2 62 ], 63 "n": 2 64 }, 65 { 66 "kind": "edge_shared_by_n_triangles", 67 "edge": [ 68 3, 69 4 70 ], 71 "n": 1 72 }, 73 { 74 "kind": "edge_shared_by_n_triangles", 75 "edge": [ 76 3, 77 5 78 ], 79 "n": 1 80 }, 81 { 82 "kind": "edge_shared_by_n_triangles", 83 "edge": [ 84 0, 85 1 86 ], 87 "n": 1 88 }, 89 { 90 "kind": "edge_shared_by_n_triangles", 91 "edge": [ 92 0, 93 2 94 ], 95 "n": 1 96 }, 97 { 98 "kind": "edge_shared_by_n_triangles", 99 "edge": [ 100 1, 101 3 102 ], 103 "n": 1 104 }, 105 { 106 "kind": "edge_shared_by_n_triangles", 107 "edge": [ 108 2, 109 3 110 ], 111 "n": 1 112 }, 113 { 114 "kind": "edge_shared_by_n_triangles", 115 "edge": [ 116 4, 117 5 118 ], 119 "n": 1 120 }, 121 { 122 "kind": "euler_characteristic", 123 "v": 6, 124 "e": 8, 125 "f": 3, 126 "chi": 1 127 } 128 ] 129 } 130}