mesh-examples/12-14-mesh/Me960.mesh.json
Sources
- MeshFix `Basic_TMesh.CreateUnorientedTriangle` Branch 1 (*e1_slot_check*: `if (e1->t1 == NULL) at1 = &(e1->t1)
- else if (e1->t2 == NULL) at1 = &(e1->t2)`)
- `MESH_HEAL_COVERAGE.md`.
Description
Three triangles sharing edges that exercise both the primary (t1 NULL) and else-if (t2 NULL) paths of Branch 1 for e1. t0=(v0,v1,v2) and t1=(v1,v3,v2) fill both slots of edge (v1,v2); tf=(v0,v2,v3) uses a fresh e1=(v0,v2) via the primary path. Unlike CreateTriangle no orientation commonVertex test is performed — slot assignment depends solely on availability.
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(v1,v2) n=2, edge(v0,v2) n=2, edge(v2,v3) n=2, boundary edges n=1.
Expected kernel behavior
Branch 1 fires for each creation; t1 path used when slot free, t2 path used when t1 occupied; no orientation gating.
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": "Me960", 43 "schema_version": 0, 44 "defect_class": "create_unoriented_triangle_slot", 45 "title": "CreateUnorientedTriangle_e1_slot_check: find e1's first free t-slot (t1 or t2) without orientation (Branch 1)", 46 "assertions": [ 47 { 48 "kind": "edge_shared_by_n_triangles", 49 "edge": [ 50 1, 51 2 52 ], 53 "n": 2 54 }, 55 { 56 "kind": "edge_shared_by_n_triangles", 57 "edge": [ 58 0, 59 2 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 0, 75 1 76 ], 77 "n": 1 78 }, 79 { 80 "kind": "edge_shared_by_n_triangles", 81 "edge": [ 82 0, 83 3 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}