Me058 — parallel count-limit: 4 SI pairs; atomic counter fires Throw_functor at limit 3

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

spec-violation

Sources

Description

four crossing pairs along the Z-axis (z=0, 10, 20, 30). In parallel mode with `do_limit`, the output callback is wrapped with a `Throw_functor + atomic_counter`; when any TBB thread causes the counter to reach `maximum_number`, the functor throws. With limit=3, pair D (z=30) triggers the atomic counter.

Reproducer recipe

four pairs of XY/XZ crossing triangles at z=0, 10, 20, 30 via `_pair(m, oz)` helper. Z-axis spread gives distinct AABB boxes.

Expected kernel behavior

parallel atomic counter fires at limit=3; TBB thread hitting pair D throws.

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      0.0,
30      0.0,
31      10.0
32    ],
33    [
34      1.0,
35      1.0,
36      10.0
37    ],
38    [
39      1.0,
40      -1.0,
41      10.0
42    ],
43    [
44      1.0,
45      0.0,
46      11.0
47    ],
48    [
49      1.0,
50      0.0,
51      9.0
52    ],
53    [
54      0.0,
55      0.0,
56      20.0
57    ],
58    [
59      1.0,
60      1.0,
61      20.0
62    ],
63    [
64      1.0,
65      -1.0,
66      20.0
67    ],
68    [
69      1.0,
70      0.0,
71      21.0
72    ],
73    [
74      1.0,
75      0.0,
76      19.0
77    ],
78    [
79      0.0,
80      0.0,
81      30.0
82    ],
83    [
84      1.0,
85      1.0,
86      30.0
87    ],
88    [
89      1.0,
90      -1.0,
91      30.0
92    ],
93    [
94      1.0,
95      0.0,
96      31.0
97    ],
98    [
99      1.0,
100      0.0,
101      29.0
102    ]
103  ],
104  "triangles": [
105    [
106      0,
107      1,
108      2
109    ],
110    [
111      0,
112      3,
113      4
114    ],
115    [
116      5,
117      6,
118      7
119    ],
120    [
121      5,
122      8,
123      9
124    ],
125    [
126      10,
127      11,
128      12
129    ],
130    [
131      10,
132      13,
133      14
134    ],
135    [
136      15,
137      16,
138      17
139    ],
140    [
141      15,
142      18,
143      19
144    ]
145  ],
146  "metadata": {
147    "id": "Me058",
148    "schema_version": 0,
149    "defect_class": "self_intersection_parallel_count_limit",
150    "title": "Parallel count-limit: 4 SI pairs; atomic counter fires at limit 3",
151    "assertions": [
152      {
153        "kind": "triangles_self_intersect",
154        "triangles": [
155          0,
156          1
157        ]
158      },
159      {
160        "kind": "triangles_self_intersect",
161        "triangles": [
162          2,
163          3
164        ]
165      },
166      {
167        "kind": "triangles_self_intersect",
168        "triangles": [
169          4,
170          5
171        ]
172      },
173      {
174        "kind": "triangles_self_intersect",
175        "triangles": [
176          6,
177          7
178        ]
179      }
180    ]
181  }
182}