mesh-examples/12-14-mesh/Me315.mesh.json
Sources
- MeshFix `holeFilling::watsonInsert` Branch 6 (*BOUNDARY_EDGE_SELECTION*: `!IS_BIT(e->t1, 6) || !IS_BIT(e->t2, 6)`)
- `MESH_HEAL_COVERAGE.md`.
Description
A 5-triangle fan over a regular pentagon, hub v5=(0,0,0), outer ring v0-v4 at radius 2. When 3 of the 5 fan triangles are marked as cavity, each cavity-seam vertex has one marked and one unmarked triangle on its hub edge. Branch 6 fires at each such vertex to select the boundary edge where exactly one adjacent triangle is in the cavity.
Reproducer recipe
pentagon outer ring at r=2, hub v5=(0,0,0); 5 fan triangles; hub edges all n=2; outer edges all n=1; hole_boundary [v0,v1,v2,v3,v4].
Expected kernel behavior
Branch 6 selects cavity-boundary edges where one adjacent triangle is marked (bit 6) and the other is not — used to build the re-triangulation boundary loop.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 2.0, 5 0.0, 6 0.0 7 ], 8 [ 9 0.618034, 10 1.902113, 11 0.0 12 ], 13 [ 14 -1.618034, 15 1.175571, 16 0.0 17 ], 18 [ 19 -1.618034, 20 -1.175571, 21 0.0 22 ], 23 [ 24 0.618034, 25 -1.902113, 26 0.0 27 ], 28 [ 29 0.0, 30 0.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 5 39 ], 40 [ 41 1, 42 2, 43 5 44 ], 45 [ 46 2, 47 3, 48 5 49 ], 50 [ 51 3, 52 4, 53 5 54 ], 55 [ 56 4, 57 0, 58 5 59 ] 60 ], 61 "metadata": { 62 "id": "Me315", 63 "schema_version": 0, 64 "defect_class": "hole_in_hull", 65 "title": "watsonInsert_boundary_edge_selection: mixed cavity/non-cavity edges at boundary vertex (Branch 6)", 66 "assertions": [ 67 { 68 "kind": "edge_shared_by_n_triangles", 69 "edge": [ 70 0, 71 5 72 ], 73 "n": 2 74 }, 75 { 76 "kind": "edge_shared_by_n_triangles", 77 "edge": [ 78 1, 79 5 80 ], 81 "n": 2 82 }, 83 { 84 "kind": "edge_shared_by_n_triangles", 85 "edge": [ 86 2, 87 5 88 ], 89 "n": 2 90 }, 91 { 92 "kind": "edge_shared_by_n_triangles", 93 "edge": [ 94 3, 95 5 96 ], 97 "n": 2 98 }, 99 { 100 "kind": "edge_shared_by_n_triangles", 101 "edge": [ 102 4, 103 5 104 ], 105 "n": 2 106 }, 107 { 108 "kind": "edge_shared_by_n_triangles", 109 "edge": [ 110 0, 111 1 112 ], 113 "n": 1 114 }, 115 { 116 "kind": "edge_shared_by_n_triangles", 117 "edge": [ 118 1, 119 2 120 ], 121 "n": 1 122 }, 123 { 124 "kind": "edge_shared_by_n_triangles", 125 "edge": [ 126 2, 127 3 128 ], 129 "n": 1 130 }, 131 { 132 "kind": "edge_shared_by_n_triangles", 133 "edge": [ 134 3, 135 4 136 ], 137 "n": 1 138 }, 139 { 140 "kind": "edge_shared_by_n_triangles", 141 "edge": [ 142 0, 143 4 144 ], 145 "n": 1 146 }, 147 { 148 "kind": "hole_boundary", 149 "loop": [ 150 0, 151 1, 152 2, 153 3, 154 4 155 ] 156 } 157 ] 158 } 159}