mesh-examples/12-14-mesh/Me092.mesh.json
Sources
- MeshFix `Edge.collapseOnV1` Branch 5 (*DEGENERATE_DOUBLE_TRIANGLE_T2*: ta3 and ta4 share same opposite vertex)
- `MESH_HEAL_COVERAGE.md`.
Description
edge (v0, v1) is interior (shared by 2 triangles: t1 above, t2 below). The t2 side has two neighbors (ta3 and ta4) that both point to the same opposite vertex v_mid. Collapsing v0 onto v1 would make ta3 and ta4 become identical, a degenerate duplicate on the t2 side. Symmetric counterpart to Me091 (Branch 4).
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v_top=(1,2,0), v_bot=(1,-2,0), v_mid=(3,-1,0); t0=(v0,v_top,v1), t1=(v0,v1,v_bot), ta3=(v1,v_mid,v_bot), ta4=(v_bot,v_mid,v0).
Expected kernel behavior
block the collapse; merging would produce a duplicate face on the t2 side.
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 -2.0, 21 0.0 22 ], 23 [ 24 3.0, 25 -1.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 2, 33 1 34 ], 35 [ 36 0, 37 1, 38 3 39 ], 40 [ 41 1, 42 4, 43 3 44 ], 45 [ 46 3, 47 4, 48 0 49 ] 50 ], 51 "metadata": { 52 "id": "Me092", 53 "schema_version": 0, 54 "defect_class": "edge_collapse_would_duplicate", 55 "title": "edge_collapse_degenerate_t2_side: collapsing edge creates duplicate triangle on t2 side", 56 "assertions": [ 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 0, 61 1 62 ], 63 "n": 2 64 }, 65 { 66 "kind": "edge_shared_by_n_triangles", 67 "edge": [ 68 1, 69 3 70 ], 71 "n": 2 72 }, 73 { 74 "kind": "edge_shared_by_n_triangles", 75 "edge": [ 76 0, 77 3 78 ], 79 "n": 2 80 }, 81 { 82 "kind": "edge_shared_by_n_triangles", 83 "edge": [ 84 1, 85 4 86 ], 87 "n": 1 88 }, 89 { 90 "kind": "edge_shared_by_n_triangles", 91 "edge": [ 92 0, 93 4 94 ], 95 "n": 1 96 }, 97 { 98 "kind": "vertex_pair_distance_lt", 99 "pair": [ 100 0, 101 1 102 ], 103 "lt": 3.0 104 } 105 ] 106 } 107}