mesh-examples/12-14-mesh/Me1030.mesh.json
Sources
- CGAL PMP `PMP.keep_connected_components` Branch 1 (*by_face_range*: `for(face_descriptor f : face_range) { ... }` @ line 304)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected single-triangle components — Component A (t0) at origin and Component B (t1) at x=10. The face-range overload is called with a range containing only t0. The function iterates that range (Branch 1 fires), determines that t0 belongs to CC 0, marks CC 0 as kept, then removes all faces not in a kept CC (i.e. removes t1 and its vertices). All six edges are boundary (n=1). Euler: V=6, E=6, F=2, chi=2.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), t0=(v0,v1,v2); v3=(10,0,0), v4=(11,0,0), v5=(10.5,1,0), t1=(v3,v4,v5). assert_triangle_not_reachable_from(t1,t0); six boundary edges n=1; euler V=6,E=6,F=2,chi=2.
Expected kernel behavior
Branch 1 fires; the supplied face-range {t0} is iterated; CC of t0 is identified as kept; t1 and v3-v5 are removed.
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 50.0, 20 0.0, 21 0.0 22 ], 23 [ 24 51.0, 25 0.0, 26 0.0 27 ], 28 [ 29 50.5, 30 1.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 3, 42 4, 43 5 44 ] 45 ], 46 "metadata": { 47 "id": "Me1030", 48 "schema_version": 0, 49 "defect_class": "disconnected_components", 50 "title": "split_connected_components component_subdivision: two disconnected triangles each extracted to a new mesh (Branch 1)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 1 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 1, 64 2 65 ], 66 "n": 1 67 }, 68 { 69 "kind": "edge_shared_by_n_triangles", 70 "edge": [ 71 0, 72 2 73 ], 74 "n": 1 75 }, 76 { 77 "kind": "edge_shared_by_n_triangles", 78 "edge": [ 79 3, 80 4 81 ], 82 "n": 1 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 4, 88 5 89 ], 90 "n": 1 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 3, 96 5 97 ], 98 "n": 1 99 }, 100 { 101 "kind": "triangle_not_reachable_from", 102 "target": 1, 103 "source": 0 104 }, 105 { 106 "kind": "euler_characteristic", 107 "v": 6, 108 "e": 6, 109 "f": 2, 110 "chi": 2 111 } 112 ] 113 } 114}