Me1070 — filter_stitchable_pairs edge-occurrence-limit: two-patch boundary with single coincident-edge pair; count=1 boundary slots confirm manifold safety (Branch 1)

§12.14 mesh defects (sub-class: coincident-boundary-vertex / stitchable-pairs-filter)

topology

Sources

Description

Two separate triangular patches (A and B) with coincident boundary edges. Patch A: v0=(0,0,0), v1=(1,0,0), v2=(0,1,0). Patch B: a0=(2,0,0), a1=(1,0,0), a2=(0,1,0) with a1≡v1 and a2≡v2. After tentative vertex merge v1→a1 and v2→a2, each remaining boundary edge in the merged occurrence map has exactly 1 halfedge → case 1 fires for each such edge, confirming manifold safety. All 6 edges are boundary (n=1). Euler: V=6, E=6, F=2, chi=2.

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(0,1,0); a0=(2,0,0), a1=(1,0,0), a2=(0,1,0); t0=(v0,v1,v2), t1=(a0,a1,a2); all 6 edges n=1; vertex_pair_distance_lt(v1,a1,1e-9), vertex_pair_distance_lt(v2,a2,1e-9); vertex_pair_no_shared_triangle pairs; euler V=6,E=6,F=2,chi=2.

Expected kernel behavior

Branch 1 fires; occurrence-map case 1 accepts each single-halfedge boundary slot as manifold-safe; no vertices added to unstitchable set.

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      3.0,
15      0.0,
16      0.0
17    ],
18    [
19      4.0,
20      0.0,
21      0.0
22    ],
23    [
24      1.0,
25      0.0,
26      0.0
27    ],
28    [
29      3.0,
30      0.0,
31      0.0
32    ],
33    [
34      2.0,
35      2.0,
36      0.0
37    ]
38  ],
39  "triangles": [
40    [
41      6,
42      0,
43      1
44    ],
45    [
46      6,
47      1,
48      2
49    ],
50    [
51      6,
52      2,
53      3
54    ],
55    [
56      6,
57      3,
58      4
59    ],
60    [
61      6,
62      4,
63      5
64    ]
65  ],
66  "metadata": {
67    "id": "Me602",
68    "schema_version": 0,
69    "defect_class": "near_coincident_vertex",
70    "title": "merge_duplicated_vertices_in_boundary_cycle merge_iteration: for-each loop over 2 coincident groups (f1==f4 at (1,0,0) and f2==f5 at (3,0,0)) fires twice (Branch 3)",
71    "assertions": [
72      {
73        "kind": "edge_shared_by_n_triangles",
74        "edge": [
75          1,
76          6
77        ],
78        "n": 2
79      },
80      {
81        "kind": "edge_shared_by_n_triangles",
82        "edge": [
83          2,
84          6
85        ],
86        "n": 2
87      },
88      {
89        "kind": "edge_shared_by_n_triangles",
90        "edge": [
91          3,
92          6
93        ],
94        "n": 2
95      },
96      {
97        "kind": "edge_shared_by_n_triangles",
98        "edge": [
99          4,
100          6
101        ],
102        "n": 2
103      },
104      {
105        "kind": "edge_shared_by_n_triangles",
106        "edge": [
107          0,
108          6
109        ],
110        "n": 1
111      },
112      {
113        "kind": "edge_shared_by_n_triangles",
114        "edge": [
115          0,
116          1
117        ],
118        "n": 1
119      },
120      {
121        "kind": "edge_shared_by_n_triangles",
122        "edge": [
123          1,
124          2
125        ],
126        "n": 1
127      },
128      {
129        "kind": "edge_shared_by_n_triangles",
130        "edge": [
131          2,
132          3
133        ],
134        "n": 1
135      },
136      {
137        "kind": "edge_shared_by_n_triangles",
138        "edge": [
139          3,
140          4
141        ],
142        "n": 1
143      },
144      {
145        "kind": "edge_shared_by_n_triangles",
146        "edge": [
147          4,
148          5
149        ],
150        "n": 1
151      },
152      {
153        "kind": "edge_shared_by_n_triangles",
154        "edge": [
155          5,
156          6
157        ],
158        "n": 1
159      },
160      {
161        "kind": "vertex_pair_distance_lt",
162        "pair": [
163          1,
164          4
165        ],
166        "lt": 1e-09
167      },
168      {
169        "kind": "vertex_pair_distance_lt",
170        "pair": [
171          2,
172          5
173        ],
174        "lt": 1e-09
175      },
176      {
177        "kind": "vertex_pair_no_shared_triangle",
178        "pair": [
179          1,
180          4
181        ]
182      },
183      {
184        "kind": "vertex_pair_no_shared_triangle",
185        "pair": [
186          2,
187          5
188        ]
189      },
190      {
191        "kind": "euler_characteristic",
192        "v": 7,
193        "e": 11,
194        "f": 5,
195        "chi": 1
196      }
197    ]
198  }
199}