mesh-examples/12-14-mesh/Me341.mesh.json
Sources
- MeshFix `Basic_TMesh.init` Branch 2 (*VERTEX_COPY_ITERATION*: `FOREACHVVVERTEX((&tin->V), v, n) { newVertex(...)
- v->info = nv
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
A single triangle (v0,v1,v2) plus 2 isolated orphan vertices v3 and v4 not referenced by any triangle. The FOREACHVVVERTEX loop iterates all 5 vertex list entries and creates clone nodes for each — including the 2 orphans. Init faithfully clones the isolated vertices, leaving them orphan in the cloned mesh too.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0); v3=(5,0,0), v4=(0,5,0); t0=(v0,v1,v2); assert_isolated_vertex(3); assert_isolated_vertex(4); all triangle edges n=1.
Expected kernel behavior
Branch 2 fires 5 times; clone mesh inherits both isolated vertices; downstream removeVertices must clean them up.
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 0.0, 11 0.0 12 ], 13 [ 14 0.5, 15 1.0, 16 0.0 17 ], 18 [ 19 5.0, 20 0.0, 21 0.0 22 ], 23 [ 24 0.0, 25 5.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ] 35 ], 36 "metadata": { 37 "id": "Me341", 38 "schema_version": 0, 39 "defect_class": "isolated_vertex", 40 "title": "init_vertex_copy_iteration: 2 isolated vertices in vertex list drive FOREACHVVVERTEX over 5 entries", 41 "assertions": [ 42 { 43 "kind": "isolated_vertex", 44 "vertex": 3 45 }, 46 { 47 "kind": "isolated_vertex", 48 "vertex": 4 49 }, 50 { 51 "kind": "edge_shared_by_n_triangles", 52 "edge": [ 53 0, 54 1 55 ], 56 "n": 1 57 }, 58 { 59 "kind": "edge_shared_by_n_triangles", 60 "edge": [ 61 1, 62 2 63 ], 64 "n": 1 65 }, 66 { 67 "kind": "edge_shared_by_n_triangles", 68 "edge": [ 69 0, 70 2 71 ], 72 "n": 1 73 } 74 ] 75 } 76}