mesh-examples/12-14-mesh/Me451.mesh.json
Sources
- MeshFix `checkAndRepair::removeSmallestComponents@L861` Branch 2 (*ADJACENT_TRIANGLE_T1_AREA*: `s = t->t1()
- if (s != NULL && !IS_BIT(s, 5))`)
- `MESH_HEAL_COVERAGE.md`.
Description
Four-triangle strip (component A, total area = 2.0) and a micro-triangle (component B, area ≈ 5e-5). BFS traversal of component A reaches unvisited neighbors via t1-adjacency. Interior edge (v0,v2) n=2. Component B is unreachable from t0.
Reproducer recipe
v0-v5 form two quad-halves (t0-t3); v6-v8 form micro-triangle t4 at (10,10); assert_triangle_not_reachable_from(t4, t0); assert_triangle_area_lt(t4, 1e-3); assert_edge_shared(v0,v2,2).
Expected kernel behavior
Branch 2 fires during BFS over component A; s=t->t1() yields unvisited neighbor; component B (area ≈ 5e-5) satisfies pa < eps_area and is unlinked.
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 2.0, 25 0.0, 26 0.0 27 ], 28 [ 29 2.0, 30 1.0, 31 0.0 32 ], 33 [ 34 10.0, 35 10.0, 36 0.0 37 ], 38 [ 39 10.01, 40 10.0, 41 0.0 42 ], 43 [ 44 10.0, 45 10.01, 46 0.0 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 2 54 ], 55 [ 56 0, 57 2, 58 3 59 ], 60 [ 61 1, 62 4, 63 5 64 ], 65 [ 66 1, 67 5, 68 2 69 ], 70 [ 71 6, 72 7, 73 8 74 ] 75 ], 76 "metadata": { 77 "id": "Me451", 78 "schema_version": 0, 79 "defect_class": "disconnected_components", 80 "title": "removeSmallestComponents area ADJACENT_TRIANGLE_T1_AREA: BFS expands via t->t1() neighbor; micro-component has area below eps_area", 81 "assertions": [ 82 { 83 "kind": "triangle_not_reachable_from", 84 "target": 4, 85 "source": 0 86 }, 87 { 88 "kind": "triangle_area_lt", 89 "triangle": 4, 90 "lt": 0.001 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 0, 96 2 97 ], 98 "n": 2 99 } 100 ] 101 } 102}