mesh-examples/12-14-mesh/Me1042.mesh.json
Sources
- CGAL PMP `PMP.stitch_borders (internal dispatcher)` Branch 3 (*per-component-boundary-segregation*: `border_edges_per_cc[cc_ids[face(h,mesh)]].push_back(h)
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Three disconnected isolated triangles forming three separate connected components. Component A: t0=(v0,v1,v2); Component B: t1=(v3,v4,v5); Component C: t2=(v6,v7,v8). All 9 edges are boundary (n=1); no interior edges. With per_cc=true, each boundary halfedge is appended to its component's slot in border_edges_per_cc, producing three separate boundary lists. Branch 3 fires once for each boundary halfedge when per_cc=true. Euler: V=9, E=9, F=3, chi=3.
Reproducer recipe
Component A: v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), t0=(v0,v1,v2); Component B: v3=(3,0,0), v4=(4,0,0), v5=(3.5,1,0), t1=(v3,v4,v5); Component C: v6=(6,0,0), v7=(7,0,0), v8=(6.5,1,0), t2=(v6,v7,v8); no shared vertices; triangle_not_reachable_from(t1,t0); euler V=9,E=9,F=3,chi=3.
Expected kernel behavior
Branch 3 fires for each boundary halfedge; cc_ids lookup routes each halfedge to its component's border_edges_per_cc slot; three distinct lists are populated.
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 6.0, 35 0.0, 36 0.0 37 ], 38 [ 39 7.0, 40 0.0, 41 0.0 42 ], 43 [ 44 6.5, 45 1.0, 46 0.0 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 2 54 ], 55 [ 56 3, 57 4, 58 5 59 ], 60 [ 61 6, 62 7, 63 8 64 ] 65 ], 66 "metadata": { 67 "id": "Me1042", 68 "schema_version": 0, 69 "defect_class": "boundary_gap_thin", 70 "title": "stitch_borders per-component-boundary-segregation: border_edges_per_cc appends boundary halfedge to per-CC slot; three disconnected open triangles", 71 "assertions": [ 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 0, 76 1 77 ], 78 "n": 1 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 1, 84 2 85 ], 86 "n": 1 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 0, 92 2 93 ], 94 "n": 1 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 3, 100 4 101 ], 102 "n": 1 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 4, 108 5 109 ], 110 "n": 1 111 }, 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 3, 116 5 117 ], 118 "n": 1 119 }, 120 { 121 "kind": "edge_shared_by_n_triangles", 122 "edge": [ 123 6, 124 7 125 ], 126 "n": 1 127 }, 128 { 129 "kind": "edge_shared_by_n_triangles", 130 "edge": [ 131 7, 132 8 133 ], 134 "n": 1 135 }, 136 { 137 "kind": "edge_shared_by_n_triangles", 138 "edge": [ 139 6, 140 8 141 ], 142 "n": 1 143 }, 144 { 145 "kind": "triangle_not_reachable_from", 146 "target": 1, 147 "source": 0 148 }, 149 { 150 "kind": "triangle_not_reachable_from", 151 "target": 2, 152 "source": 0 153 }, 154 { 155 "kind": "euler_characteristic", 156 "v": 9, 157 "e": 9, 158 "f": 3, 159 "chi": 3 160 } 161 ] 162 } 163}