mesh-examples/12-14-mesh/Me094.mesh.json
Sources
- MeshFix `Edge.collapseOnV1` Branch 8 (*PINCH_DETECT_ON_V2*: tv->getEdge(v1) != NULL for a neighbor tv of v0 other than the collapse apices)
- `MESH_HEAL_COVERAGE.md`.
Description
v0 and v1 are connected by an interior edge (the collapse candidate). Additionally v5 is a neighbor of v0 (via t_left) AND is already connected to v1 (via t_right). Merging v0 into v1 would create two edges between v1 and v5 — a duplicate/pinch edge. MeshFix detects this in the v2-neighbor-loop and returns NULL.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,2,0), v3=(1,-2,0), v5=(2,1,0); t_top=(v0,v1,v2), t_bot=(v0,v3,v1), t_left=(v0,v5,v2), t_right=(v1,v2,v5).
Expected kernel behavior
block the collapse; would create a duplicate (pinch) edge between v1 and v5.
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 2.0, 25 1.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 3, 38 1 39 ], 40 [ 41 0, 42 4, 43 2 44 ], 45 [ 46 1, 47 2, 48 4 49 ] 50 ], 51 "metadata": { 52 "id": "Me094", 53 "schema_version": 0, 54 "defect_class": "edge_collapse_pinch", 55 "title": "edge_collapse_pinch_detect: v0 neighbor already connected to v1, collapse blocked", 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 0, 69 4 70 ], 71 "n": 1 72 }, 73 { 74 "kind": "edge_shared_by_n_triangles", 75 "edge": [ 76 1, 77 4 78 ], 79 "n": 1 80 }, 81 { 82 "kind": "edge_shared_by_n_triangles", 83 "edge": [ 84 0, 85 2 86 ], 87 "n": 2 88 }, 89 { 90 "kind": "edge_shared_by_n_triangles", 91 "edge": [ 92 1, 93 2 94 ], 95 "n": 2 96 } 97 ] 98 } 99}