mesh-examples/12-14-mesh/Me1002.mesh.json
Sources
- CGAL PMP `PMP.remove_connected_components.by_face_range` Branch 3 (*Alternative_path*: `} else { ... } // constraint-respecting fallback`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components. Component A is a 2-triangle fan around hub v0=(0,0,0) with rim vertices v1-v3. Component B is a 3-triangle strip at x=10 with vertices v4-v8, where v7=(10,1,0) is the constrained vertex (get(is_cst, v7)==true). All three of B's triangles (t2, t3, t4) are incident on v7. When the face_range covers t2-t4, the algorithm tests is_cst on each incident vertex; v7 is constrained, so those faces take the else fallback path (Branch 3) rather than Branch 2's unconditional removal. B is unreachable from A. Shared edges v4-v7 and v5-v7 in B are n=2; all other edges n=1. Euler: V=9, E=12, F=5, chi=2.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0,1,0), v3=(-1,0,0); t0=(v0,v1,v2), t1=(v0,v2,v3); v4=(10,0,0), v5=(11,0,0), v6=(11,1,0), v7=(10,1,0) [constrained], v8=(10,2,0); t2=(v4,v5,v7), t3=(v5,v6,v7), t4=(v4,v7,v8); triangle_not_reachable_from(2,0); edges v4-v7 and v5-v7 n=2; euler V=9,E=12,F=5,chi=2.
Expected kernel behavior
Branch 3 fires; get(is_cst, v7)==true for faces t2, t3, t4; else fallback executes instead of unconditional remove; constrained boundary is preserved.
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.0, 15 1.0, 16 0.0 17 ], 18 [ 19 -1.0, 20 0.0, 21 0.0 22 ], 23 [ 24 10.0, 25 0.0, 26 0.0 27 ], 28 [ 29 11.0, 30 0.0, 31 0.0 32 ], 33 [ 34 11.0, 35 1.0, 36 0.0 37 ], 38 [ 39 10.0, 40 1.0, 41 0.0 42 ], 43 [ 44 10.0, 45 2.0, 46 0.0 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 2 54 ], 55 [ 56 0, 57 2, 58 3 59 ], 60 [ 61 4, 62 5, 63 7 64 ], 65 [ 66 5, 67 6, 68 7 69 ], 70 [ 71 4, 72 7, 73 8 74 ] 75 ], 76 "metadata": { 77 "id": "Me1002", 78 "schema_version": 0, 79 "defect_class": "disconnected_components", 80 "title": "remove_connected_components.by_face_range Alternative_path: constrained vertex v7 in face_range triggers else fallback; 2-tri component A + 3-tri component B with constraint (Branch 3)", 81 "assertions": [ 82 { 83 "kind": "triangle_not_reachable_from", 84 "target": 2, 85 "source": 0 86 }, 87 { 88 "kind": "triangle_not_reachable_from", 89 "target": 4, 90 "source": 0 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 0, 96 2 97 ], 98 "n": 2 99 }, 100 { 101 "kind": "edge_shared_by_n_triangles", 102 "edge": [ 103 0, 104 1 105 ], 106 "n": 1 107 }, 108 { 109 "kind": "edge_shared_by_n_triangles", 110 "edge": [ 111 1, 112 2 113 ], 114 "n": 1 115 }, 116 { 117 "kind": "edge_shared_by_n_triangles", 118 "edge": [ 119 0, 120 3 121 ], 122 "n": 1 123 }, 124 { 125 "kind": "edge_shared_by_n_triangles", 126 "edge": [ 127 2, 128 3 129 ], 130 "n": 1 131 }, 132 { 133 "kind": "edge_shared_by_n_triangles", 134 "edge": [ 135 4, 136 7 137 ], 138 "n": 2 139 }, 140 { 141 "kind": "edge_shared_by_n_triangles", 142 "edge": [ 143 5, 144 7 145 ], 146 "n": 2 147 }, 148 { 149 "kind": "edge_shared_by_n_triangles", 150 "edge": [ 151 4, 152 5 153 ], 154 "n": 1 155 }, 156 { 157 "kind": "edge_shared_by_n_triangles", 158 "edge": [ 159 5, 160 6 161 ], 162 "n": 1 163 }, 164 { 165 "kind": "edge_shared_by_n_triangles", 166 "edge": [ 167 6, 168 7 169 ], 170 "n": 1 171 }, 172 { 173 "kind": "edge_shared_by_n_triangles", 174 "edge": [ 175 7, 176 8 177 ], 178 "n": 1 179 }, 180 { 181 "kind": "edge_shared_by_n_triangles", 182 "edge": [ 183 4, 184 8 185 ], 186 "n": 1 187 }, 188 { 189 "kind": "euler_characteristic", 190 "v": 9, 191 "e": 12, 192 "f": 5, 193 "chi": 2 194 } 195 ] 196 } 197}