mesh-examples/12-14-mesh/Me1111.mesh.json
Sources
- CGAL `PMP.remove_self_intersections` Branch 2 @ line 2383 (*treatment-scope-selection*: `if(treat_all_CCs) … else only_SI_CCs`)
- `MESH_HEAL_COVERAGE.md`.
Description
two fully disconnected connected components with no shared vertices. CC-A (triangles 0,1): XY-plane and XZ-plane triangles that both share apex ca0 at origin — they cross along the Y=0,Z=0 line (self-intersection). CC-B (triangles 2,3): a clean flat quad at X=10, no defects. When treat_all_CCs=false, CC-B is skipped; when true, it is also validated.
Reproducer recipe
CC-A: ca0=(0,0,0), ca1=(0,2,0), ca2=(0,-2,0), ca3=(0,0,2), ca4=(0,0,-2); t0=(ca0,ca1,ca2) XY-plane, t1=(ca0,ca3,ca4) XZ-plane crossing t0. CC-B: clean quad at X=10. assert_triangles_self_intersect(0,1); assert_triangle_not_reachable_from(2,0).
Expected kernel behavior
detect SI internal to CC-A; skip CC-B when treat_all_CCs=false; process both when true.
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 0.0, 10 2.0, 11 0.0 12 ], 13 [ 14 0.0, 15 -2.0, 16 0.0 17 ], 18 [ 19 0.0, 20 0.0, 21 2.0 22 ], 23 [ 24 0.0, 25 0.0, 26 -2.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 11.0, 40 1.0, 41 0.0 42 ], 43 [ 44 10.0, 45 1.0, 46 0.0 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 2 54 ], 55 [ 56 0, 57 3, 58 4 59 ], 60 [ 61 5, 62 6, 63 7 64 ], 65 [ 66 5, 67 7, 68 8 69 ] 70 ], 71 "metadata": { 72 "id": "Me1111", 73 "schema_version": 0, 74 "defect_class": "self_intersection_multi_cc", 75 "title": "SI in CC-A; clean CC-B: treat_all_CCs processing-scope decision", 76 "assertions": [ 77 { 78 "kind": "triangles_self_intersect", 79 "triangles": [ 80 0, 81 1 82 ] 83 }, 84 { 85 "kind": "triangle_not_reachable_from", 86 "target": 2, 87 "source": 0 88 } 89 ] 90 } 91}