mesh-examples/12-14-mesh/Me262.mesh.json
Sources
- CGAL `PMP.remove_degenerate_edges.range_with_face_set` Branch 3 @ line 1585 (*border_edge_triangle_hole*: `is_border` + `is_triangle(hd` → `fill_hole`)
- `MESH_HEAL_COVERAGE.md`.
Description
A 3-triangle patch with a triangular hole. The hole boundary is (v0→v1→v2→v0): edge (v0,v1) is a degenerate border edge (v0≈v1, n=1). The 3-edge hole is detected and Branch 3 calls Euler::fill_hole to close it, removing the degenerate border edge.
Reproducer recipe
hole vertices v0=(0,0,0), v1=(1e-10,0,0), v2=(0.5,1,0); outer: v3,v4,v5. Three surrounding triangles, hole boundary [v0,v1,v2].
Expected kernel behavior
is_border=true, is_triangle(hole_boundary)=true → fill_hole closes the 3-edge hole.
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 1e-10, 10 0.0, 11 0.0 12 ], 13 [ 14 0.5, 15 1.0, 16 0.0 17 ], 18 [ 19 -1.0, 20 0.0, 21 0.0 22 ], 23 [ 24 0.5, 25 2.0, 26 0.0 27 ], 28 [ 29 1.5, 30 0.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 3, 38 2 39 ], 40 [ 41 2, 42 4, 43 1 44 ], 45 [ 46 1, 47 5, 48 0 49 ] 50 ], 51 "metadata": { 52 "id": "Me262", 53 "schema_version": 0, 54 "defect_class": "degenerate_edge", 55 "title": "range_with_face_set border_triangle_hole: degenerate border edge bounds 3-edge hole \u2192 fill_hole", 56 "assertions": [ 57 { 58 "kind": "hole_boundary", 59 "loop": [ 60 0, 61 1, 62 2 63 ] 64 }, 65 { 66 "kind": "edge_shared_by_n_triangles", 67 "edge": [ 68 0, 69 1 70 ], 71 "n": 1 72 }, 73 { 74 "kind": "vertex_pair_distance_lt", 75 "pair": [ 76 0, 77 1 78 ], 79 "lt": 1e-09 80 } 81 ] 82 } 83}