mesh-examples/12-14-mesh/Me1000.mesh.json
Sources
- CGAL PMP `PMP.remove_connected_components.by_face_range` Branch 1 (*Iteration_construct*: `for(face_descriptor fd : face_range) { ... }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components: Component A is a 3-triangle open fan around hub v0=(0,0,0) with rim vertices v1-v4; Component B is a single isolated triangle (t3) with vertices v5-v7 at x=10. The face_range covers all four faces; Branch 1 fires as the loop body is entered for each face in the range. The face_range-based API is exercised with a multi-face range — the loop construct fires on face descriptors for t0 through t3. Component B is unreachable from A. Interior edges v0-v2 and v0-v3 are shared by 2 triangles each; all boundary edges are n=1. Euler: V=8, E=10, F=4, chi=2.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0,1,0), v3=(-1,0,0), v4=(0,-1,0); t0=(v0,v1,v2), t1=(v0,v2,v3), t2=(v0,v3,v4); v5=(10,0,0), v6=(11,0,0), v7=(10,1,0); t3=(v5,v6,v7); triangle_not_reachable_from(3,0); interior edges v0-v2, v0-v3 n=2; euler V=8,E=10,F=4,chi=2.
Expected kernel behavior
Branch 1 fires; loop body entered 4 times (once per face in face_range); per-face connected-component removal logic applied to t0-t3 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.0, 15 1.0, 16 0.0 17 ], 18 [ 19 -1.0, 20 0.0, 21 0.0 22 ], 23 [ 24 0.0, 25 -1.0, 26 0.0 27 ], 28 [ 29 10.0, 30 0.0, 31 0.0 32 ], 33 [ 34 11.0, 35 0.0, 36 0.0 37 ], 38 [ 39 10.0, 40 1.0, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 2 49 ], 50 [ 51 0, 52 2, 53 3 54 ], 55 [ 56 0, 57 3, 58 4 59 ], 60 [ 61 5, 62 6, 63 7 64 ] 65 ], 66 "metadata": { 67 "id": "Me1000", 68 "schema_version": 0, 69 "defect_class": "disconnected_components", 70 "title": "remove_connected_components.by_face_range Iteration_construct: loop enters for each face in range; 3-triangle component A + isolated triangle B (Branch 1)", 71 "assertions": [ 72 { 73 "kind": "triangle_not_reachable_from", 74 "target": 3, 75 "source": 0 76 }, 77 { 78 "kind": "edge_shared_by_n_triangles", 79 "edge": [ 80 0, 81 2 82 ], 83 "n": 2 84 }, 85 { 86 "kind": "edge_shared_by_n_triangles", 87 "edge": [ 88 0, 89 3 90 ], 91 "n": 2 92 }, 93 { 94 "kind": "edge_shared_by_n_triangles", 95 "edge": [ 96 0, 97 1 98 ], 99 "n": 1 100 }, 101 { 102 "kind": "edge_shared_by_n_triangles", 103 "edge": [ 104 1, 105 2 106 ], 107 "n": 1 108 }, 109 { 110 "kind": "edge_shared_by_n_triangles", 111 "edge": [ 112 0, 113 4 114 ], 115 "n": 1 116 }, 117 { 118 "kind": "edge_shared_by_n_triangles", 119 "edge": [ 120 3, 121 4 122 ], 123 "n": 1 124 }, 125 { 126 "kind": "edge_shared_by_n_triangles", 127 "edge": [ 128 5, 129 6 130 ], 131 "n": 1 132 }, 133 { 134 "kind": "edge_shared_by_n_triangles", 135 "edge": [ 136 5, 137 7 138 ], 139 "n": 1 140 }, 141 { 142 "kind": "edge_shared_by_n_triangles", 143 "edge": [ 144 6, 145 7 146 ], 147 "n": 1 148 }, 149 { 150 "kind": "euler_characteristic", 151 "v": 8, 152 "e": 10, 153 "f": 4, 154 "chi": 2 155 } 156 ] 157 } 158}