mesh-examples/12-14-mesh/Me1043.mesh.json
Sources
- CGAL PMP `PMP.stitch_borders (internal dispatcher)` Branch 4 (*processing-strategy-dispatch*: `if (per_cc) { for (std::size_t i = 0
- i < num_cc
- ++i) { ... } }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected two-triangle open strips. Component A (t0,t1) sharing (v1,v2) interior, and Component B (t2,t3) sharing (v5,v6) interior. With per_cc=true and num_cc=2, the dispatcher enters a for-loop over the two components, invoking the stitch logic for each component's border_edges_per_cc slot independently. Branch 4 fires at the for-loop boundary check (i < num_cc), executing twice. Euler: V=8, E=10, F=4, chi=2.
Reproducer recipe
Component A: v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(1.5,1,0), t0=(v0,v1,v2), t1=(v1,v3,v2); Component B: v4=(4,0,0), v5=(5,0,0), v6=(4.5,1,0), v7=(5.5,1,0), t2=(v4,v5,v6), t3=(v5,v7,v6); triangle_not_reachable_from(t2,t0); euler V=8,E=10,F=4,chi=2.
Expected kernel behavior
Branch 4 fires; for-loop iterates i=0 and i=1 (num_cc=2), processing each component's border edge list in sequence.
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 1.5, 20 1.0, 21 0.0 22 ], 23 [ 24 4.0, 25 0.0, 26 0.0 27 ], 28 [ 29 5.0, 30 0.0, 31 0.0 32 ], 33 [ 34 4.5, 35 1.0, 36 0.0 37 ], 38 [ 39 5.5, 40 1.0, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 2 49 ], 50 [ 51 1, 52 3, 53 2 54 ], 55 [ 56 4, 57 5, 58 6 59 ], 60 [ 61 5, 62 7, 63 6 64 ] 65 ], 66 "metadata": { 67 "id": "Me1043", 68 "schema_version": 0, 69 "defect_class": "boundary_gap_thin", 70 "title": "stitch_borders processing-strategy-dispatch: per_cc for-loop iterates over num_cc=2 connected components; two open two-triangle patches", 71 "assertions": [ 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 1, 76 2 77 ], 78 "n": 2 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 5, 84 6 85 ], 86 "n": 2 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 0, 92 1 93 ], 94 "n": 1 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 0, 100 2 101 ], 102 "n": 1 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 1, 108 3 109 ], 110 "n": 1 111 }, 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 2, 116 3 117 ], 118 "n": 1 119 }, 120 { 121 "kind": "edge_shared_by_n_triangles", 122 "edge": [ 123 4, 124 5 125 ], 126 "n": 1 127 }, 128 { 129 "kind": "edge_shared_by_n_triangles", 130 "edge": [ 131 4, 132 6 133 ], 134 "n": 1 135 }, 136 { 137 "kind": "edge_shared_by_n_triangles", 138 "edge": [ 139 5, 140 7 141 ], 142 "n": 1 143 }, 144 { 145 "kind": "edge_shared_by_n_triangles", 146 "edge": [ 147 6, 148 7 149 ], 150 "n": 1 151 }, 152 { 153 "kind": "triangle_not_reachable_from", 154 "target": 2, 155 "source": 0 156 }, 157 { 158 "kind": "euler_characteristic", 159 "v": 8, 160 "e": 10, 161 "f": 4, 162 "chi": 2 163 } 164 ] 165 } 166}