Me840 — duplicate_non_manifold_vertices halfedge-visitation-tracking: bowtie hub visited_halfedges.insert skips already-processed halfedge ring (Branch 1)

§12.14 mesh defects (sub-class: non-manifold-vertex / halfedge-visitation-tracking)

topology

Sources

Description

Bowtie hub vertex 0 shared by two disconnected triangle fans (Fan A: t0,t1 in z=0 right sector; Fan B: t2,t3 in z=0 left sector). Each fan has one interior edge (hub,a1) and (hub,b1) respectively; fans share only hub. When CGAL iterates halfedges around hub, Fan A's halfedges are inserted into visited_halfedges; on re-encounter during Fan B's traversal, Branch 1 fires and skips already-processed halfedges to prevent double-duplication. Euler: V=7, E=10, F=4, chi=1.

Reproducer recipe

hub=(0,0,0); a0=(2,0,0),a1=(2,1,0),a2=(1,2,0); b0=(-2,0,0),b1=(-2,1,0),b2=(-1,2,0); t0=(hub,a0,a1),t1=(hub,a1,a2),t2=(hub,b0,b1),t3=(hub,b1,b2); assert_edge_shared(hub,a1,2); assert_edge_shared(hub,b1,2); all boundary edges n=1; assert_vertex_fan_disconnected(hub); euler V=7,E=10,F=4,chi=1.

Expected kernel behavior

Branch 1 fires; visited_halfedges.insert records Fan A halfedges; when same halfedges encountered in second traversal pass, insert finds them present and processing is skipped.

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      2.0,
10      0.0,
11      0.0
12    ],
13    [
14      2.0,
15      1.0,
16      0.0
17    ],
18    [
19      1.0,
20      2.0,
21      0.0
22    ],
23    [
24      -2.0,
25      0.0,
26      0.0
27    ],
28    [
29      -2.0,
30      1.0,
31      0.0
32    ],
33    [
34      -1.0,
35      2.0,
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      4,
53      5
54    ],
55    [
56      0,
57      5,
58      6
59    ]
60  ],
61  "metadata": {
62    "id": "Me840",
63    "schema_version": 0,
64    "defect_class": "non_manifold_vertex",
65    "title": "duplicate_non_manifold_vertices halfedge-visitation-tracking: bowtie hub visited_halfedges.insert skips already-processed halfedge ring (Branch 1)",
66    "assertions": [
67      {
68        "kind": "edge_shared_by_n_triangles",
69        "edge": [
70          0,
71          2
72        ],
73        "n": 2
74      },
75      {
76        "kind": "edge_shared_by_n_triangles",
77        "edge": [
78          0,
79          5
80        ],
81        "n": 2
82      },
83      {
84        "kind": "edge_shared_by_n_triangles",
85        "edge": [
86          0,
87          1
88        ],
89        "n": 1
90      },
91      {
92        "kind": "edge_shared_by_n_triangles",
93        "edge": [
94          1,
95          2
96        ],
97        "n": 1
98      },
99      {
100        "kind": "edge_shared_by_n_triangles",
101        "edge": [
102          2,
103          3
104        ],
105        "n": 1
106      },
107      {
108        "kind": "edge_shared_by_n_triangles",
109        "edge": [
110          0,
111          3
112        ],
113        "n": 1
114      },
115      {
116        "kind": "edge_shared_by_n_triangles",
117        "edge": [
118          0,
119          4
120        ],
121        "n": 1
122      },
123      {
124        "kind": "edge_shared_by_n_triangles",
125        "edge": [
126          4,
127          5
128        ],
129        "n": 1
130      },
131      {
132        "kind": "edge_shared_by_n_triangles",
133        "edge": [
134          5,
135          6
136        ],
137        "n": 1
138      },
139      {
140        "kind": "edge_shared_by_n_triangles",
141        "edge": [
142          0,
143          6
144        ],
145        "n": 1
146      },
147      {
148        "kind": "vertex_fan_disconnected",
149        "vertex": 0
150      },
151      {
152        "kind": "euler_characteristic",
153        "v": 7,
154        "e": 10,
155        "f": 4,
156        "chi": 1
157      }
158    ]
159  }
160}