mesh-examples/12-14-mesh/Me533.mesh.json
Sources
- MeshFix `holeFilling::joinBoundaryLoops` Branch 4 (*BOUNDARY_LOOP_LENGTH_ACCUMULATION*: `tl1 += e->length()
- tl2 += e->length()
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Triangular annulus (6 triangles) with two distinct closed boundary loops. Inner triangle hole (i0,i1,i2) — 3 boundary edges, short perimeter. Outer triangle (o0,o1,o2) — 3 boundary edges, longer perimeter. Six interior bridge edges (n=2). Branch 4 fires during perimeter measurement: the algorithm walks each boundary loop summing edge lengths (tl1 for inner, tl2 for outer) before bridging. Two hole_boundary assertions confirm the two-loop topology.
Reproducer recipe
i0=(0,0,0), i1=(1,0,0), i2=(0.5,0.87,0); o0=(-0.5,-0.87,0), o1=(1.5,-0.87,0), o2=(0.5,1.73,0); 6 annulus triangles; inner edges n=1; outer edges n=1; bridge edges n=2; assert_hole_boundary([i0,i1,i2]); assert_hole_boundary([o0,o2,o1]).
Expected kernel behavior
Branch 4 fires for each edge in both loops; tl1 accumulates inner perimeter (~2.7 units), tl2 accumulates outer perimeter (~5.2 units) before triangulation begins.
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 0.87, 16 0.0 17 ], 18 [ 19 -0.5, 20 -0.87, 21 0.0 22 ], 23 [ 24 1.5, 25 -0.87, 26 0.0 27 ], 28 [ 29 0.5, 30 1.73, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 3, 37 0, 38 1 39 ], 40 [ 41 3, 42 1, 43 4 44 ], 45 [ 46 4, 47 1, 48 2 49 ], 50 [ 51 4, 52 2, 53 5 54 ], 55 [ 56 5, 57 2, 58 0 59 ], 60 [ 61 5, 62 0, 63 3 64 ] 65 ], 66 "metadata": { 67 "id": "Me533", 68 "schema_version": 0, 69 "defect_class": "joinBoundaryLoops_boundary_loop_length_accumulation", 70 "title": "joinBoundaryLoops_BOUNDARY_LOOP_LENGTH_ACCUMULATION: two-loop annulus; perimeters tl1+tl2 accumulated before bridging (Branch 4)", 71 "assertions": [ 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 0, 76 1 77 ], 78 "n": 1 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 1, 84 2 85 ], 86 "n": 1 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 0, 92 2 93 ], 94 "n": 1 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 3, 100 4 101 ], 102 "n": 1 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 4, 108 5 109 ], 110 "n": 1 111 }, 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 3, 116 5 117 ], 118 "n": 1 119 }, 120 { 121 "kind": "edge_shared_by_n_triangles", 122 "edge": [ 123 0, 124 3 125 ], 126 "n": 2 127 }, 128 { 129 "kind": "edge_shared_by_n_triangles", 130 "edge": [ 131 1, 132 3 133 ], 134 "n": 2 135 }, 136 { 137 "kind": "edge_shared_by_n_triangles", 138 "edge": [ 139 1, 140 4 141 ], 142 "n": 2 143 }, 144 { 145 "kind": "edge_shared_by_n_triangles", 146 "edge": [ 147 2, 148 4 149 ], 150 "n": 2 151 }, 152 { 153 "kind": "edge_shared_by_n_triangles", 154 "edge": [ 155 2, 156 5 157 ], 158 "n": 2 159 }, 160 { 161 "kind": "edge_shared_by_n_triangles", 162 "edge": [ 163 0, 164 5 165 ], 166 "n": 2 167 }, 168 { 169 "kind": "hole_boundary", 170 "loop": [ 171 0, 172 1, 173 2 174 ] 175 }, 176 { 177 "kind": "hole_boundary", 178 "loop": [ 179 3, 180 5, 181 4 182 ] 183 } 184 ] 185 } 186}