mesh-examples/12-14-mesh/Me301.mesh.json
Sources
- MeshFix `Basic_TMesh.retriangulateSelectedRegion` Branch 2 (*normal_orientation_conflict*: `u->getNormal()*nor <= 0.0`)
- `MESH_HEAL_COVERAGE.md`.
Description
Selected region has two triangles with conflicting normals. t0=(v0,v1,v2) is CCW (+Z normal); t1=(v2,v3,v1) is CW (-Z normal). When the algorithm accumulates the region normal from t0, then checks t1, the dot product is negative — the geometry is too complex for Delaunay retriangulation. Adjacent triangles share edge (v1,v2) with n=2.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,2,0), v3=(3,2,0); t0=(v0,v1,v2) CCW; t1=(v2,v3,v1) CW; assert edge (v1,v2) n=2; assert adjacent_triangles_inconsistent_winding.
Expected kernel behavior
Branch 2 fires; warn 'Selected region is too complex for retriangulation'; returns without re-triangulating.
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 2.0, 16 0.0 17 ], 18 [ 19 3.0, 20 2.0, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 2, 32 3, 33 1 34 ] 35 ], 36 "metadata": { 37 "id": "Me301", 38 "schema_version": 0, 39 "defect_class": "retriangulate_region_orientation_conflict", 40 "title": "retriangulateSelectedRegion_normal_orientation_conflict: region normals conflict, abort (Branch 2)", 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_inconsistent_winding", 52 "triangles": [ 53 0, 54 1 55 ] 56 } 57 ] 58 } 59}