mesh-examples/12-14-mesh/Me191.mesh.json
Sources
- MeshFix `Basic_TMesh.splitTriangle` Branch 2 (*new_triangle_from_e2_e1*: `nt2 = newTriangle(nv, v2, v1)`)
- `MESH_HEAL_COVERAGE.md`.
Description
After nt1, the second new child triangle nt2 is created from the e1/e2 corner. nt2 uses nv, v1, and v2 — it inherits the e1 outer edge. The ne1 inner edge (nv,v1) is shared between t and nt2; ne3 (nv,v2) between nt1 and nt2.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,2,0), nv=(1,0.7,0); t=(v0,v1,nv), nt1=(nv,v2,v0), nt2=(nv,v1,v2).
Expected kernel behavior
nt2 allocated at line 1920; e1 outer edge re-wired to nt2.
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 1.0, 20 0.7, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 3 29 ], 30 [ 31 3, 32 2, 33 0 34 ], 35 [ 36 3, 37 1, 38 2 39 ] 40 ], 41 "metadata": { 42 "id": "Me191", 43 "schema_version": 0, 44 "defect_class": "split_triangle_interior_vertex", 45 "title": "splitTriangle_new_triangle_from_e2_e1: second child triangle nt2 connects nv to v1-v2 side", 46 "assertions": [ 47 { 48 "kind": "edge_shared_by_n_triangles", 49 "edge": [ 50 1, 51 2 52 ], 53 "n": 1 54 }, 55 { 56 "kind": "edge_shared_by_n_triangles", 57 "edge": [ 58 1, 59 3 60 ], 61 "n": 2 62 }, 63 { 64 "kind": "edge_shared_by_n_triangles", 65 "edge": [ 66 2, 67 3 68 ], 69 "n": 2 70 }, 71 { 72 "kind": "edge_shared_by_n_triangles", 73 "edge": [ 74 2, 75 3 76 ], 77 "n": 2 78 }, 79 { 80 "kind": "edge_shared_by_n_triangles", 81 "edge": [ 82 0, 83 1 84 ], 85 "n": 1 86 }, 87 { 88 "kind": "edge_shared_by_n_triangles", 89 "edge": [ 90 0, 91 2 92 ], 93 "n": 1 94 } 95 ] 96 } 97}