Me882 — duplicateNonManifoldVertices NONMANIFOLD_VERTICES_PRESENT: at least one non-manifold vertex found; dv>0 marks topology dirty (Branch 3)

§12.14 mesh defects (sub-class: non-manifold-vertex / topology-dirty)

topology

Sources

Description

Minimal two-triangle bowtie: v0=(0,0,0) is the shared non-manifold vertex, upper fan t0=(v0,v1,v2) and lower fan t1=(v0,v3,v4) share only v0 with no connecting edge. After the repair loop processes all edges, dv is incremented for v0 (at least one non-manifold vertex found), so the post-loop branch `if (dv)` fires: d_boundaries, d_handles, and d_shells are each set to 1, forcing topology recomputation. All four boundary edges at v0 are n=1; the two fans are structurally unreachable from each other.

Reproducer recipe

v0=(0,0,0); v1=(1,1,0), v2=(-1,1,0), t0=(v0,v1,v2); v3=(1,-1,0), v4=(-1,-1,0), t1=(v0,v3,v4); boundary edges (v0,v1),(v0,v2),(v0,v3),(v0,v4) each n=1; no edge (v1,v3) or (v2,v4); assert_vertex_fan_disconnected(v0).

Expected kernel behavior

Branch 3 fires after the repair loop; dv >= 1 so `if (dv)` is true; d_boundaries = d_handles = d_shells = 1; topology counts invalidated for recomputation.

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      -1.0,
15      1.732,
16      0.0
17    ],
18    [
19      -1.0,
20      -1.732,
21      0.0
22    ],
23    [
24      0.0,
25      0.0,
26      -1.0
27    ],
28    [
29      2.0,
30      0.0,
31      -1.0
32    ],
33    [
34      -1.0,
35      1.732,
36      -1.0
37    ],
38    [
39      -1.0,
40      -1.732,
41      -1.0
42    ]
43  ],
44  "triangles": [
45    [
46      0,
47      1,
48      2
49    ],
50    [
51      0,
52      2,
53      3
54    ],
55    [
56      0,
57      3,
58      1
59    ],
60    [
61      4,
62      5,
63      6
64    ],
65    [
66      4,
67      6,
68      7
69    ],
70    [
71      4,
72      7,
73      5
74    ]
75  ],
76  "metadata": {
77    "id": "Me901",
78    "schema_version": 0,
79    "defect_class": "inverted_normal",
80    "title": "orient_triangle_soup_with_reference_triangle_soup closest_face_search: three-sector fan; AABB closest_point_and_primitive returns valid reference face for each query centroid (Branch 2)",
81    "assertions": [
82      {
83        "kind": "edge_shared_by_n_triangles",
84        "edge": [
85          0,
86          1
87        ],
88        "n": 2
89      },
90      {
91        "kind": "edge_shared_by_n_triangles",
92        "edge": [
93          0,
94          2
95        ],
96        "n": 2
97      },
98      {
99        "kind": "edge_shared_by_n_triangles",
100        "edge": [
101          0,
102          3
103        ],
104        "n": 2
105      },
106      {
107        "kind": "edge_shared_by_n_triangles",
108        "edge": [
109          1,
110          2
111        ],
112        "n": 1
113      },
114      {
115        "kind": "edge_shared_by_n_triangles",
116        "edge": [
117          2,
118          3
119        ],
120        "n": 1
121      },
122      {
123        "kind": "edge_shared_by_n_triangles",
124        "edge": [
125          1,
126          3
127        ],
128        "n": 1
129      },
130      {
131        "kind": "euler_characteristic",
132        "v": 4,
133        "e": 6,
134        "f": 3,
135        "chi": 1
136      }
137    ]
138  }
139}