mesh-examples/12-14-mesh/Me021.mesh.json
Sources
- CGAL `PMP.remove_self_intersections` Branch 9 @ line 2196 (*constraint-preservation-mode*)
- `MESH_HEAL_COVERAGE.md`.
Description
triangles 0 and 1 share edge (v1,v2) at a near-180° dihedral (177°) — a sharp feature fold. Triangle 2 is an intruding element that self-intersects triangle 0 by spanning from z=+0.8 to z=-0.5. A smoothing repair that ignores the sharp-edge constraint would flatten the fold (destroying the feature); the constrain_sharp_edges / strong_dihedral_angle branch preserves it.
Reproducer recipe
tri 0 = `(0,0,0),(1,0,0),(1,2,0)` in z=0; tri 1 shares edge `(1,0,0)-(1,2,0)` at 177° dihedral; tri 2 = intruder with apex at z=-0.5 crossing the patch.
Expected kernel behavior
detect sharp feature edge; constrain it during smoothing; resolve SI without collapsing the fold.
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 1.0, 15 2.0, 16 0.0 17 ], 18 [ 19 0.0013704652454261668, 20 1.0, 21 0.05233595624294381 22 ], 23 [ 24 0.5, 25 1.0, 26 0.8 27 ], 28 [ 29 0.5, 30 1.0, 31 -0.5 32 ], 33 [ 34 0.5, 35 0.0, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 1, 47 2, 48 3 49 ], 50 [ 51 4, 52 5, 53 6 54 ] 55 ], 56 "metadata": { 57 "id": "Me021", 58 "schema_version": 0, 59 "defect_class": "self_intersection_sharp_edge", 60 "title": "SI near sharp dihedral feature: constrain_sharp_edges branch", 61 "assertions": [ 62 { 63 "kind": "triangles_self_intersect", 64 "triangles": [ 65 0, 66 2 67 ] 68 }, 69 { 70 "kind": "edge_shared_by_n_triangles", 71 "edge": [ 72 1, 73 2 74 ], 75 "n": 2 76 } 77 ] 78 } 79}