mesh-examples/12-14-mesh/Me275.mesh.json
Sources
- CGAL PMP `autorefine_impl::autorefine_triangle_soup` Branch 6 (*default*: `default:` when nbi>=3 → iterate ipt_ids1[i]/ipt_ids2[i] @ line 1155)
- `MESH_HEAL_COVERAGE.md`.
Description
Two coplanar triangles in z=0 that partially overlap, forming a quadrilateral intersection region (4 intersection points). The default branch of the nbi switch fires (nbi==4 >= 3) and constructs segment entries for every consecutive pair around the intersection polygon.
Reproducer recipe
t0 and t1 coplanar in z=0 with partial overlap; nbi==4; assert triangles_self_intersect([0,1]).
Expected kernel behavior
Branch 6 fires; default case iterates all nbi>=3 intersection points; segment entries constructed for each consecutive pair.
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 3.0, 10 0.0, 11 0.0 12 ], 13 [ 14 1.0, 15 3.0, 16 0.0 17 ], 18 [ 19 1.0, 20 0.0, 21 0.0 22 ], 23 [ 24 4.0, 25 0.0, 26 0.0 27 ], 28 [ 29 2.0, 30 3.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": "Me275", 48 "schema_version": 0, 49 "defect_class": "autorefine_polygon_intersection", 50 "title": "autorefine_triangle_soup polygon-intersection default branch: nbi>=3 coplanar overlap", 51 "assertions": [ 52 { 53 "kind": "triangles_self_intersect", 54 "triangles": [ 55 0, 56 1 57 ] 58 } 59 ] 60 } 61}