mesh-examples/12-14-mesh/Me455.mesh.json
Sources
- MeshFix `checkAndRepair::removeSmallestComponents@L861` Branch 6 (*COMPONENT_AREA_BELOW_THRESHOLD*: `if (pa < eps_area) { /* unlink */ rem_comps++
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Unit-square patch (component A, area = 1.0) and a micro-triangle (component B, area ≈ 5e-5). After BFS accumulates pa ≈ 5e-5 for component B, the condition pa < eps_area triggers: all component B triangles are unlinked and rem_comps is incremented. Interior edge (v0,v2) n=2 in component A; component B boundary edges n=1 each.
Reproducer recipe
v0-v3 unit square (t0,t1); v4-v6 micro-tri at (5,5) with edge 0.01 (t2); assert_triangle_not_reachable_from(t2,t0); assert_triangle_area_lt(t2,1e-3); edge_shared(v0,v2,2); boundary edges n=1.
Expected kernel behavior
Branch 6 fires; pa ≈ 5e-5 < eps_area for component B; all component B triangles unlinked; rem_comps incremented to 1.
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 1.0, 15 1.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.0, 21 0.0 22 ], 23 [ 24 5.0, 25 5.0, 26 0.0 27 ], 28 [ 29 5.01, 30 5.0, 31 0.0 32 ], 33 [ 34 5.0, 35 5.01, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 0, 47 2, 48 3 49 ], 50 [ 51 4, 52 5, 53 6 54 ] 55 ], 56 "metadata": { 57 "id": "Me455", 58 "schema_version": 0, 59 "defect_class": "disconnected_components", 60 "title": "removeSmallestComponents area COMPONENT_AREA_BELOW_THRESHOLD: pa < eps_area \u2192 component unlinked; micro-triangle area 5e-5 vs large patch area 1.0", 61 "assertions": [ 62 { 63 "kind": "triangle_not_reachable_from", 64 "target": 2, 65 "source": 0 66 }, 67 { 68 "kind": "triangle_area_lt", 69 "triangle": 2, 70 "lt": 0.001 71 }, 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 0, 76 2 77 ], 78 "n": 2 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 4, 84 5 85 ], 86 "n": 1 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 5, 92 6 93 ], 94 "n": 1 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 4, 100 6 101 ], 102 "n": 1 103 } 104 ] 105 } 106}