mesh-examples/12-14-mesh/Me454.mesh.json
Sources
- MeshFix `checkAndRepair::removeSmallestComponents@L861` Branch 5 (*AREA_ACCUMULATION*: `pa += t->area()
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components: component A is a 2x1 rectangle split into 4 triangles (total area = 2.0); component B is a single triangle (area = 0.5). BFS over each component accumulates pa via pa += t->area(). Interior edges (v0,v4), (v1,v5), (v1,v4) each n=2. Component B boundary edges n=1 each.
Reproducer recipe
v0-v5 form 2x1 grid (t0-t3); v6-v8 form isolated triangle t4 at (10,0); assert_triangle_not_reachable_from(t4,t0); interior edge assertions; component B boundary edge n=1 assertions.
Expected kernel behavior
Branch 5 fires repeatedly as BFS visits each triangle; pa sums to 2.0 for component A and 0.5 for component B.
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 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.0, 21 0.0 22 ], 23 [ 24 1.0, 25 1.0, 26 0.0 27 ], 28 [ 29 2.0, 30 1.0, 31 0.0 32 ], 33 [ 34 10.0, 35 0.0, 36 0.0 37 ], 38 [ 39 11.0, 40 0.0, 41 0.0 42 ], 43 [ 44 10.0, 45 1.0, 46 0.0 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 4 54 ], 55 [ 56 0, 57 4, 58 3 59 ], 60 [ 61 1, 62 2, 63 5 64 ], 65 [ 66 1, 67 5, 68 4 69 ], 70 [ 71 6, 72 7, 73 8 74 ] 75 ], 76 "metadata": { 77 "id": "Me454", 78 "schema_version": 0, 79 "defect_class": "disconnected_components", 80 "title": "removeSmallestComponents area AREA_ACCUMULATION: pa += t->area() accumulates component geometric area during BFS; two-component mesh with area disparity", 81 "assertions": [ 82 { 83 "kind": "triangle_not_reachable_from", 84 "target": 4, 85 "source": 0 86 }, 87 { 88 "kind": "edge_shared_by_n_triangles", 89 "edge": [ 90 0, 91 4 92 ], 93 "n": 2 94 }, 95 { 96 "kind": "edge_shared_by_n_triangles", 97 "edge": [ 98 1, 99 5 100 ], 101 "n": 2 102 }, 103 { 104 "kind": "edge_shared_by_n_triangles", 105 "edge": [ 106 1, 107 4 108 ], 109 "n": 2 110 }, 111 { 112 "kind": "edge_shared_by_n_triangles", 113 "edge": [ 114 6, 115 7 116 ], 117 "n": 1 118 }, 119 { 120 "kind": "edge_shared_by_n_triangles", 121 "edge": [ 122 7, 123 8 124 ], 125 "n": 1 126 }, 127 { 128 "kind": "edge_shared_by_n_triangles", 129 "edge": [ 130 6, 131 8 132 ], 133 "n": 1 134 } 135 ] 136 } 137}