mesh-examples/12-14-mesh/Me136.mesh.json
Sources
- MeshFix `Vertex.removeIfRedundant` Branch 7 (*opposite_vertex_coincidence*: `if (*e1->oppositeVertex(this) == *e2->oppositeVertex(this)) return false`)
- `MESH_HEAL_COVERAGE.md`.
Description
Vertex v2=(2,0,0) is DoubleFlat. Ridge edges e1=(v1,v2) and e2=(v2,v3) both lead to the same 3D position (v1 and v3 are at (1,1,0)). The opposite vertices coincide, meaning collapse would create a degenerate element. Branch 7 detects this and returns false.
Reproducer recipe
v0=(0,0,0), v1=(1,1,0), v2=(2,0,0), v3=(1,1,0) [duplicate of v1 coords], v4=(4,0,0). t0=(v0,v1,v2), t1=(v0,v2,v3), t2=(v2,v1,v4), t3=(v2,v4,v3).
Expected kernel behavior
opposite vertices coincide; removeIfRedundant returns false.
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 1.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 4.0, 25 0.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 2, 38 3 39 ], 40 [ 41 2, 42 1, 43 4 44 ], 45 [ 46 2, 47 4, 48 3 49 ] 50 ], 51 "metadata": { 52 "id": "Me136", 53 "schema_version": 0, 54 "defect_class": "redundant_vertex_removal_opposite_vertex_coincidence", 55 "title": "removeIfRedundant_opposite_vertex_coincidence: DoubleFlat e1 and e2 share coincident opposite vertex, collapse blocked", 56 "assertions": [ 57 { 58 "kind": "vertex_pair_distance_lt", 59 "pair": [ 60 1, 61 3 62 ], 63 "lt": 1e-09 64 }, 65 { 66 "kind": "vertex_on_edge", 67 "vertex": 2, 68 "edge": [ 69 0, 70 4 71 ] 72 }, 73 { 74 "kind": "edge_shared_by_n_triangles", 75 "edge": [ 76 1, 77 2 78 ], 79 "n": 2 80 }, 81 { 82 "kind": "edge_shared_by_n_triangles", 83 "edge": [ 84 2, 85 3 86 ], 87 "n": 2 88 } 89 ] 90 } 91}