mesh-examples/12-14-mesh/Me583.mesh.json
Sources
- MeshFix `Basic_TMesh.createSubMeshFromSelection` Branch 4 (*keep_reference*: `if (keep_ref) { v_info = new void*
- *v_info = (*v)->info
- }`) @ line 842
- `MESH_HEAL_COVERAGE.md`.
Description
Three triangles in a closed fan around hub v0 with rim vertices v1, v2, v3. All triangles are IS_VISITED. A seed (t0) is provided; BFS collects all 3 triangles. When keep_ref=true, Branch 4 fires for each vertex: the info pointer from the original mesh vertex is preserved in the sub-mesh vertex's info slot (rather than being cleared). Interior spoke edges (v0,v1),(v0,v2),(v0,v3) all n=2; outer rim edges n=1. Euler: V=4, E=6, F=3, chi=1.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,2,0), v3=(-1,2,0); t0=(v0,v1,v2), t1=(v0,v2,v3), t2=(v0,v3,v1); spoke edges (v0,v1),(v0,v2),(v0,v3) n=2; rim edges (v1,v2),(v2,v3),(v3,v1) n=1; euler V=4,E=6,F=3,chi=1.
Expected kernel behavior
Branch 4 fires for each of the 4 vertices during sub-mesh construction; `v_info = new void*; *v_info = (*v)->info` copies the original mesh's info pointer, preserving external references in the extracted sub-mesh.
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 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 0, 32 2, 33 3 34 ], 35 [ 36 0, 37 3, 38 1 39 ] 40 ], 41 "metadata": { 42 "id": "Me583", 43 "schema_version": 0, 44 "defect_class": "mesh_selection", 45 "title": "createSubMeshFromSelection keep_reference: all triangles visited; seed t0; keep_ref=true preserves info pointers in extracted sub-mesh (Branch 4)", 46 "assertions": [ 47 { 48 "kind": "edge_shared_by_n_triangles", 49 "edge": [ 50 0, 51 1 52 ], 53 "n": 2 54 }, 55 { 56 "kind": "edge_shared_by_n_triangles", 57 "edge": [ 58 0, 59 2 60 ], 61 "n": 2 62 }, 63 { 64 "kind": "edge_shared_by_n_triangles", 65 "edge": [ 66 0, 67 3 68 ], 69 "n": 2 70 }, 71 { 72 "kind": "edge_shared_by_n_triangles", 73 "edge": [ 74 1, 75 2 76 ], 77 "n": 1 78 }, 79 { 80 "kind": "edge_shared_by_n_triangles", 81 "edge": [ 82 2, 83 3 84 ], 85 "n": 1 86 }, 87 { 88 "kind": "edge_shared_by_n_triangles", 89 "edge": [ 90 1, 91 3 92 ], 93 "n": 1 94 }, 95 { 96 "kind": "euler_characteristic", 97 "v": 4, 98 "e": 6, 99 "f": 3, 100 "chi": 1 101 } 102 ] 103 } 104}