mesh-examples/12-14-mesh/Me920.mesh.json
Sources
- CGAL `PMP.keep_largest_connected_components` Branch 1 @ line 401 (*component_count_mismatch*)
- `MESH_HEAL_COVERAGE.md`.
Description
A single connected 3-triangle L-shaped patch (one component). When a caller requests desired_num=5 components to keep but the mesh has only 1, Branch 1 fires: `if (nb_to_keep >= num_components) return 0`. No faces are removed because the requested count already exceeds what exists. The nb_components_to_keep > total_components condition is the defect trigger.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(1,1,0), v3=(0,1,0), v4=(2,0,0); t0=(v0,v1,v2), t1=(v0,v2,v3) [share (v0,v2)], t2=(v1,v4,v2) [share (v1,v2) with t0]. One connected component only.
Expected kernel behavior
nb_components_to_keep (5) >= num_components (1) → return 0 immediately without any removal.
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 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 2, 38 3 39 ], 40 [ 41 1, 42 4, 43 2 44 ] 45 ], 46 "metadata": { 47 "id": "Me920", 48 "schema_version": 0, 49 "defect_class": "disconnected_components", 50 "title": "keep_largest component_count_mismatch: desired_num > total_components \u2192 return 0", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 2 57 ], 58 "n": 2 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 1, 64 2 65 ], 66 "n": 2 67 }, 68 { 69 "kind": "euler_characteristic", 70 "v": 5, 71 "e": 7, 72 "f": 3, 73 "chi": 1 74 } 75 ] 76 } 77}