mesh-examples/12-14-mesh/Me019.mesh.json
Sources
- CGAL `PMP.remove_self_intersections` Branch 5 @ line 2463 (*face-selection-emptiness-detection*)
- `MESH_HEAL_COVERAGE.md`.
Description
the mesh contains both valid triangles (0 and 2) and zero-area collinear-vertex triangles (1 and 3). The degenerate triangles represent the "blocking" elements left after a partial SI-heal pass. When a healer removes the zero-area faces first, the faces_to_treat set becomes empty, triggering the early-exit branch rather than an SI recomputation.
Reproducer recipe
4 triangles; tri 0 valid in z=0 plane; tri 1 = three collinear points along X axis (area=0); tri 2 valid in x=0 plane; tri 3 = three collinear points along Z axis (area=0).
Expected kernel behavior
detect zero-area faces and remove them; after removal the candidate set is empty — exit the SI loop rather than recompute.
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 0.5, 15 1.0, 16 0.0 17 ], 18 [ 19 0.2, 20 0.0, 21 0.0 22 ], 23 [ 24 0.8, 25 0.0, 26 0.0 27 ], 28 [ 29 0.5, 30 0.0, 31 0.0 32 ], 33 [ 34 0.0, 35 0.0, 36 1.0 37 ], 38 [ 39 0.0, 40 1.0, 41 0.0 42 ], 43 [ 44 0.0, 45 0.0, 46 0.2 47 ], 48 [ 49 0.0, 50 0.0, 51 0.8 52 ], 53 [ 54 0.0, 55 0.0, 56 0.5 57 ] 58 ], 59 "triangles": [ 60 [ 61 0, 62 1, 63 2 64 ], 65 [ 66 3, 67 4, 68 5 69 ], 70 [ 71 0, 72 6, 73 7 74 ], 75 [ 76 8, 77 9, 78 10 79 ] 80 ], 81 "metadata": { 82 "id": "Me019", 83 "schema_version": 0, 84 "defect_class": "self_intersection_degenerate_cluster", 85 "title": "SI region with degenerate zero-area faces: faces_to_treat empties after removal", 86 "assertions": [ 87 { 88 "kind": "triangle_area_lt", 89 "triangle": 1, 90 "lt": 1e-12 91 }, 92 { 93 "kind": "triangle_area_lt", 94 "triangle": 3, 95 "lt": 1e-12 96 } 97 ] 98 } 99}