mesh-examples/12-14-mesh/Me561.mesh.json
Sources
- MeshFix `Basic_TMesh.loopSubdivision` Branch 2 (*selection_constrained_vs_global*: `if(is_selection) { if(!IS_VISITED(t)) continue
- }`) @ line 108
- `MESH_HEAL_COVERAGE.md`.
Description
Five triangles split into a selected patch (t0,t1,t2 — IS_VISITED) and an unselected patch (t3,t4). Bridge edges (v1,v4) and (v3,v4) are interior (n=2) crossing the selection boundary; within each patch, shared edges are also n=2. Only the selected triangles' edge-visits fire the subdivision mark; unselected triangles' edges are skipped by the is_selection branch. Euler: V=6, E=10, F=5, chi=1.
Reproducer recipe
v0–v5 placed in two-group layout; t0=(0,1,2), t1=(1,3,2), t2=(1,3,4) selected; t3=(3,4,5), t4=(1,4,5) unselected; assert_edge_shared(v3,v4,2), assert_edge_shared(v1,v4,2) as bridge edges; euler V=6,E=10,F=5,chi=1.
Expected kernel behavior
Branch 2 fires for t3 and t4 (is_selection=true, IS_VISITED=false → continue); only t0,t1,t2 edges are marked for subdivision; partial-subdivision result is produced.
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 1.5, 16 0.0 17 ], 18 [ 19 3.0, 20 1.5, 21 0.0 22 ], 23 [ 24 4.0, 25 0.0, 26 0.0 27 ], 28 [ 29 5.0, 30 1.5, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 1, 42 3, 43 2 44 ], 45 [ 46 1, 47 3, 48 4 49 ], 50 [ 51 3, 52 4, 53 5 54 ], 55 [ 56 1, 57 4, 58 5 59 ] 60 ], 61 "metadata": { 62 "id": "Me561", 63 "schema_version": 0, 64 "defect_class": "loop_subdivision", 65 "title": "loopSubdivision selection_constrained_vs_global: t0+t1+t2 form selected patch; t3+t4 unselected; bridge edge (v3,v4) n=2 (Branch 2)", 66 "assertions": [ 67 { 68 "kind": "edge_shared_by_n_triangles", 69 "edge": [ 70 3, 71 4 72 ], 73 "n": 2 74 }, 75 { 76 "kind": "edge_shared_by_n_triangles", 77 "edge": [ 78 1, 79 4 80 ], 81 "n": 2 82 }, 83 { 84 "kind": "edge_shared_by_n_triangles", 85 "edge": [ 86 1, 87 2 88 ], 89 "n": 2 90 }, 91 { 92 "kind": "edge_shared_by_n_triangles", 93 "edge": [ 94 1, 95 3 96 ], 97 "n": 2 98 }, 99 { 100 "kind": "edge_shared_by_n_triangles", 101 "edge": [ 102 4, 103 5 104 ], 105 "n": 2 106 }, 107 { 108 "kind": "edge_shared_by_n_triangles", 109 "edge": [ 110 0, 111 1 112 ], 113 "n": 1 114 }, 115 { 116 "kind": "edge_shared_by_n_triangles", 117 "edge": [ 118 0, 119 2 120 ], 121 "n": 1 122 }, 123 { 124 "kind": "edge_shared_by_n_triangles", 125 "edge": [ 126 2, 127 3 128 ], 129 "n": 1 130 }, 131 { 132 "kind": "edge_shared_by_n_triangles", 133 "edge": [ 134 3, 135 5 136 ], 137 "n": 1 138 }, 139 { 140 "kind": "edge_shared_by_n_triangles", 141 "edge": [ 142 1, 143 5 144 ], 145 "n": 1 146 }, 147 { 148 "kind": "euler_characteristic", 149 "v": 6, 150 "e": 10, 151 "f": 5, 152 "chi": 1 153 } 154 ] 155 } 156}