mesh-examples/12-14-mesh/Me350.mesh.json
Sources
- MeshFix `Basic_TMesh.CreateTriangle` Branch 1 (*e1_e2_orientation_check*: `e1->commonVertex(e2)==e1->v2 && e1->t1==NULL`)
- `MESH_HEAL_COVERAGE.md`.
Description
Four vertices forming two existing triangles plus a fill triangle. The fill triangle tf=(v0,v2,v3) is created by CreateTriangle with e1=(v0,v2). Edge e1's head (v2) is the junction with e2=(v2,v3), and e1->t1 is free, so Branch 1 sets at1=&(e1->t1). After creation edge (v0,v2) is interior (n=2), confirming the t1 slot was assigned.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,2,0), v3=(3,2,0); t0=(v0,v1,v2), t1=(v1,v3,v2); tf=(v0,v2,v3). Assert edge(v0,v2) n=2, edge(v1,v2) n=2, edge(v2,v3) n=2, boundary edges n=1.
Expected kernel behavior
Branch 1 fires; at1 set to &(e1->t1); edge (v0,v2) becomes interior after CreateTriangle completes.
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 1, 32 3, 33 2 34 ], 35 [ 36 0, 37 2, 38 3 39 ] 40 ], 41 "metadata": { 42 "id": "Me350", 43 "schema_version": 0, 44 "defect_class": "create_triangle_orientation_slot", 45 "title": "CreateTriangle_e1_e2_orientation_check: e1->v2==commonVertex(e1,e2), assign e1->t1 (Branch 1)", 46 "assertions": [ 47 { 48 "kind": "edge_shared_by_n_triangles", 49 "edge": [ 50 0, 51 2 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 3 68 ], 69 "n": 1 70 }, 71 { 72 "kind": "edge_shared_by_n_triangles", 73 "edge": [ 74 1, 75 2 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 1, 91 3 92 ], 93 "n": 1 94 } 95 ] 96 } 97}