mesh-examples/12-14-mesh/Me362.mesh.json
Sources
- CGAL PMP `remove_isolated_points_in_polygon_soup` Branch 3 (*unused_point_detection*: `if(!visited[i]) { std::swap(points[swap_position], points[i])
- ... }`)
- `MESH_HEAL_COVERAGE.md`.
Description
A single triangle (v0,v1,v2) plus one isolated vertex v3=(5,5,5). After the usage scan, visited[3]=false. The detection loop finds i=3 unvisited, executes the swap, and increments removed_points_n. Branch 3 fires exactly once for the single orphan.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(5,5,5); t0=(v0,v1,v2); assert_isolated_vertex(3); all edges n=1.
Expected kernel behavior
Branch 3 fires once; removed_points_n=1; physical erase follows.
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 5.0, 20 5.0, 21 5.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ] 30 ], 31 "metadata": { 32 "id": "Me362", 33 "schema_version": 0, 34 "defect_class": "isolated_vertex", 35 "title": "remove_isolated_points_unused_detection: isolated v3 found by !visited[i] and swapped toward tail", 36 "assertions": [ 37 { 38 "kind": "isolated_vertex", 39 "vertex": 3 40 }, 41 { 42 "kind": "edge_shared_by_n_triangles", 43 "edge": [ 44 0, 45 1 46 ], 47 "n": 1 48 }, 49 { 50 "kind": "edge_shared_by_n_triangles", 51 "edge": [ 52 1, 53 2 54 ], 55 "n": 1 56 }, 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 0, 61 2 62 ], 63 "n": 1 64 } 65 ] 66 } 67}