mesh-examples/12-14-mesh/Me881.mesh.json
Sources
- MeshFix `checkAndRepair::duplicateNonManifoldVertices` Branch 2 (*NONMANIFOLD_VERTEX_AT_V2*: `if (e->v2->VE()->containsNode(e) == NULL)`)
- `MESH_HEAL_COVERAGE.md`.
Description
Vertex v0 is a bowtie (non-manifold) vertex whose fan splits into a right fan (t0, t1 sharing interior edge (v0,v3)) and a left fan (t2, t3 sharing interior edge (v0,v6)). When the repair loop tests `e->v2->VE()->containsNode(e)` for edges in the left fan where v0 is the second endpoint (v2), the VE list only contains edges from the right fan and containsNode returns NULL — Branch 2 fires, duplicating v0 as v2 and redirecting left-fan edges to the new copy. All four boundary edges at v0 are n=1.
Reproducer recipe
v0=(0,0,0) bowtie; right fan v1=(2,1,0), v2=(2,-1,0), v3=(3,0,0), t0=(v1,v0,v3), t1=(v3,v0,v2); left fan v4=(-2,1,0), v5=(-2,-1,0), v6=(-3,0,0), t2=(v4,v6,v0), t3=(v0,v6,v5); assert_edge_shared(v0,v3,2), (v0,v6,2); boundary (v0,v1),(v0,v2),(v0,v4),(v0,v5) each n=1; assert_vertex_fan_disconnected(v0).
Expected kernel behavior
Branch 2 fires for edges in the left fan whose v2==v0; v0 duplicated as the v2-side copy; redirect incidents; topology updated.
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 1.0, 11 0.0 12 ], 13 [ 14 2.0, 15 -1.0, 16 0.0 17 ], 18 [ 19 3.0, 20 0.0, 21 0.0 22 ], 23 [ 24 -2.0, 25 1.0, 26 0.0 27 ], 28 [ 29 -2.0, 30 -1.0, 31 0.0 32 ], 33 [ 34 -3.0, 35 0.0, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 1, 42 0, 43 3 44 ], 45 [ 46 3, 47 0, 48 2 49 ], 50 [ 51 4, 52 6, 53 0 54 ], 55 [ 56 0, 57 6, 58 5 59 ] 60 ], 61 "metadata": { 62 "id": "Me881", 63 "schema_version": 0, 64 "defect_class": "non_manifold_vertex", 65 "title": "duplicateNonManifoldVertices NONMANIFOLD_VERTEX_AT_V2: bowtie vertex v0 missing from edge VE list as v2 (Branch 2)", 66 "assertions": [ 67 { 68 "kind": "edge_shared_by_n_triangles", 69 "edge": [ 70 0, 71 3 72 ], 73 "n": 2 74 }, 75 { 76 "kind": "edge_shared_by_n_triangles", 77 "edge": [ 78 0, 79 6 80 ], 81 "n": 2 82 }, 83 { 84 "kind": "edge_shared_by_n_triangles", 85 "edge": [ 86 0, 87 1 88 ], 89 "n": 1 90 }, 91 { 92 "kind": "edge_shared_by_n_triangles", 93 "edge": [ 94 0, 95 2 96 ], 97 "n": 1 98 }, 99 { 100 "kind": "edge_shared_by_n_triangles", 101 "edge": [ 102 0, 103 4 104 ], 105 "n": 1 106 }, 107 { 108 "kind": "edge_shared_by_n_triangles", 109 "edge": [ 110 0, 111 5 112 ], 113 "n": 1 114 }, 115 { 116 "kind": "vertex_fan_disconnected", 117 "vertex": 0 118 } 119 ] 120 } 121}