mesh-examples/12-14-mesh/Me922.mesh.json
Sources
- CGAL `PMP.keep_largest_connected_components` Branch 3 @ line 419 (*dry_run_mode*)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components — a large 3-triangle connected strip (component A) and a tiny 1-triangle micro-patch at (20,20,0) (component B, area≈5e-5). With desired_num=1 and dry_run=true, Branch 3 identifies component B as a removal candidate but does NOT invoke `remove_connected_components`. The mesh is left intact; the function returns the count of faces that would have been removed.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(1,1,0), v3=(0,1,0), v4=(2,1,0) form 3-triangle strip (t0-t2, sharing edges); v5=(20,20,0), v6=(20.01,20,0), v7=(20,20.01,0) form micro-triangle t3 (area≈5e-5). t3 unreachable from t0.
Expected kernel behavior
dry_run=true → identify removable faces for component B, populate output iterator, skip remove_connected_components; mesh unchanged.
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 1.0, 26 0.0 27 ], 28 [ 29 20.0, 30 20.0, 31 0.0 32 ], 33 [ 34 20.01, 35 20.0, 36 0.0 37 ], 38 [ 39 20.0, 40 20.01, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 2 49 ], 50 [ 51 0, 52 2, 53 3 54 ], 55 [ 56 2, 57 4, 58 3 59 ], 60 [ 61 5, 62 6, 63 7 64 ] 65 ], 66 "metadata": { 67 "id": "Me922", 68 "schema_version": 0, 69 "defect_class": "disconnected_components", 70 "title": "keep_largest dry_run_mode: dry_run=true; component identified but mesh not mutated", 71 "assertions": [ 72 { 73 "kind": "triangle_not_reachable_from", 74 "target": 3, 75 "source": 0 76 }, 77 { 78 "kind": "edge_shared_by_n_triangles", 79 "edge": [ 80 0, 81 2 82 ], 83 "n": 2 84 }, 85 { 86 "kind": "edge_shared_by_n_triangles", 87 "edge": [ 88 2, 89 3 90 ], 91 "n": 2 92 }, 93 { 94 "kind": "triangle_area_lt", 95 "triangle": 3, 96 "lt": 0.001 97 } 98 ] 99 } 100}