mesh-examples/12-14-mesh/Me018.mesh.json
Sources
- CGAL `PMP.remove_self_intersections` Branch 3 @ line 2397 (*smoothing-phase-strategy*)
- `MESH_HEAL_COVERAGE.md`.
Description
triangles 0 and 1 form a flat patch in the z=0 plane. Triangle 2 is an intruding element whose apex (vertex 6) has been displaced to z=-0.5 — below the patch. The intruder's upper vertices are at z=+0.5, so it slices through the patch. Moving the apex back to z≈0 via a smoothing pass would fix the SI without topological remeshing, making this an ideal candidate for the use_smoothing repair branch.
Reproducer recipe
patch = two triangles from quad `(0,0,0),(2,0,0),(2,2,0),(0,2,0)`; intruder apex at `(1,1,-0.5)`, base at `(1,-0.5,0.5)` and `(1,2.5,0.5)`.
Expected kernel behavior
detect the self-intersection between the patch and the intruder; use vertex-smoothing on the displaced apex to lift it back above z=0.
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 2.0, 10 0.0, 11 0.0 12 ], 13 [ 14 2.0, 15 2.0, 16 0.0 17 ], 18 [ 19 0.0, 20 2.0, 21 0.0 22 ], 23 [ 24 1.0, 25 -0.5, 26 0.5 27 ], 28 [ 29 1.0, 30 2.5, 31 0.5 32 ], 33 [ 34 1.0, 35 1.0, 36 -0.5 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 0, 47 2, 48 3 49 ], 50 [ 51 4, 52 5, 53 6 54 ] 55 ], 56 "metadata": { 57 "id": "Me018", 58 "schema_version": 0, 59 "defect_class": "self_intersection_smoothable", 60 "title": "SI pocket with displaced apex piercing flat patch: use_smoothing branch", 61 "assertions": [ 62 { 63 "kind": "triangles_self_intersect", 64 "triangles": [ 65 0, 66 2 67 ] 68 } 69 ] 70 } 71}