mesh-examples/12-14-mesh/Me1120.mesh.json
Sources
- CGAL `PMP.remove_self_intersections` Branch 6 @ line 2150 (*internal-vs-external-si-classification*: `if (does_self_intersect(cc)) { ... } else { if (!treat_all_CCs) continue
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
three connected components with no shared vertices. CC-A (tri 0) is a flat triangle in the z=0 XY plane. CC-B (tri 1) pierces the z=0 plane — its apex is at z=-1 and its base is at z=+1 — crossing CC-A's tri 0. The self-intersection is external (cross-CC): neither CC has an internal SI on its own. CC-C (tri 2) is a clean isolated triangle 20 units away. Branch 6 must classify this as a cross-CC SI rather than an internal one. When treat_all_CCs=false, CC-C is correctly skipped (clean); CC-A and CC-B are both implicated by the external crossing.
Reproducer recipe
CC-A = flat triangle at z=0 (v0=(0,0,0), v1=(2,0,0), v2=(1,2,0)); CC-B = piercing triangle (v3=(1,0.5,-1), v4=(0.5,0.5,1), v5=(1.5,0.5,1)) sharing no vertices with CC-A; CC-C = clean flat triangle at y=20.
Expected kernel behavior
classify SI as cross-CC (external); implicate both CC-A and CC-B despite neither having internal SI; skip CC-C when treat_all_CCs=false.
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 2.0, 10 0.0, 11 0.0 12 ], 13 [ 14 1.0, 15 2.0, 16 0.0 17 ], 18 [ 19 1.0, 20 0.5, 21 -1.0 22 ], 23 [ 24 0.5, 25 0.5, 26 1.0 27 ], 28 [ 29 1.5, 30 0.5, 31 1.0 32 ], 33 [ 34 0.0, 35 20.0, 36 0.0 37 ], 38 [ 39 1.0, 40 20.0, 41 0.0 42 ], 43 [ 44 0.5, 45 21.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": "Me1120", 68 "schema_version": 0, 69 "defect_class": "self_intersection_cross_cc", 70 "title": "cross-CC external SI: CC-A and CC-B intersect each other, no intra-CC SI", 71 "assertions": [ 72 { 73 "kind": "triangles_self_intersect", 74 "triangles": [ 75 0, 76 1 77 ] 78 }, 79 { 80 "kind": "triangle_not_reachable_from", 81 "target": 2, 82 "source": 0 83 }, 84 { 85 "kind": "triangle_not_reachable_from", 86 "target": 2, 87 "source": 1 88 } 89 ] 90 } 91}