Me402 — detect_identical_mergeable_vertices candidate_group_creation: single coincident pair a2==a5 at (2,0,0); new group created via resize+push_back (Branch 3)

§12.14 mesh defects (sub-class: coincident-boundary-vertex / group-creation)

topology

Sources

Description

Four triangles (fan from a0-a1 hub) with a hexagonal boundary cycle. Exactly one coincident pair: a2 and a5 at (2,0,0). After sort and equality check, candidate_hedges_with_id is resized and the pair {a2,a5} is pushed → Branch 3. No inner while extension (only 2 members, not 3+). Interior edges (a0,a1),(a1,a4),(a1,a3) n=2; six outer boundary edges n=1. Euler: V=6, E=9, F=4, chi=1.

Reproducer recipe

a0=(0,0,0), a1=(1,0,0), a2=(2,0,0), a3=(1.5,1,0), a4=(0.5,1,0), a5=(2,0,0) [=a2]; t0=(a0,a1,a4), t1=(a1,a3,a4), t2=(a1,a2,a3), t3=(a0,a5,a1); interior edges n=2; outer edges n=1; vertex_pair_distance_lt(a2,a5,1e-9); vertex_pair_no_shared_triangle(a2,a5); euler V=6,E=9,F=4,chi=1.

Expected kernel behavior

Branch 3 fires once; candidate_hedges_with_id grows from empty to size 1 (one group of two halfedge indices); no further extension.

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