mesh-examples/12-14-mesh/Me263.mesh.json
Sources
- CGAL `PMP.remove_degenerate_edges.range_with_face_set` Branch 4 @ line 1591 (*preserve_genus*: `preserve_genus=true` blocks `fill_hole`)
- `MESH_HEAL_COVERAGE.md`.
Description
A 6-triangle patch with a triangular hole (v0,v1,v2) where v0≈v1 is a degenerate border edge. Unlike Branch 3, the preserve_genus option is active: filling the hole would alter topology, so Branch 4 sets all_removed=false and skips the fill. Same geometric hole pattern as Me262 but in a larger patch context.
Reproducer recipe
hole vertices v0=(0,0,0), v1=(1e-10,0,0), v2=(0.5,1,0); 6 surrounding triangles using v3,v4,v5,v6,v7; hole boundary [v0,v1,v2] intact.
Expected kernel behavior
preserve_genus=true → skip fill_hole, mark all_removed=false.
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 -0.5, 20 0.5, 21 0.0 22 ], 23 [ 24 0.5, 25 2.0, 26 0.0 27 ], 28 [ 29 0.5, 30 -0.5, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 3, 37 2, 38 0 39 ], 40 [ 41 5, 42 0, 43 1 44 ], 45 [ 46 4, 47 1, 48 2 49 ], 50 [ 51 3, 52 4, 53 2 54 ], 55 [ 56 3, 57 5, 58 4 59 ], 60 [ 61 5, 62 1, 63 4 64 ] 65 ], 66 "metadata": { 67 "id": "Me263", 68 "schema_version": 0, 69 "defect_class": "degenerate_edge", 70 "title": "range_with_face_set preserve_genus: degenerate border edge in 3-edge hole; genus preservation blocks fill_hole", 71 "assertions": [ 72 { 73 "kind": "hole_boundary", 74 "loop": [ 75 0, 76 1, 77 2 78 ] 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 0, 84 1 85 ], 86 "n": 1 87 }, 88 { 89 "kind": "vertex_pair_distance_lt", 90 "pair": [ 91 0, 92 1 93 ], 94 "lt": 1e-09 95 } 96 ] 97 } 98}