mesh-examples/12-14-mesh/Me086.mesh.json
Sources
- MeshFix `checkAndRepair::checkConnectivity` Branches 8 (*EDGE_ORIENTATION_MISMATCH_T1*) and 10 (*EDGE_ORIENTATION_MISMATCH_T2*)
- `MESH_HEAL_COVERAGE.md`.
Description
t0=(v0,v1,v2) and t1=(v3,v2,v0) share edge (v0,v2) but their face normals point in opposite directions (+Z and -Z respectively). In a correctly-oriented closed manifold, adjacent faces should have consistent outward normals (dot > 0); here the dot product is negative, indicating a winding flip. MeshFix Branches 8/10 detect this as an inconsistency between an edge's orientation and its t1/t2 triangle normals.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(-0.5,1,0); t0 CCW (+Z normal); t1 CW (-Z normal); shared edge (v0,v2).
Expected kernel behavior
flip winding of one triangle via forceNormalConsistence.
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.5, 20 1.0, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 3, 32 2, 33 0 34 ] 35 ], 36 "metadata": { 37 "id": "Me086", 38 "schema_version": 0, 39 "defect_class": "inconsistent_winding", 40 "title": "connectivity edge orientation mismatch: adjacent triangles t0,t1 have opposite normals along shared edge", 41 "assertions": [ 42 { 43 "kind": "edge_shared_by_n_triangles", 44 "edge": [ 45 0, 46 2 47 ], 48 "n": 2 49 }, 50 { 51 "kind": "adjacent_triangles_inconsistent_winding", 52 "triangles": [ 53 0, 54 1 55 ] 56 } 57 ] 58 } 59}