mesh-examples/12-14-mesh/Me956.mesh.json
Sources
- MeshFix `Basic_TMesh.checkGeometry` Branch 7 (*dihedral_angle_180*: `getDAngle(e->t2)==M_PI`)
- `MESH_HEAL_COVERAGE.md`.
Description
Four vertices in the XY plane forming a planar quad. Triangles t0=(v0,v1,v2) and t1=(v2,v1,v3) share interior edge (v1,v2) and both have normal +Z (counter-clockwise winding). The dihedral angle between them is exactly π (180°) — they are coplanar and fold flat in the same direction, meaning they overlap when viewed orthogonally. checkGeometry detects getDAngle(e->t2)==M_PI and returns edge->v1 as the defective vertex immediately. Euler: V=4, E=5, F=2, chi=1 (open disk).
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0,1,0), v3=(1,1,0); t0=(v0,v1,v2), t1=(v2,v1,v3); edge (v1,v2) shared by 2 triangles; both normals +Z → dihedral = PI.
Expected kernel behavior
Branch 7 fires; getDAngle(e->t2)==PI detected; defect logged as 'overlapping triangles detected'; function returns edge->v1 as defect vertex (early return).
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.0, 15 1.0, 16 0.0 17 ], 18 [ 19 1.0, 20 1.0, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 2, 32 1, 33 3 34 ] 35 ], 36 "metadata": { 37 "id": "Me956", 38 "schema_version": 0, 39 "defect_class": "overlapping_triangles", 40 "title": "Basic_TMesh.checkGeometry dihedral_angle_180: adjacent coplanar triangles sharing edge (v1,v2), dihedral = PI (Branch 7)", 41 "assertions": [ 42 { 43 "kind": "edge_shared_by_n_triangles", 44 "edge": [ 45 1, 46 2 47 ], 48 "n": 2 49 }, 50 { 51 "kind": "adjacent_triangles_normal_dot_gt", 52 "triangles": [ 53 0, 54 1 55 ], 56 "threshold": 0.99 57 } 58 ] 59 } 60}