mesh-examples/12-14-mesh/Me165.mesh.json
Sources
- MeshFix `Edge.stitch` Branch 6 (*STITCH_TRIANGLE_MERGER*: `t = (e1->t1 != NULL) ? (e1->t1) : (e1->t2)`)
- `MESH_HEAL_COVERAGE.md`.
Description
Three-triangle strip: Patch A has two connected triangles sharing interior (v1,v2). Patch B is a single isolated triangle with boundary (v4,v5) coincident to (v1,v2). e1's incident triangle is in its t1 slot; Branch 6 selects e1->t1 as the merge target.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(1.5,1,0); t0=(v0,v1,v2), t1=(v1,v3,v2). Patch B: v4=(1,0,0), v5=(0.5,1,0), v6=(2,0.5,0); t2=(v4,v5,v6).
Expected kernel behavior
e1->t1 is non-NULL → t = e1->t1; merge uses t1 slot.
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 0.5, 15 1.0, 16 0.0 17 ], 18 [ 19 1.5, 20 1.0, 21 0.0 22 ], 23 [ 24 1.0, 25 0.0, 26 0.0 27 ], 28 [ 29 0.5, 30 1.0, 31 0.0 32 ], 33 [ 34 2.0, 35 0.5, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 1, 47 3, 48 2 49 ], 50 [ 51 4, 52 5, 53 6 54 ] 55 ], 56 "metadata": { 57 "id": "Me165", 58 "schema_version": 0, 59 "defect_class": "stitch_triangle_merger_t1", 60 "title": "stitch_triangle_merger: candidate stitch edge e1 has incident triangle in t1 slot", 61 "assertions": [ 62 { 63 "kind": "edge_shared_by_n_triangles", 64 "edge": [ 65 1, 66 2 67 ], 68 "n": 2 69 }, 70 { 71 "kind": "edge_shared_by_n_triangles", 72 "edge": [ 73 4, 74 5 75 ], 76 "n": 1 77 }, 78 { 79 "kind": "vertex_pair_distance_lt", 80 "pair": [ 81 1, 82 4 83 ], 84 "lt": 1e-09 85 }, 86 { 87 "kind": "vertex_pair_distance_lt", 88 "pair": [ 89 2, 90 5 91 ], 92 "lt": 1e-09 93 }, 94 { 95 "kind": "edge_shared_by_n_triangles", 96 "edge": [ 97 0, 98 1 99 ], 100 "n": 1 101 }, 102 { 103 "kind": "edge_shared_by_n_triangles", 104 "edge": [ 105 0, 106 2 107 ], 108 "n": 1 109 }, 110 { 111 "kind": "edge_shared_by_n_triangles", 112 "edge": [ 113 1, 114 3 115 ], 116 "n": 1 117 }, 118 { 119 "kind": "edge_shared_by_n_triangles", 120 "edge": [ 121 2, 122 3 123 ], 124 "n": 1 125 }, 126 { 127 "kind": "edge_shared_by_n_triangles", 128 "edge": [ 129 4, 130 6 131 ], 132 "n": 1 133 }, 134 { 135 "kind": "edge_shared_by_n_triangles", 136 "edge": [ 137 5, 138 6 139 ], 140 "n": 1 141 } 142 ] 143 } 144}