Me492 — sanitize_candidates inner_group_iteration: three disjoint coincident groups (g1==g4, g2==g5, g3==g6); inner for-loop runs >1 iteration per outer step (Branch 3)

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

topology

Sources

Description

Six-triangle open fan from apex g0=(1.5,2,0); boundary cycle visits g7(0,0,0),g1(1,0,0),g2(2,0,0),g3(3,0,0),g4(1,0,0),g5(2,0,0),g6(3,0,0). Three disjoint coincident groups: Group A (g1==g4 at (1,0,0)), Group B (g2==g5 at (2,0,0)), Group C (g3==g6 at (3,0,0)). Sorted index intervals [i,i+1],[j,j+1],[k,k+1] are pairwise disjoint; all three survive. For fr_id=0 (Group A) the inner loop runs for sr_id=1 (vs B) AND sr_id=2 (vs C) — more than one inner iteration → Branch 3 fires. Interior spokes (g0,g1)...(g0,g5) n=2; eight outer edges n=1. Euler: V=8, E=13, F=6, chi=1.

Reproducer recipe

g7=(0,0,0), g1=(1,0,0), g2=(2,0,0), g3=(3,0,0), g4=(1,0,0)[=g1], g5=(2,0,0)[=g2], g6=(3,0,0)[=g3], g0=(1.5,2,0); t0=(g0,g7,g1)..t5=(g0,g5,g6); 6 triangles (no closing triangle); vertex_pair assertions for all 3 groups; euler V=8,E=13,F=6,chi=1.

Expected kernel behavior

Branch 3 fires; inner loop executes twice for fr_id=0 (sr_id=1 and sr_id=2); all three groups are disjoint and survive.

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      3.0,
20      0.0,
21      0.0
22    ],
23    [
24      1.0,
25      0.0,
26      0.0
27    ],
28    [
29      2.0,
30      0.0,
31      0.0
32    ],
33    [
34      3.0,
35      0.0,
36      0.0
37    ],
38    [
39      1.5,
40      2.0,
41      0.0
42    ]
43  ],
44  "triangles": [
45    [
46      7,
47      0,
48      1
49    ],
50    [
51      7,
52      1,
53      2
54    ],
55    [
56      7,
57      2,
58      3
59    ],
60    [
61      7,
62      3,
63      4
64    ],
65    [
66      7,
67      4,
68      5
69    ],
70    [
71      7,
72      5,
73      6
74    ]
75  ],
76  "metadata": {
77    "id": "Me492",
78    "schema_version": 0,
79    "defect_class": "near_coincident_vertex",
80    "title": "sanitize_candidates inner_group_iteration: three disjoint coincident groups (g1==g4, g2==g5, g3==g6); inner for-loop runs >1 iteration per outer step (Branch 3)",
81    "assertions": [
82      {
83        "kind": "edge_shared_by_n_triangles",
84        "edge": [
85          1,
86          7
87        ],
88        "n": 2
89      },
90      {
91        "kind": "edge_shared_by_n_triangles",
92        "edge": [
93          2,
94          7
95        ],
96        "n": 2
97      },
98      {
99        "kind": "edge_shared_by_n_triangles",
100        "edge": [
101          3,
102          7
103        ],
104        "n": 2
105      },
106      {
107        "kind": "edge_shared_by_n_triangles",
108        "edge": [
109          4,
110          7
111        ],
112        "n": 2
113      },
114      {
115        "kind": "edge_shared_by_n_triangles",
116        "edge": [
117          5,
118          7
119        ],
120        "n": 2
121      },
122      {
123        "kind": "edge_shared_by_n_triangles",
124        "edge": [
125          0,
126          7
127        ],
128        "n": 1
129      },
130      {
131        "kind": "edge_shared_by_n_triangles",
132        "edge": [
133          6,
134          7
135        ],
136        "n": 1
137      },
138      {
139        "kind": "edge_shared_by_n_triangles",
140        "edge": [
141          0,
142          1
143        ],
144        "n": 1
145      },
146      {
147        "kind": "edge_shared_by_n_triangles",
148        "edge": [
149          1,
150          2
151        ],
152        "n": 1
153      },
154      {
155        "kind": "edge_shared_by_n_triangles",
156        "edge": [
157          2,
158          3
159        ],
160        "n": 1
161      },
162      {
163        "kind": "edge_shared_by_n_triangles",
164        "edge": [
165          3,
166          4
167        ],
168        "n": 1
169      },
170      {
171        "kind": "edge_shared_by_n_triangles",
172        "edge": [
173          4,
174          5
175        ],
176        "n": 1
177      },
178      {
179        "kind": "edge_shared_by_n_triangles",
180        "edge": [
181          5,
182          6
183        ],
184        "n": 1
185      },
186      {
187        "kind": "vertex_pair_distance_lt",
188        "pair": [
189          1,
190          4
191        ],
192        "lt": 1e-09
193      },
194      {
195        "kind": "vertex_pair_no_shared_triangle",
196        "pair": [
197          1,
198          4
199        ]
200      },
201      {
202        "kind": "vertex_pair_distance_lt",
203        "pair": [
204          2,
205          5
206        ],
207        "lt": 1e-09
208      },
209      {
210        "kind": "vertex_pair_no_shared_triangle",
211        "pair": [
212          2,
213          5
214        ]
215      },
216      {
217        "kind": "vertex_pair_distance_lt",
218        "pair": [
219          3,
220          6
221        ],
222        "lt": 1e-09
223      },
224      {
225        "kind": "vertex_pair_no_shared_triangle",
226        "pair": [
227          3,
228          6
229        ]
230      },
231      {
232        "kind": "euler_characteristic",
233        "v": 8,
234        "e": 13,
235        "f": 6,
236        "chi": 1
237      }
238    ]
239  }
240}