mesh-examples/12-14-mesh/Me268.mesh.json
Sources
- CGAL `PMP.remove_degenerate_edges.range_with_face_set` Branch 9 @ line 1704 (*whole_connected_component_selected*: `border.empty()` → skip entire component)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components: a 3-triangle patch (component A, no defects) and a single isolated triangle (component B) with a near-degenerate border edge (v4,v5) where v4≈v5. Component B is the entire connected component. When the algorithm marks the face containing the degenerate edge, it marks the ENTIRE component B — border.empty() is true, so Branch 9 skips removal.
Reproducer recipe
component A: v0-v3, t0-t2 (3-triangle patch); component B: v4=(10,0,0), v5=(10+1e-10,0,0), v6=(10.5,1,0), t3=(v4,v5,v6). Component B unreachable from t0.
Expected kernel behavior
marking face in single-triangle component → border.empty() → skip.
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 0.0, 20 1.0, 21 0.0 22 ], 23 [ 24 10.0, 25 0.0, 26 0.0 27 ], 28 [ 29 10.0000000001, 30 0.0, 31 0.0 32 ], 33 [ 34 10.5, 35 1.0, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 0, 47 2, 48 3 49 ], 50 [ 51 1, 52 3, 53 2 54 ], 55 [ 56 4, 57 5, 58 6 59 ] 60 ], 61 "metadata": { 62 "id": "Me268", 63 "schema_version": 0, 64 "defect_class": "degenerate_edge", 65 "title": "range_with_face_set whole_component_selected: single-triangle component with degenerate edge \u2192 border.empty() \u2192 skip", 66 "assertions": [ 67 { 68 "kind": "triangle_not_reachable_from", 69 "target": 3, 70 "source": 0 71 }, 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 4, 76 5 77 ], 78 "n": 1 79 }, 80 { 81 "kind": "vertex_pair_distance_lt", 82 "pair": [ 83 4, 84 5 85 ], 86 "lt": 1e-09 87 }, 88 { 89 "kind": "triangle_area_lt", 90 "triangle": 3, 91 "lt": 1e-08 92 } 93 ] 94 } 95}