mesh-examples/12-14-mesh/Me269.mesh.json
Sources
- CGAL `PMP.remove_degenerate_edges.range_with_face_set` Branch 10 @ line 1778 (*border_edge_cycle*: `index != nb_cc` → cycle of border edges detected → skip)
- `MESH_HEAL_COVERAGE.md`.
Description
An 8-triangle flat annular ring with outer boundary (v0-v3) and inner hole boundary (v4-v7). The degenerate edge (v4,v5) with v4≈v5 is on the inner hole boundary (n=1). The annular region has Euler chi=0 (two boundary loops). When the algorithm processes the marked region, the union-find detects index != nb_cc: the inner hole forms a closed cycle of border edges (nested hole), so Branch 10 skips the removal.
Reproducer recipe
outer square v0-v3 at radius 2, inner square v4=(−0.5,−0.5,0), v5=(−0.5+1e-10,−0.5,0), v6=(0.5,−0.5,0), v7=(0,0.5,0). 8 triangles forming ring. chi=0.
Expected kernel behavior
inner hole boundary forms a cycle (index != nb_cc); skip removal.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 -2.0, 5 -2.0, 6 0.0 7 ], 8 [ 9 2.0, 10 -2.0, 11 0.0 12 ], 13 [ 14 2.0, 15 2.0, 16 0.0 17 ], 18 [ 19 -2.0, 20 2.0, 21 0.0 22 ], 23 [ 24 -0.5, 25 -0.5, 26 0.0 27 ], 28 [ 29 -0.4999999999, 30 -0.5, 31 0.0 32 ], 33 [ 34 0.5, 35 -0.5, 36 0.0 37 ], 38 [ 39 0.0, 40 0.5, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 5 49 ], 50 [ 51 0, 52 5, 53 4 54 ], 55 [ 56 1, 57 2, 58 6 59 ], 60 [ 61 1, 62 6, 63 5 64 ], 65 [ 66 2, 67 3, 68 7 69 ], 70 [ 71 2, 72 7, 73 6 74 ], 75 [ 76 3, 77 0, 78 4 79 ], 80 [ 81 3, 82 4, 83 7 84 ] 85 ], 86 "metadata": { 87 "id": "Me269", 88 "schema_version": 0, 89 "defect_class": "degenerate_edge", 90 "title": "range_with_face_set border_edge_cycle: annular mesh with inner hole; degenerate inner-boundary edge \u2192 cycle of border edges \u2192 skip", 91 "assertions": [ 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 4, 96 5 97 ], 98 "n": 1 99 }, 100 { 101 "kind": "vertex_pair_distance_lt", 102 "pair": [ 103 4, 104 5 105 ], 106 "lt": 1e-09 107 }, 108 { 109 "kind": "euler_characteristic", 110 "v": 8, 111 "e": 16, 112 "f": 8, 113 "chi": 0 114 }, 115 { 116 "kind": "hole_boundary", 117 "loop": [ 118 4, 119 5, 120 6, 121 7 122 ] 123 } 124 ] 125 } 126}