mesh-examples/12-14-mesh/Me821.mesh.json
Sources
- CGAL PMP `does_polygon_soup_self_intersect` Branch 2 (*polygon_type_mixed*: `if(polygon.size() != std::size_t(3))` → `triangulate_polygons` call)
- `MESH_HEAL_COVERAGE.md`.
Description
A two-triangle soup where the first triangle (v0,v1,v2) is a maximally needle-shaped element with base 10 and height 1e-4, giving an aspect ratio >1e5. In the actual CGAL branch, non-triangle polygons (quads, pentagons) trigger the `triangulate_polygons` call; the needle triangle simulates the degenerate geometry that would result from naively ear-clipping a thin quad. The aspect_ratio_gt assertion records the polygon_type_mixed pre-condition. The second clean triangle confirms no SI.
Reproducer recipe
v0=(0,0,0), v1=(10,0,0), v2=(5,1e-4,0); t0=(v0,v1,v2) needle; v3=(0,2,0), v4=(1,2,0), v5=(0,3,0); t1=(v3,v4,v5) clean; assert_triangle_aspect_ratio_gt(0,1000.0); assert_triangles_do_not_intersect(0,1).
Expected kernel behavior
Branch 2 fires on polygon size != 3; triangulate_polygons converts soup to all-triangle representation; SI check proceeds on triangulated soup.
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 10.0, 10 0.0, 11 0.0 12 ], 13 [ 14 5.0, 15 0.0001, 16 0.0 17 ], 18 [ 19 0.0, 20 2.0, 21 0.0 22 ], 23 [ 24 1.0, 25 2.0, 26 0.0 27 ], 28 [ 29 0.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": "Me821", 48 "schema_version": 0, 49 "defect_class": "degenerate_triangle", 50 "title": "does_polygon_soup_self_intersect polygon_type_mixed: needle triangle (aspect >> 1) simulates non-triangle-polygon pre-condition; triangulate_polygons branch fires (Branch 2)", 51 "assertions": [ 52 { 53 "kind": "triangle_aspect_ratio_gt", 54 "triangle": 0, 55 "gt": 1000.0 56 }, 57 { 58 "kind": "triangles_do_not_intersect", 59 "triangles": [ 60 0, 61 1 62 ] 63 } 64 ] 65 } 66}