mesh-examples/12-14-mesh/Me441.mesh.json
Sources
- MeshFix `checkAndRepair::removeSmallestComponents@L780` Branch 2 (*ADJACENT_TRIANGLE_T1*: `if (t1 != NULL && !IS_BIT(t1, 5)) { l.appendHead(t1)
- SET_BIT(t1,5)
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components: component A is a 4-triangle connected strip (v0-v5, triangles 0-3) with interior shared edges; component B is a single isolated triangle (v6,v7,v8, face 4) unreachable from A. BFS traversal of component A crosses t1-slot adjacency links, exercising Branch 2. Component B remains unreachable by edge-walk.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(1.5,1,0), v4=(2,0,0), v5=(2.5,1,0); t0=(v0,v1,v2), t1=(v1,v3,v2), t2=(v1,v4,v3), t3=(v3,v4,v5); v6=(10,10,0), v7=(11,10,0), v8=(10,11,0); t4=(v6,v7,v8).
Expected kernel behavior
Branch 2 fires for each unvisited t1 neighbor within component A; component A (4 triangles) becomes biggest; component B (1 triangle) is removed.
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 1.0, 16 0.0 17 ], 18 [ 19 1.5, 20 1.0, 21 0.0 22 ], 23 [ 24 2.0, 25 0.0, 26 0.0 27 ], 28 [ 29 2.5, 30 1.0, 31 0.0 32 ], 33 [ 34 10.0, 35 10.0, 36 0.0 37 ], 38 [ 39 11.0, 40 10.0, 41 0.0 42 ], 43 [ 44 10.0, 45 11.0, 46 0.0 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 2 54 ], 55 [ 56 1, 57 3, 58 2 59 ], 60 [ 61 1, 62 4, 63 3 64 ], 65 [ 66 3, 67 4, 68 5 69 ], 70 [ 71 6, 72 7, 73 8 74 ] 75 ], 76 "metadata": { 77 "id": "Me441", 78 "schema_version": 0, 79 "defect_class": "disconnected_components", 80 "title": "removeSmallestComponents adjacent_t1: BFS visits t1 neighbor; 2-component mesh with 4+1 triangles", 81 "assertions": [ 82 { 83 "kind": "edge_shared_by_n_triangles", 84 "edge": [ 85 1, 86 2 87 ], 88 "n": 2 89 }, 90 { 91 "kind": "edge_shared_by_n_triangles", 92 "edge": [ 93 1, 94 3 95 ], 96 "n": 2 97 }, 98 { 99 "kind": "edge_shared_by_n_triangles", 100 "edge": [ 101 3, 102 4 103 ], 104 "n": 2 105 }, 106 { 107 "kind": "triangle_not_reachable_from", 108 "target": 4, 109 "source": 0 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}