mesh-examples/12-14-mesh/Me332.mesh.json
Sources
- MeshFix `Basic_TMesh.pinch` Branch 3 (*NON_MANIFOLD_VERTEX_NOT_FOUND*: `if (n == NULL) { e1->v2->e0 = e1
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Bowtie/non-manifold at v0: Fan A (two triangles sharing edge (v0,v2)) and Fan B (one isolated triangle at v0, disconnected from Fan A). The pinch scan from v1 finds no matching boundary edge; Branch 3 restarts the scan from v2 by setting v2->e0=e1.
Reproducer recipe
v0=(0,0,0) bowtie; v1=(1,0,0), v2=(0.5,1,0), v3=(-0.5,1,0), v4=(-1,0,0), v5=(-0.5,-1,0); Fan A: t0=(v0,v1,v2), t1=(v0,v2,v3); Fan B: t2=(v0,v4,v5); assert vertex_fan_disconnected v0.
Expected kernel behavior
Branch 3 fires; `e1->v2->e0 = e1` sets fallback anchor; algorithm restarts scan from v2.
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.5, 15 1.0, 16 0.0 17 ], 18 [ 19 -0.5, 20 1.0, 21 0.0 22 ], 23 [ 24 -1.0, 25 0.0, 26 0.0 27 ], 28 [ 29 -0.5, 30 -1.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 0, 42 2, 43 3 44 ], 45 [ 46 0, 47 4, 48 5 49 ] 50 ], 51 "metadata": { 52 "id": "Me332", 53 "schema_version": 0, 54 "defect_class": "non_manifold_edge", 55 "title": "pinch_non_manifold_vertex_not_found: no v1-side boundary match; fallback scan from v2", 56 "assertions": [ 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 0, 61 2 62 ], 63 "n": 2 64 }, 65 { 66 "kind": "vertex_fan_disconnected", 67 "vertex": 0 68 }, 69 { 70 "kind": "edge_shared_by_n_triangles", 71 "edge": [ 72 0, 73 1 74 ], 75 "n": 1 76 }, 77 { 78 "kind": "edge_shared_by_n_triangles", 79 "edge": [ 80 1, 81 2 82 ], 83 "n": 1 84 }, 85 { 86 "kind": "edge_shared_by_n_triangles", 87 "edge": [ 88 2, 89 3 90 ], 91 "n": 1 92 }, 93 { 94 "kind": "edge_shared_by_n_triangles", 95 "edge": [ 96 0, 97 3 98 ], 99 "n": 1 100 }, 101 { 102 "kind": "edge_shared_by_n_triangles", 103 "edge": [ 104 0, 105 4 106 ], 107 "n": 1 108 }, 109 { 110 "kind": "edge_shared_by_n_triangles", 111 "edge": [ 112 4, 113 5 114 ], 115 "n": 1 116 }, 117 { 118 "kind": "edge_shared_by_n_triangles", 119 "edge": [ 120 0, 121 5 122 ], 123 "n": 1 124 } 125 ] 126 } 127}