mesh-examples/12-14-mesh/Me753.mesh.json
Sources
- CGAL PMP `PMP.simplify_polygons_in_polygon_soup` Branch 4 (*modification_count*: `if(simplify_polygon(points, polygon, traits) != 0) ++simplified_polygons_n
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Polygon soup with two consecutive-duplicate defect triangles: t_a=[v0,v0,v1] (dup at positions 0-1) and t_b=[v2,v3,v3] (dup at positions 1-2). For each triangle, simplify_polygon() finds and removes one consecutive duplicate and returns 1 (non-zero), causing ++simplified_polygons_n to fire. Branch 4 fires twice, incrementing the counter to 2. Both defect triangles have zero area. Defect edges (v0,v1) and (v2,v3) each appear once.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0); t_a=(v0,v0,v1) [index list 0,0,1]; v2=(3,0,0), v3=(4,0,0); t_b=(v2,v3,v3) [index list 2,3,3]; assert_triangle_area_lt(t_a,1e-12); assert_triangle_area_lt(t_b,1e-12); assert_edge_shared(v0,v1,1); assert_edge_shared(v2,v3,1).
Expected kernel behavior
Branch 4 fires twice; simplified_polygons_n=2 after full pass; t_a reduced to [v0,v1]; t_b reduced to [v2,v3].
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 3.0, 15 0.0, 16 0.0 17 ], 18 [ 19 4.0, 20 0.0, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 0, 28 1 29 ], 30 [ 31 2, 32 3, 33 3 34 ] 35 ], 36 "metadata": { 37 "id": "Me753", 38 "schema_version": 0, 39 "defect_class": "degenerate_triangle", 40 "title": "simplify_polygons_in_polygon_soup modification_count: two consecutive-duplicate triangles each fire simplify_polygon; simplified_polygons_n incremented twice (Branch 4)", 41 "assertions": [ 42 { 43 "kind": "triangle_area_lt", 44 "triangle": 0, 45 "lt": 1e-12 46 }, 47 { 48 "kind": "triangle_area_lt", 49 "triangle": 1, 50 "lt": 1e-12 51 }, 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 2, 64 3 65 ], 66 "n": 1 67 } 68 ] 69 } 70}