mesh-examples/12-14-mesh/Me1114.mesh.json
Sources
- CGAL `PMP.remove_self_intersections` Branch 5 @ line 2463 (*face-selection-emptiness-detection*: `if(faces_to_treat.empty()) { self_intersecting_faces(…)
- continue
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
the mesh contains two valid non-degenerate triangles (0 and 2) and two zero-area collinear-vertex triangles (1 and 3). The degenerate triangles represent topology-blocker faces that would be evicted from faces_to_treat in the prior SI iteration. When they are removed, the candidate set becomes empty, triggering the Branch 5 early-exit check rather than an SI recomputation. Triangle 1 is collinear along Y-axis; triangle 3 is collinear along X-axis.
Reproducer recipe
12 vertices; tri 0 = valid right triangle in Z=2 plane; tri 1 = collinear (0,1,0)–(0,3,0)–(0,2,0) along Y-axis (area=0); tri 2 = valid triangle in X=3 plane; tri 3 = collinear (1,0,0)–(4,0,0)–(2.5,0,0) along X-axis (area=0). assert_triangle_area_lt(1,1e-12); assert_triangle_area_lt(3,1e-12).
Expected kernel behavior
detect zero-area faces; evict them from faces_to_treat; when set is empty, trigger Branch 5 check — exit loop early vs recompute SI.
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 2.0 7 ], 8 [ 9 1.0, 10 0.0, 11 2.0 12 ], 13 [ 14 0.0, 15 1.0, 16 2.0 17 ], 18 [ 19 0.0, 20 1.0, 21 0.0 22 ], 23 [ 24 0.0, 25 3.0, 26 0.0 27 ], 28 [ 29 0.0, 30 2.0, 31 0.0 32 ], 33 [ 34 3.0, 35 0.0, 36 0.0 37 ], 38 [ 39 3.0, 40 1.0, 41 0.0 42 ], 43 [ 44 3.0, 45 0.5, 46 1.0 47 ], 48 [ 49 1.0, 50 0.0, 51 0.0 52 ], 53 [ 54 4.0, 55 0.0, 56 0.0 57 ], 58 [ 59 2.5, 60 0.0, 61 0.0 62 ] 63 ], 64 "triangles": [ 65 [ 66 0, 67 1, 68 2 69 ], 70 [ 71 3, 72 4, 73 5 74 ], 75 [ 76 6, 77 7, 78 8 79 ], 80 [ 81 9, 82 10, 83 11 84 ] 85 ], 86 "metadata": { 87 "id": "Me1114", 88 "schema_version": 0, 89 "defect_class": "self_intersection_degenerate_cluster", 90 "title": "zero-area degenerate faces empty the SI candidate set: faces_to_treat emptiness detection", 91 "assertions": [ 92 { 93 "kind": "triangle_area_lt", 94 "triangle": 1, 95 "lt": 1e-12 96 }, 97 { 98 "kind": "triangle_area_lt", 99 "triangle": 3, 100 "lt": 1e-12 101 } 102 ] 103 } 104}