mesh-examples/12-14-mesh/Me363.mesh.json
Sources
- CGAL PMP `remove_isolated_points_in_polygon_soup` Branch 4 (*early_termination*: `if(i >= first_unused_pos) break
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected valid triangles (t0, t1) using vertices 0–5, plus two trailing isolated vertices v6 and v7 at indices 6 and 7. After the swap of v6, swap_position drops to 6; on the next iteration i=7 is now >= first_unused_pos (7 after swap adjustment) so the inner loop breaks. Branch 4 exercises the boundary-check break.
Reproducer recipe
v0..v5 form two triangles; v6=(10,0,0), v7=(10,1,0) isolated; assert_isolated_vertex(6); assert_isolated_vertex(7); triangles not reachable from each other.
Expected kernel behavior
Branch 4 break fires during detection scan; removed_points_n=2; erase and remap follow.
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 3.0, 20 0.0, 21 0.0 22 ], 23 [ 24 4.0, 25 0.0, 26 0.0 27 ], 28 [ 29 3.5, 30 1.0, 31 0.0 32 ], 33 [ 34 10.0, 35 0.0, 36 0.0 37 ], 38 [ 39 10.0, 40 1.0, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 2 49 ], 50 [ 51 3, 52 4, 53 5 54 ] 55 ], 56 "metadata": { 57 "id": "Me363", 58 "schema_version": 0, 59 "defect_class": "isolated_vertex", 60 "title": "remove_isolated_points_early_termination: two trailing orphans; i>=first_unused_pos break fires", 61 "assertions": [ 62 { 63 "kind": "isolated_vertex", 64 "vertex": 6 65 }, 66 { 67 "kind": "isolated_vertex", 68 "vertex": 7 69 }, 70 { 71 "kind": "triangle_not_reachable_from", 72 "target": 1, 73 "source": 0 74 } 75 ] 76 } 77}