Me943 — orient_polygon_soup vertex_duplication: bowtie at v0; orienter.duplicate_singular_vertices() splits v0 into 2 copies (Branch 4)

§12.14 mesh defects (sub-class: non-manifold-vertex / polygon-soup-orientation)

topology

Sources

Description

Two triangles sharing only vertex v0=(0,0,0) — a classic bowtie. t0=(v0,v1,v2) forms the upper fan; t1=(v0,v3,v4) forms the lower fan. v0's incident triangles split into two disconnected groups with no shared edge at v0. duplicate_singular_vertices() detects this singular vertex and inserts a new copy of v0's coordinate into the points array (one copy per fan), incrementing points.size() by 1. The manifoldness_check will then return false. Euler before duplication: V=5, E=4 (all boundary), F=2.

Reproducer recipe

v0=(0,0,0) bowtie hub; v1=(1,1,0), v2=(-1,1,0) upper fan; v3=(1,-1,0), v4=(-1,-1,0) lower fan; t0=(v0,v1,v2), t1=(v0,v3,v4); assert_vertex_fan_disconnected(v0); four hub boundary edges n=1 each.

Expected kernel behavior

Branch 4 fires; duplicate_singular_vertices() adds 1 new point at (0,0,0); lower fan's polygon is updated to reference the new index. orient_polygon_soup returns false (points grew).

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      1.0,
11      0.0
12    ],
13    [
14      -1.0,
15      1.0,
16      0.0
17    ],
18    [
19      1.0,
20      -1.0,
21      0.0
22    ],
23    [
24      -1.0,
25      -1.0,
26      0.0
27    ]
28  ],
29  "triangles": [
30    [
31      0,
32      1,
33      2
34    ],
35    [
36      0,
37      3,
38      4
39    ]
40  ],
41  "metadata": {
42    "id": "Me943",
43    "schema_version": 0,
44    "defect_class": "non_manifold_vertex",
45    "title": "orient_polygon_soup vertex_duplication: bowtie at v0; orienter.duplicate_singular_vertices() splits v0 into 2 copies (Branch 4)",
46    "assertions": [
47      {
48        "kind": "vertex_fan_disconnected",
49        "vertex": 0
50      },
51      {
52        "kind": "edge_shared_by_n_triangles",
53        "edge": [
54          0,
55          1
56        ],
57        "n": 1
58      },
59      {
60        "kind": "edge_shared_by_n_triangles",
61        "edge": [
62          0,
63          2
64        ],
65        "n": 1
66      },
67      {
68        "kind": "edge_shared_by_n_triangles",
69        "edge": [
70          0,
71          3
72        ],
73        "n": 1
74      },
75      {
76        "kind": "edge_shared_by_n_triangles",
77        "edge": [
78          0,
79          4
80        ],
81        "n": 1
82      }
83    ]
84  }
85}