mesh-examples/12-14-mesh/Me137.mesh.json
Sources
- MeshFix `Vertex.removeIfRedundant` Branch 8 (*?*: `if (!exactSameSideOnPlane(...)) { e->swap() ... }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Vertex v2=(3,0,0) is DoubleFlat. The collapse candidate edge (v1,v2) is flanked by t0=(v0,v1,v2) whose opposite vertex v0=(0,2,0) is above the x-axis, and t1=(v1,v2,v3) whose opposite vertex v3=(2,-1,0) is below it. Opposite vertices are on opposite sides of the edge plane; exactSameSideOnPlane returns false and an edge swap is attempted.
Reproducer recipe
v0=(0,2,0), v1=(1,0,0), v2=(3,0,0), v3=(2,-1,0), v4=(5,0,0). t0=(v0,v1,v2), t1=(v1,v2,v3), t2=(v2,v3,v4). Normals of t0 and t1 are antiparallel.
Expected kernel behavior
side check fails; edge swap attempted on collapse candidate.
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 2.0, 6 0.0 7 ], 8 [ 9 1.0, 10 0.0, 11 0.0 12 ], 13 [ 14 3.0, 15 0.0, 16 0.0 17 ], 18 [ 19 2.0, 20 -1.0, 21 0.0 22 ], 23 [ 24 5.0, 25 0.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 1, 37 2, 38 3 39 ], 40 [ 41 2, 42 3, 43 4 44 ] 45 ], 46 "metadata": { 47 "id": "Me137", 48 "schema_version": 0, 49 "defect_class": "redundant_vertex_removal_side_check_swap", 50 "title": "removeIfRedundant_opposite_vertices_side_check: opposite vertices on opposite sides trigger edge swap before collapse", 51 "assertions": [ 52 { 53 "kind": "adjacent_triangles_inconsistent_winding", 54 "triangles": [ 55 0, 56 1 57 ] 58 }, 59 { 60 "kind": "edge_shared_by_n_triangles", 61 "edge": [ 62 1, 63 2 64 ], 65 "n": 2 66 }, 67 { 68 "kind": "edge_shared_by_n_triangles", 69 "edge": [ 70 2, 71 3 72 ], 73 "n": 2 74 }, 75 { 76 "kind": "edge_shared_by_n_triangles", 77 "edge": [ 78 0, 79 1 80 ], 81 "n": 1 82 }, 83 { 84 "kind": "edge_shared_by_n_triangles", 85 "edge": [ 86 2, 87 4 88 ], 89 "n": 1 90 } 91 ] 92 } 93}