Me890 — merge_duplicated_vertices_in_boundary_cycles boundary_cycle_discovery: open mesh; extract_boundary_cycles finds 1 boundary cycle; coincident v1==v3 at (2,0,0) (Branch 1)

§12.14 mesh defects (sub-class: coincident-boundary-vertex / multi-cycle-dispatch)

topology

Sources

Description

Four triangles forming an open diamond-shaped disk with one boundary cycle. Boundary vertices v1 (index 1) and v3 (index 3) both sit at (2.0, 0.0, 0.0) but are topologically distinct. The multi-cycle dispatcher calls extract_boundary_cycles, which populates the cycles vector with one representative halfedge → Branch 1 fires. Interior edges (v0,v2), (v2,v4), (v2,v5) are n=2; six outer boundary edges are n=1. Euler: V=6, E=9, F=4, chi=1.

Reproducer recipe

v0=(0,0,0), v1=(2,0,0), v2=(1,1,0), v3=(2,0,0) [=v1], v4=(3,1,0), v5=(2,2,0); t0=(v0,v1,v2), t1=(v2,v3,v4), t2=(v0,v2,v5), t3=(v2,v4,v5); interior edges n=2; boundary edges n=1; vertex_pair_distance_lt(v1,v3,1e-9); vertex_pair_no_shared_triangle(v1,v3); euler V=6,E=9,F=4,chi=1.

Expected kernel behavior

Branch 1 fires; extract_boundary_cycles traverses the single open boundary loop and inserts one halfedge representative into cycles; cycles.size()==1 before the for-loop executes.

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.0,
16      0.0
17    ],
18    [
19      2.0,
20      0.0,
21      0.0
22    ],
23    [
24      3.0,
25      1.0,
26      0.0
27    ],
28    [
29      2.0,
30      2.0,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      2
39    ],
40    [
41      2,
42      3,
43      4
44    ],
45    [
46      0,
47      2,
48      5
49    ],
50    [
51      2,
52      4,
53      5
54    ]
55  ],
56  "metadata": {
57    "id": "Me890",
58    "schema_version": 0,
59    "defect_class": "near_coincident_vertex",
60    "title": "merge_duplicated_vertices_in_boundary_cycles boundary_cycle_discovery: open mesh; extract_boundary_cycles finds 1 boundary cycle; coincident v1==v3 at (2,0,0) (Branch 1)",
61    "assertions": [
62      {
63        "kind": "edge_shared_by_n_triangles",
64        "edge": [
65          0,
66          2
67        ],
68        "n": 2
69      },
70      {
71        "kind": "edge_shared_by_n_triangles",
72        "edge": [
73          2,
74          4
75        ],
76        "n": 2
77      },
78      {
79        "kind": "edge_shared_by_n_triangles",
80        "edge": [
81          2,
82          5
83        ],
84        "n": 2
85      },
86      {
87        "kind": "edge_shared_by_n_triangles",
88        "edge": [
89          0,
90          1
91        ],
92        "n": 1
93      },
94      {
95        "kind": "edge_shared_by_n_triangles",
96        "edge": [
97          1,
98          2
99        ],
100        "n": 1
101      },
102      {
103        "kind": "edge_shared_by_n_triangles",
104        "edge": [
105          3,
106          4
107        ],
108        "n": 1
109      },
110      {
111        "kind": "edge_shared_by_n_triangles",
112        "edge": [
113          2,
114          3
115        ],
116        "n": 1
117      },
118      {
119        "kind": "edge_shared_by_n_triangles",
120        "edge": [
121          4,
122          5
123        ],
124        "n": 1
125      },
126      {
127        "kind": "edge_shared_by_n_triangles",
128        "edge": [
129          0,
130          5
131        ],
132        "n": 1
133      },
134      {
135        "kind": "vertex_pair_distance_lt",
136        "pair": [
137          1,
138          3
139        ],
140        "lt": 1e-09
141      },
142      {
143        "kind": "vertex_pair_no_shared_triangle",
144        "pair": [
145          1,
146          3
147        ]
148      },
149      {
150        "kind": "euler_characteristic",
151        "v": 6,
152        "e": 9,
153        "f": 4,
154        "chi": 1
155      }
156    ]
157  }
158}