Me522 — iterativeEdgeSwaps convergence_iteration: multi-pass swap loop (totits++ < 10) across 6-triangle grid (Branch 3)

§12.14 mesh defects (sub-class: mesh-optimization / iterative-edge-swaps / convergence-loop)

topology

Sources

Description

Seven-vertex, six-triangle 2×2 grid with apex. Interior edges (v1,v3) and (v2,v4) are sub-optimal diagonals (non-Delaunay); swapping them generates new candidate edges in adjacent quads, requiring a second pass. The outer while loop fires at least twice (totits > 1) before the queue drains, exercising the convergence_iteration branch. Four interior edges (n=2); six boundary edges (n=1). Euler: V=7, E=12, F=6, chi=1.

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(2,0,0), v3=(0,1,0), v4=(1,1,0), v5=(2,1,0), v6=(1,2,0); t0=(v0,v1,v3), t1=(v1,v4,v3), t2=(v1,v2,v4), t3=(v2,v5,v4), t4=(v3,v4,v6), t5=(v4,v5,v6); interior edges (v1,v3),(v2,v4),(v3,v4),(v4,v5) n=2; euler V=7,E=12,F=6,chi=1.

Expected kernel behavior

Branch 3 fires at least twice; `totits` increments each pass; swap of (v1,v3) re-queues adjacent edges; second pass needed before convergence.

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      2.0,
15      0.0,
16      0.0
17    ],
18    [
19      0.0,
20      1.0,
21      0.0
22    ],
23    [
24      1.0,
25      1.0,
26      0.0
27    ],
28    [
29      2.0,
30      1.0,
31      0.0
32    ],
33    [
34      1.0,
35      2.0,
36      0.0
37    ]
38  ],
39  "triangles": [
40    [
41      0,
42      1,
43      3
44    ],
45    [
46      1,
47      4,
48      3
49    ],
50    [
51      1,
52      2,
53      4
54    ],
55    [
56      2,
57      5,
58      4
59    ],
60    [
61      3,
62      4,
63      6
64    ],
65    [
66      4,
67      5,
68      6
69    ]
70  ],
71  "metadata": {
72    "id": "Me522",
73    "schema_version": 0,
74    "defect_class": "mesh_optimization",
75    "title": "iterativeEdgeSwaps convergence_iteration: multi-pass swap loop (totits++ < 10) across 6-triangle grid requiring multiple iterations (Branch 3)",
76    "assertions": [
77      {
78        "kind": "edge_shared_by_n_triangles",
79        "edge": [
80          1,
81          3
82        ],
83        "n": 2
84      },
85      {
86        "kind": "edge_shared_by_n_triangles",
87        "edge": [
88          2,
89          4
90        ],
91        "n": 2
92      },
93      {
94        "kind": "edge_shared_by_n_triangles",
95        "edge": [
96          3,
97          4
98        ],
99        "n": 2
100      },
101      {
102        "kind": "edge_shared_by_n_triangles",
103        "edge": [
104          4,
105          5
106        ],
107        "n": 2
108      },
109      {
110        "kind": "edge_shared_by_n_triangles",
111        "edge": [
112          0,
113          1
114        ],
115        "n": 1
116      },
117      {
118        "kind": "edge_shared_by_n_triangles",
119        "edge": [
120          1,
121          2
122        ],
123        "n": 1
124      },
125      {
126        "kind": "edge_shared_by_n_triangles",
127        "edge": [
128          0,
129          3
130        ],
131        "n": 1
132      },
133      {
134        "kind": "edge_shared_by_n_triangles",
135        "edge": [
136          2,
137          5
138        ],
139        "n": 1
140      },
141      {
142        "kind": "edge_shared_by_n_triangles",
143        "edge": [
144          3,
145          6
146        ],
147        "n": 1
148      },
149      {
150        "kind": "edge_shared_by_n_triangles",
151        "edge": [
152          5,
153          6
154        ],
155        "n": 1
156      },
157      {
158        "kind": "euler_characteristic",
159        "v": 7,
160        "e": 12,
161        "f": 6,
162        "chi": 1
163      }
164    ]
165  }
166}