mesh-examples/12-14-mesh/Me533.mesh.json
Sources
- MeshFix `checkAndRepair::meshclean` Branch 3 (*BOTH_PASSES_FAILED* name is a misnomer — fires when `if (ni && nd)`, both passes succeeded)
- `MESH_HEAL_COVERAGE.md`.
Description
Six vertices; two triangles in two disconnected connected components (CC A in Z=0 plane; CC B in Z=10 plane). No degenerate faces (all areas > 0), no self-intersections. Both strongDegeneracyRemoval and strongIntersectionRemoval complete trivially (nothing to repair) → return true → ni=true, nd=true → `if (ni && nd)` branch fires → kernel checks for residual degeneracies, finds none, returns true (full success). CC B is unreachable from CC A. All six edges have n=1 (boundary-only mesh).
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,2,0) [CC A]; v3=(0,0,10), v4=(2,0,10), v5=(1,2,10) [CC B]; t0=(v0,v1,v2), t1=(v3,v4,v5); assert_triangles_do_not_intersect(0,1); assert_triangle_not_reachable_from(1,0); all edges n=1.
Expected kernel behavior
Both repair passes return true immediately; `if (ni && nd)` branch fires; isExactlyDegenerate returns false for all faces; meshclean returns true (full success).
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 0.87, 16 0.0 17 ], 18 [ 19 -0.5, 20 -0.87, 21 0.0 22 ], 23 [ 24 1.5, 25 -0.87, 26 0.0 27 ], 28 [ 29 0.5, 30 1.73, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 3, 37 0, 38 1 39 ], 40 [ 41 3, 42 1, 43 4 44 ], 45 [ 46 4, 47 1, 48 2 49 ], 50 [ 51 4, 52 2, 53 5 54 ], 55 [ 56 5, 57 2, 58 0 59 ], 60 [ 61 5, 62 0, 63 3 64 ] 65 ], 66 "metadata": { 67 "id": "Me533", 68 "schema_version": 0, 69 "defect_class": "joinBoundaryLoops_boundary_loop_length_accumulation", 70 "title": "joinBoundaryLoops_BOUNDARY_LOOP_LENGTH_ACCUMULATION: two-loop annulus; perimeters tl1+tl2 accumulated before bridging (Branch 4)", 71 "assertions": [ 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 0, 76 1 77 ], 78 "n": 1 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 1, 84 2 85 ], 86 "n": 1 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 0, 92 2 93 ], 94 "n": 1 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 3, 100 4 101 ], 102 "n": 1 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 4, 108 5 109 ], 110 "n": 1 111 }, 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 3, 116 5 117 ], 118 "n": 1 119 }, 120 { 121 "kind": "edge_shared_by_n_triangles", 122 "edge": [ 123 0, 124 3 125 ], 126 "n": 2 127 }, 128 { 129 "kind": "edge_shared_by_n_triangles", 130 "edge": [ 131 1, 132 3 133 ], 134 "n": 2 135 }, 136 { 137 "kind": "edge_shared_by_n_triangles", 138 "edge": [ 139 1, 140 4 141 ], 142 "n": 2 143 }, 144 { 145 "kind": "edge_shared_by_n_triangles", 146 "edge": [ 147 2, 148 4 149 ], 150 "n": 2 151 }, 152 { 153 "kind": "edge_shared_by_n_triangles", 154 "edge": [ 155 2, 156 5 157 ], 158 "n": 2 159 }, 160 { 161 "kind": "edge_shared_by_n_triangles", 162 "edge": [ 163 0, 164 5 165 ], 166 "n": 2 167 }, 168 { 169 "kind": "hole_boundary", 170 "loop": [ 171 0, 172 1, 173 2 174 ] 175 }, 176 { 177 "kind": "hole_boundary", 178 "loop": [ 179 3, 180 5, 181 4 182 ] 183 } 184 ] 185 } 186}