mesh-examples/12-14-mesh/Me352.mesh.json
Sources
- MeshFix `Basic_TMesh.CreateTriangle` Branch 3 (*e3_e1_orientation_check*: `e3->commonVertex(e1)==e3->v2 && e3->t1==NULL`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two existing triangles tA=(v0,v1,v3) and tB=(v1,v2,v3) plus a new gap-closing triangle tf=(v0,v3,v2). In tf, e3=(v0,v3) has its head at v3 which is also the junction with e1=(v3,v2). Branch 3 fires: e3->t1 is free, at3=&(e3->t1). After creation edge (v0,v3) is interior (n=2).
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(2,0,0), v3=(1,1,0); tA=(v0,v1,v3), tB=(v1,v2,v3), tf=(v0,v3,v2). Assert edge(v0,v3) n=2, edge(v2,v3) n=2, edge(v0,v2) n=1, others as expected.
Expected kernel behavior
Branch 3 fires; at3 set to &(e3->t1); edge (v0,v3) becomes interior.
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 2.0, 15 0.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 3 29 ], 30 [ 31 1, 32 2, 33 3 34 ], 35 [ 36 0, 37 3, 38 2 39 ] 40 ], 41 "metadata": { 42 "id": "Me352", 43 "schema_version": 0, 44 "defect_class": "create_triangle_orientation_slot", 45 "title": "CreateTriangle_e3_e1_orientation_check: e3->v2==commonVertex(e3,e1), assign e3->t1 (Branch 3)", 46 "assertions": [ 47 { 48 "kind": "edge_shared_by_n_triangles", 49 "edge": [ 50 0, 51 3 52 ], 53 "n": 2 54 }, 55 { 56 "kind": "edge_shared_by_n_triangles", 57 "edge": [ 58 2, 59 3 60 ], 61 "n": 2 62 }, 63 { 64 "kind": "edge_shared_by_n_triangles", 65 "edge": [ 66 0, 67 1 68 ], 69 "n": 1 70 }, 71 { 72 "kind": "edge_shared_by_n_triangles", 73 "edge": [ 74 1, 75 3 76 ], 77 "n": 2 78 }, 79 { 80 "kind": "edge_shared_by_n_triangles", 81 "edge": [ 82 1, 83 2 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}