mesh-examples/12-14-mesh/Me504.mesh.json
Sources
- CGAL PMP `PMP.remove_almost_degenerate_faces.face_range` Branch 5 (*Cap triangle*: `if(is_cap_triangle_face(...))` @ line 1005)
- `MESH_HEAL_COVERAGE.md`.
Description
Cap triangle t0=(v0,v1,v2) where v0=(0,0,0), v1=(2,0,0), v2=(1,0.0001,0). The cap vertex v2 is only 0.0001 above the midpoint of base v0-v1. The angle at v2 is arccos(≈-1)≈180°, exceeding the cap threshold (cos(170°)≈-0.985). Area=0.0001, aspect ratio≈20000. Two healthy support triangles complete the patch below.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,0.0001,0), v3=(0,-1,0), v4=(2,-1,0); t0=(v0,v1,v2) cap; t1=(v0,v3,v4), t2=(v0,v4,v1) support; triangle_area_lt(0,0.001); triangle_aspect_ratio_gt(0,1000).
Expected kernel behavior
is_cap_triangle_face fires for t0; face is marked for edge flip.
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 1.0, 15 0.0001, 16 0.0 17 ], 18 [ 19 0.0, 20 -1.0, 21 0.0 22 ], 23 [ 24 2.0, 25 -1.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 3, 38 4 39 ], 40 [ 41 0, 42 4, 43 1 44 ] 45 ], 46 "metadata": { 47 "id": "Me504", 48 "schema_version": 0, 49 "defect_class": "cap_triangle", 50 "title": "remove_almost_degenerate_faces cap_triangle: v2=(1,0.0001,0) almost on base v0-v1; angle at v2 \u2248180\u00b0 triggers is_cap_triangle_face (Branch 5)", 51 "assertions": [ 52 { 53 "kind": "triangle_area_lt", 54 "triangle": 0, 55 "lt": 0.001 56 }, 57 { 58 "kind": "triangle_aspect_ratio_gt", 59 "triangle": 0, 60 "gt": 1000.0 61 } 62 ] 63 } 64}