mesh-examples/12-14-mesh/Me575.mesh.json
Sources
- CGAL `PMP.keep_largest_connected_components` Branch 4 @ line 421 (*output_iterator_presence*)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components — a closed 4-triangle tetrahedron (component A, large) and a 2-triangle open strip at (15,15,0) (component B, small). With desired_num=1 and a live output_iterator (not emptyset_iterator), Branch 4 populates the iterator with component B's 2 face descriptors before removing them, enabling the caller to inspect what was discarded.
Reproducer recipe
unit tetrahedron (t0-t3, closed, all 6 edges shared by 2 triangles); open strip at (15,15,0): v4=(15,15,0), v5=(16,15,0), v6=(15.5,16,0), v7=(16.5,16,0); t4=(v4,v5,v6), t5=(v5,v7,v6) share edge (v5,v6). t4 unreachable from t0.
Expected kernel behavior
output_iterator != emptyset_iterator → Branch 4 fires; component B face descriptors written to iterator; remove_connected_components then removes them.
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 2.0, 10 0.0, 11 0.0 12 ], 13 [ 14 1.0, 15 2.0, 16 0.0 17 ], 18 [ 19 1.0, 20 1.0, 21 2.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 0, 32 1, 33 3 34 ], 35 [ 36 1, 37 2, 38 3 39 ], 40 [ 41 0, 42 2, 43 3 44 ] 45 ], 46 "metadata": { 47 "id": "Me575", 48 "schema_version": 0, 49 "defect_class": "mesh_selection_toggle", 50 "title": "Basic_TMesh.invertSelection global_invert: t0==NULL; FOREACHTRIANGLE flips VISITED bit on all 4 triangles (Branch 6)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 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": "edge_shared_by_n_triangles", 70 "edge": [ 71 0, 72 2 73 ], 74 "n": 2 75 }, 76 { 77 "kind": "edge_shared_by_n_triangles", 78 "edge": [ 79 0, 80 3 81 ], 82 "n": 2 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 1, 88 3 89 ], 90 "n": 2 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 2, 96 3 97 ], 98 "n": 2 99 }, 100 { 101 "kind": "euler_characteristic", 102 "v": 4, 103 "e": 6, 104 "f": 4, 105 "chi": 2 106 } 107 ] 108 } 109}