Me703 — bridgeBoundaries gwe_endpoint_selection: gwe->t1 non-NULL selects gwe->v2 as free endpoint; disjoint boundary edges on separate patches (Branch 4)

§12.14 mesh defects (sub-class: boundary-bridge / gwe-endpoint-selection)

topology

Sources

Description

Two separate quadrilateral patches (top at y=2-3, bottom at y=0-1), each subdivided into two triangles. Patches are completely disconnected. gwe is a boundary edge from the bottom patch with t1 non-NULL → v2 is the free endpoint. Branch 4 fires the true arm (analogous to Branch 3 but for gwe). Interior edges (a0,a2) and (b0,b2) n=2; eight boundary edges n=1. Euler: V=8, E=10, F=4, chi=2.

Reproducer recipe

top: a0=(0,2,0),a1=(1,2,0),a2=(0.5,3,0),a3=(0,3,0); t0=(a0,a1,a2), t1=(a0,a2,a3); bottom: b0=(2,0,0),b1=(3,0,0),b2=(2.5,1,0),b3=(2,1,0); t2=(b0,b1,b2), t3=(b0,b2,b3); interior edges n=2; boundary edges n=1; triangle_not_reachable_from(t2,t0); euler V=8,E=10,F=4,chi=2.

Expected kernel behavior

Branch 4 fires true arm; gwe->t1 is non-NULL so v2=gwe->v2 (the vertex not attached to the triangle on t1 side) is selected as the anchor for the second bridge triangle.

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