Me059 — parallel catch-limit: 5 SI pairs; exception caught after atomic counter fires at limit 4

§12.14 mesh defects (sub-class: self-intersection/parallel-catch-limit)

spec-violation

Sources

Description

five crossing pairs along the X-axis (x=0, 10, 20, 30, 40). In the parallel path, Branch 8 is the catch block for `Throw_at_output_exception` thrown by the atomic counter after `maximum_number` pairs accumulate. The catch block copies pairs from the concurrent accumulator to the output iterator and returns. Pair E (x=40) triggers the catch.

Reproducer recipe

five pairs of XY/XZ crossing triangles at x=0, 10, 20, 30, 40 via `_pair(m, ox)` helper.

Expected kernel behavior

parallel catch block copies pairs 1–4; returns before pair E is appended.

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      1.0,
11      0.0
12    ],
13    [
14      1.0,
15      -1.0,
16      0.0
17    ],
18    [
19      1.0,
20      0.0,
21      1.0
22    ],
23    [
24      1.0,
25      0.0,
26      -1.0
27    ],
28    [
29      10.0,
30      0.0,
31      0.0
32    ],
33    [
34      11.0,
35      1.0,
36      0.0
37    ],
38    [
39      11.0,
40      -1.0,
41      0.0
42    ],
43    [
44      11.0,
45      0.0,
46      1.0
47    ],
48    [
49      11.0,
50      0.0,
51      -1.0
52    ],
53    [
54      20.0,
55      0.0,
56      0.0
57    ],
58    [
59      21.0,
60      1.0,
61      0.0
62    ],
63    [
64      21.0,
65      -1.0,
66      0.0
67    ],
68    [
69      21.0,
70      0.0,
71      1.0
72    ],
73    [
74      21.0,
75      0.0,
76      -1.0
77    ],
78    [
79      30.0,
80      0.0,
81      0.0
82    ],
83    [
84      31.0,
85      1.0,
86      0.0
87    ],
88    [
89      31.0,
90      -1.0,
91      0.0
92    ],
93    [
94      31.0,
95      0.0,
96      1.0
97    ],
98    [
99      31.0,
100      0.0,
101      -1.0
102    ],
103    [
104      40.0,
105      0.0,
106      0.0
107    ],
108    [
109      41.0,
110      1.0,
111      0.0
112    ],
113    [
114      41.0,
115      -1.0,
116      0.0
117    ],
118    [
119      41.0,
120      0.0,
121      1.0
122    ],
123    [
124      41.0,
125      0.0,
126      -1.0
127    ]
128  ],
129  "triangles": [
130    [
131      0,
132      1,
133      2
134    ],
135    [
136      0,
137      3,
138      4
139    ],
140    [
141      5,
142      6,
143      7
144    ],
145    [
146      5,
147      8,
148      9
149    ],
150    [
151      10,
152      11,
153      12
154    ],
155    [
156      10,
157      13,
158      14
159    ],
160    [
161      15,
162      16,
163      17
164    ],
165    [
166      15,
167      18,
168      19
169    ],
170    [
171      20,
172      21,
173      22
174    ],
175    [
176      20,
177      23,
178      24
179    ]
180  ],
181  "metadata": {
182    "id": "Me059",
183    "schema_version": 0,
184    "defect_class": "self_intersection_parallel_catch_limit",
185    "title": "Parallel catch-limit: 5 SI pairs; concurrent exception caught at limit 4",
186    "assertions": [
187      {
188        "kind": "triangles_self_intersect",
189        "triangles": [
190          0,
191          1
192        ]
193      },
194      {
195        "kind": "triangles_self_intersect",
196        "triangles": [
197          2,
198          3
199        ]
200      },
201      {
202        "kind": "triangles_self_intersect",
203        "triangles": [
204          4,
205          5
206        ]
207      },
208      {
209        "kind": "triangles_self_intersect",
210        "triangles": [
211          6,
212          7
213        ]
214      },
215      {
216        "kind": "triangles_self_intersect",
217        "triangles": [
218          8,
219          9
220        ]
221      }
222    ]
223  }
224}