mesh-examples/12-14-mesh/Me312.mesh.json
Sources
- MeshFix `holeFilling::watsonInsert` Branch 3 (*CAVITY_VERTEX_V2*: `bdr.appendHead(v2)
- MARK_BIT(v2, 5)`)
- `MESH_HEAL_COVERAGE.md`.
Description
A 4-triangle fan with outer square v0-v3 and hub v4=(1,1,0). For t0=(v0,v1,v4), v4 occupies the 'v2 slot' (third argument). Branch 3 fires when v4 is first encountered as a cavity boundary vertex, appending it to 'bdr'.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(2,2,0), v3=(0,2,0), v4=(1,1,0); 4 fan triangles; assert hub edges n=2, outer edges n=1, hole_boundary [v0,v1,v2,v3].
Expected kernel behavior
Branch 3 fires when v4 (v2 slot of t0) is first appended to bdr; marked bit 5.
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 2.0, 15 2.0, 16 0.0 17 ], 18 [ 19 0.0, 20 2.0, 21 0.0 22 ], 23 [ 24 1.0, 25 1.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 4 34 ], 35 [ 36 1, 37 2, 38 4 39 ], 40 [ 41 2, 42 3, 43 4 44 ], 45 [ 46 3, 47 0, 48 4 49 ] 50 ], 51 "metadata": { 52 "id": "Me312", 53 "schema_version": 0, 54 "defect_class": "hole_in_hull", 55 "title": "watsonInsert_cavity_vertex_v2: v2 of removed triangle appended to cavity boundary (Branch 3)", 56 "assertions": [ 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 0, 61 4 62 ], 63 "n": 2 64 }, 65 { 66 "kind": "edge_shared_by_n_triangles", 67 "edge": [ 68 1, 69 4 70 ], 71 "n": 2 72 }, 73 { 74 "kind": "edge_shared_by_n_triangles", 75 "edge": [ 76 2, 77 4 78 ], 79 "n": 2 80 }, 81 { 82 "kind": "edge_shared_by_n_triangles", 83 "edge": [ 84 3, 85 4 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 1, 101 2 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 0, 117 3 118 ], 119 "n": 1 120 }, 121 { 122 "kind": "hole_boundary", 123 "loop": [ 124 0, 125 1, 126 2, 127 3 128 ] 129 } 130 ] 131 } 132}