Me531 — holeFilling::joinBoundaryLoops SAME_BOUNDARY_LOOP_NOJUSTCONNECT: gv and gw on same loop; Branch 2 returns NULL

§12.14 mesh defects (sub-class: hole-filling / same-boundary-loop)

topology

Sources

Description

Hexagonal open disk (6 fan triangles from center, 1 boundary loop). Six perimeter edges (n=1 each); six spoke edges (n=2 each). All 6 perimeter vertices (p0..p5) lie on the same single boundary loop. Picking gv=p0 and gw=p3 (opposite vertices): walking from p0 along the boundary reaches p3 before closing the loop → Branch 2 fires, returns NULL. Euler: V=7, E=12, F=6, chi=1.

Reproducer recipe

c=(0,0,0); p0=(1,0,0)..p5=(0.5,-0.866,0); 6 fan triangles; perimeter edges n=1; spoke edges n=2; assert_hole_boundary([p0,p1,p2,p3,p4,p5]); euler V=7,E=12,F=6,chi=1.

Expected kernel behavior

Branch 2 fires when the boundary walk from gv=p0 reaches gw=p3; v==gw triggers return NULL.

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      0.5,
15      0.866,
16      0.0
17    ],
18    [
19      -0.5,
20      0.866,
21      0.0
22    ],
23    [
24      -1.0,
25      0.0,
26      0.0
27    ],
28    [
29      -0.5,
30      -0.866,
31      0.0
32    ],
33    [
34      0.5,
35      -0.866,
36      0.0
37    ]
38  ],
39  "triangles": [
40    [
41      0,
42      1,
43      2
44    ],
45    [
46      0,
47      2,
48      3
49    ],
50    [
51      0,
52      3,
53      4
54    ],
55    [
56      0,
57      4,
58      5
59    ],
60    [
61      0,
62      5,
63      6
64    ],
65    [
66      0,
67      6,
68      1
69    ]
70  ],
71  "metadata": {
72    "id": "Me531",
73    "schema_version": 0,
74    "defect_class": "joinBoundaryLoops_same_boundary_loop",
75    "title": "joinBoundaryLoops_SAME_BOUNDARY_LOOP_NOJUSTCONNECT: gv and gw on same loop; Branch 2 returns NULL",
76    "assertions": [
77      {
78        "kind": "edge_shared_by_n_triangles",
79        "edge": [
80          1,
81          2
82        ],
83        "n": 1
84      },
85      {
86        "kind": "edge_shared_by_n_triangles",
87        "edge": [
88          2,
89          3
90        ],
91        "n": 1
92      },
93      {
94        "kind": "edge_shared_by_n_triangles",
95        "edge": [
96          3,
97          4
98        ],
99        "n": 1
100      },
101      {
102        "kind": "edge_shared_by_n_triangles",
103        "edge": [
104          4,
105          5
106        ],
107        "n": 1
108      },
109      {
110        "kind": "edge_shared_by_n_triangles",
111        "edge": [
112          5,
113          6
114        ],
115        "n": 1
116      },
117      {
118        "kind": "edge_shared_by_n_triangles",
119        "edge": [
120          1,
121          6
122        ],
123        "n": 1
124      },
125      {
126        "kind": "edge_shared_by_n_triangles",
127        "edge": [
128          0,
129          1
130        ],
131        "n": 2
132      },
133      {
134        "kind": "edge_shared_by_n_triangles",
135        "edge": [
136          0,
137          2
138        ],
139        "n": 2
140      },
141      {
142        "kind": "edge_shared_by_n_triangles",
143        "edge": [
144          0,
145          3
146        ],
147        "n": 2
148      },
149      {
150        "kind": "edge_shared_by_n_triangles",
151        "edge": [
152          0,
153          4
154        ],
155        "n": 2
156      },
157      {
158        "kind": "edge_shared_by_n_triangles",
159        "edge": [
160          0,
161          5
162        ],
163        "n": 2
164      },
165      {
166        "kind": "edge_shared_by_n_triangles",
167        "edge": [
168          0,
169          6
170        ],
171        "n": 2
172      },
173      {
174        "kind": "hole_boundary",
175        "loop": [
176          1,
177          2,
178          3,
179          4,
180          5,
181          6
182        ]
183      },
184      {
185        "kind": "euler_characteristic",
186        "v": 7,
187        "e": 12,
188        "f": 6,
189        "chi": 1
190      }
191    ]
192  }
193}