Me494 — sanitize_candidates recursive_resanitization: four coincident vertices r0==r1==r2==r3 at (1,0,0); erase triggers recursive sanitize_candidates call (Branch 5)

§12.14 mesh defects (sub-class: coincident-boundary-vertex / sanitize-candidates-recursion)

topology

Sources

Description

Seven triangles (four cell + three bridge) with a boundary cycle containing four distinct vertices r0,r1,r2,r3 all at (1,0,0). Sorted positions i,i+1,i+2,i+3 yield three overlapping groups: A=[i,i+1], B=[i+1,i+2], C=[i+2,i+3]. First pass of sanitize_candidates detects overlap (Branch 4), erases one group, then makes the recursive call → Branch 5 fires. The recursive call sees 2 remaining groups with disjoint intervals and terminates. Top vertices s0=(0,1,0) to s4=(8,1,0); interior edges (s0,s1),(s1,s2),(s0,s2),(s2,s3),(s0,s3),(s3,s4) n=2; nine outer edges n=1. Euler: V=9, E=15, F=7, chi=1.

Reproducer recipe

s0=(0,1,0),s1=(2,1,0),s2=(4,1,0),s3=(6,1,0),s4=(8,1,0); r0=r1=r2=r3=(1,0,0); t0=(s0,r0,s1), t1=(s1,r1,s2), t2=(s2,r2,s3), t3=(s3,r3,s4), t4=(s0,s1,s2), t5=(s0,s2,s3), t6=(s0,s3,s4); vertex_pair_distance_lt and no_shared_triangle for all 6 pairs; euler V=9,E=15,F=7,chi=1.

Expected kernel behavior

Branch 5 fires; erased group triggers recursive sanitize_candidates; second call completes without further erase.

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      1.0,
6      0.0
7    ],
8    [
9      2.0,
10      1.0,
11      0.0
12    ],
13    [
14      4.0,
15      1.0,
16      0.0
17    ],
18    [
19      6.0,
20      1.0,
21      0.0
22    ],
23    [
24      8.0,
25      1.0,
26      0.0
27    ],
28    [
29      1.0,
30      0.0,
31      0.0
32    ],
33    [
34      1.0,
35      0.0,
36      0.0
37    ],
38    [
39      1.0,
40      0.0,
41      0.0
42    ],
43    [
44      1.0,
45      0.0,
46      0.0
47    ]
48  ],
49  "triangles": [
50    [
51      0,
52      5,
53      1
54    ],
55    [
56      1,
57      6,
58      2
59    ],
60    [
61      2,
62      7,
63      3
64    ],
65    [
66      3,
67      8,
68      4
69    ],
70    [
71      0,
72      1,
73      2
74    ],
75    [
76      0,
77      2,
78      3
79    ],
80    [
81      0,
82      3,
83      4
84    ]
85  ],
86  "metadata": {
87    "id": "Me494",
88    "schema_version": 0,
89    "defect_class": "near_coincident_vertex",
90    "title": "sanitize_candidates recursive_resanitization: four coincident vertices r0==r1==r2==r3 at (1,0,0) create 3 overlapping groups; erase triggers recursive sanitize_candidates call (Branch 5)",
91    "assertions": [
92      {
93        "kind": "edge_shared_by_n_triangles",
94        "edge": [
95          0,
96          1
97        ],
98        "n": 2
99      },
100      {
101        "kind": "edge_shared_by_n_triangles",
102        "edge": [
103          1,
104          2
105        ],
106        "n": 2
107      },
108      {
109        "kind": "edge_shared_by_n_triangles",
110        "edge": [
111          0,
112          2
113        ],
114        "n": 2
115      },
116      {
117        "kind": "edge_shared_by_n_triangles",
118        "edge": [
119          2,
120          3
121        ],
122        "n": 2
123      },
124      {
125        "kind": "edge_shared_by_n_triangles",
126        "edge": [
127          0,
128          3
129        ],
130        "n": 2
131      },
132      {
133        "kind": "edge_shared_by_n_triangles",
134        "edge": [
135          3,
136          4
137        ],
138        "n": 2
139      },
140      {
141        "kind": "edge_shared_by_n_triangles",
142        "edge": [
143          0,
144          5
145        ],
146        "n": 1
147      },
148      {
149        "kind": "edge_shared_by_n_triangles",
150        "edge": [
151          1,
152          5
153        ],
154        "n": 1
155      },
156      {
157        "kind": "edge_shared_by_n_triangles",
158        "edge": [
159          1,
160          6
161        ],
162        "n": 1
163      },
164      {
165        "kind": "edge_shared_by_n_triangles",
166        "edge": [
167          2,
168          6
169        ],
170        "n": 1
171      },
172      {
173        "kind": "edge_shared_by_n_triangles",
174        "edge": [
175          2,
176          7
177        ],
178        "n": 1
179      },
180      {
181        "kind": "edge_shared_by_n_triangles",
182        "edge": [
183          3,
184          7
185        ],
186        "n": 1
187      },
188      {
189        "kind": "edge_shared_by_n_triangles",
190        "edge": [
191          3,
192          8
193        ],
194        "n": 1
195      },
196      {
197        "kind": "edge_shared_by_n_triangles",
198        "edge": [
199          4,
200          8
201        ],
202        "n": 1
203      },
204      {
205        "kind": "edge_shared_by_n_triangles",
206        "edge": [
207          0,
208          4
209        ],
210        "n": 1
211      },
212      {
213        "kind": "vertex_pair_distance_lt",
214        "pair": [
215          5,
216          6
217        ],
218        "lt": 1e-09
219      },
220      {
221        "kind": "vertex_pair_distance_lt",
222        "pair": [
223          5,
224          7
225        ],
226        "lt": 1e-09
227      },
228      {
229        "kind": "vertex_pair_distance_lt",
230        "pair": [
231          5,
232          8
233        ],
234        "lt": 1e-09
235      },
236      {
237        "kind": "vertex_pair_distance_lt",
238        "pair": [
239          6,
240          7
241        ],
242        "lt": 1e-09
243      },
244      {
245        "kind": "vertex_pair_distance_lt",
246        "pair": [
247          6,
248          8
249        ],
250        "lt": 1e-09
251      },
252      {
253        "kind": "vertex_pair_distance_lt",
254        "pair": [
255          7,
256          8
257        ],
258        "lt": 1e-09
259      },
260      {
261        "kind": "vertex_pair_no_shared_triangle",
262        "pair": [
263          5,
264          6
265        ]
266      },
267      {
268        "kind": "vertex_pair_no_shared_triangle",
269        "pair": [
270          5,
271          7
272        ]
273      },
274      {
275        "kind": "vertex_pair_no_shared_triangle",
276        "pair": [
277          5,
278          8
279        ]
280      },
281      {
282        "kind": "vertex_pair_no_shared_triangle",
283        "pair": [
284          6,
285          7
286        ]
287      },
288      {
289        "kind": "vertex_pair_no_shared_triangle",
290        "pair": [
291          6,
292          8
293        ]
294      },
295      {
296        "kind": "vertex_pair_no_shared_triangle",
297        "pair": [
298          7,
299          8
300        ]
301      },
302      {
303        "kind": "euler_characteristic",
304        "v": 9,
305        "e": 15,
306        "f": 7,
307        "chi": 1
308      }
309    ]
310  }
311}