mesh-examples/12-14-mesh/Me580.mesh.json
Sources
- MeshFix `Basic_TMesh.createSubMeshFromSelection` Branch 1 (*invalid_triangle_seed*: `if (t0 != NULL && !IS_VISITED(t0)) return NULL`) @ line 794
- `MESH_HEAL_COVERAGE.md`.
Description
Four triangles in a connected strip (t0-t1 share edge v1,v2; t1-t2 share edge v1,v3; t2-t3 share edge v3,v4; t1-t3 also share v2,v3). Only t1 and t2 are IS_VISITED (the selection). The caller provides t0 as the seed triangle; since t0 is non-NULL but NOT visited, Branch 1 fires immediately and the extraction returns NULL. Interior edges (v1,v2),(v1,v3),(v3,v4),(v2,v3) each n=2; outer boundary edges n=1. Euler: V=5, E=8, F=4, chi=1.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,2,0), v3=(3,2,0), v4=(4,0,0); t0=(v0,v1,v2), t1=(v1,v3,v2), t2=(v1,v4,v3), t3=(v2,v3,v4); interior edges n=2; outer edges n=1; euler V=5,E=8,F=4,chi=1.
Expected kernel behavior
Branch 1 fires; condition `t0 != NULL && !IS_VISITED(t0)` is true for the provided seed; extraction is aborted and NULL returned before any BFS begins.
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 2.0, 10 0.0, 11 0.0 12 ], 13 [ 14 1.0, 15 2.0, 16 0.0 17 ], 18 [ 19 3.0, 20 2.0, 21 0.0 22 ], 23 [ 24 4.0, 25 0.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 1, 37 3, 38 2 39 ], 40 [ 41 1, 42 4, 43 3 44 ], 45 [ 46 2, 47 3, 48 4 49 ] 50 ], 51 "metadata": { 52 "id": "Me580", 53 "schema_version": 0, 54 "defect_class": "mesh_selection", 55 "title": "createSubMeshFromSelection invalid_triangle_seed: seed t0 not IS_VISITED; extraction aborts, returns NULL (Branch 1)", 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 1, 69 3 70 ], 71 "n": 2 72 }, 73 { 74 "kind": "edge_shared_by_n_triangles", 75 "edge": [ 76 3, 77 4 78 ], 79 "n": 2 80 }, 81 { 82 "kind": "edge_shared_by_n_triangles", 83 "edge": [ 84 2, 85 3 86 ], 87 "n": 2 88 }, 89 { 90 "kind": "edge_shared_by_n_triangles", 91 "edge": [ 92 0, 93 1 94 ], 95 "n": 1 96 }, 97 { 98 "kind": "edge_shared_by_n_triangles", 99 "edge": [ 100 0, 101 2 102 ], 103 "n": 1 104 }, 105 { 106 "kind": "edge_shared_by_n_triangles", 107 "edge": [ 108 1, 109 4 110 ], 111 "n": 1 112 }, 113 { 114 "kind": "edge_shared_by_n_triangles", 115 "edge": [ 116 2, 117 4 118 ], 119 "n": 1 120 }, 121 { 122 "kind": "euler_characteristic", 123 "v": 5, 124 "e": 8, 125 "f": 4, 126 "chi": 1 127 } 128 ] 129 } 130}