mesh-examples/12-14-mesh/Me134.mesh.json
Sources
- MeshFix `Vertex.removeIfRedundant` Branch 5 (*double_flat_edge_removal*: `if (e1 != NULL) ve->removeNode(e1)`)
- `MESH_HEAL_COVERAGE.md`.
Description
Vertex v2=(2,0,0) is collinear with v0 and v4 on the x-axis (DoubleFlat). Its fan has four triangles, two on each side. The ridge edge e1=(v1,v2) is identified at classification; Branch 5 removes e1 from the candidate set so it won't be chosen as the collapse edge.
Reproducer recipe
v0=(0,0,0), v1=(1,1,0), v2=(2,0,0), v3=(1,-1,0), v4=(4,0,0). t0=(v0,v1,v2), t1=(v0,v2,v3), t2=(v2,v1,v4), t3=(v2,v4,v3).
Expected kernel behavior
e1=(v1,v2) removed from candidate list; collapse continues with remaining edges.
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": "Me134", 53 "schema_version": 0, 54 "defect_class": "redundant_vertex_double_flat_e1_removal", 55 "title": "removeIfRedundant_double_flat_edge_removal: DoubleFlat vertex v2 with e1=(v1,v2) removed from collapse candidates", 56 "assertions": [ 57 { 58 "kind": "vertex_on_edge", 59 "vertex": 2, 60 "edge": [ 61 0, 62 4 63 ] 64 }, 65 { 66 "kind": "edge_shared_by_n_triangles", 67 "edge": [ 68 0, 69 2 70 ], 71 "n": 2 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 "kind": "edge_shared_by_n_triangles", 91 "edge": [ 92 2, 93 4 94 ], 95 "n": 2 96 } 97 ] 98 } 99}