Me673 — mergeCoincidentEdges EDGE_DUPLICATION_BOUNDARY: two boundary edges (c0,c1) and (d0,d1) at identical coordinates form a stitchable seam; vtxEdgeCompare selects canonical (Branch 4)

§12.14 mesh defects (sub-class: coincident-boundary-vertex / duplicate-boundary-edge)

topology

Sources

Description

Patch A has triangle (c0,c1,c2) with seam edge (c0,c1) n=1. Patch B has triangle (d0,d1,d2) with seam edge (d0,d1) n=1. c0==d0 at (0,0,0) and c1==d1 at (1,0,0) exactly. After vertex canonicalization both seam edges resolve to canonical pair (c0,c1). getEdge(c0,c1) finds pe != NULL (the existing canonical edge), triggering Branch 4. vtxEdgeCompare selects the canonical edge and redirects the duplicate. Euler: V=6, E=6, F=2, chi=2.

Reproducer recipe

c0=(0,0,0), c1=(1,0,0), c2=(0.5,1,0), d0=(0,0,0), d1=(1,0,0), d2=(0.5,-1,0); t0=(c0,c1,c2), t1=(d0,d1,d2); all edges n=1; vertex_pair_distance_lt(c0,d0,1e-9); vertex_pair_distance_lt(c1,d1,1e-9); edge_pair_coincident((c0,c1),(d0,d1)); euler V=6,E=6,F=2,chi=2.

Expected kernel behavior

Branch 4 fires; pe = e->v1->getEdge(e->v2) returns the canonical seam edge; vtxEdgeCompare runs; the duplicate seam edge has its info redirected to pe (canonical).

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      0.5,
15      1.0,
16      0.0
17    ],
18    [
19      0.0,
20      0.0,
21      0.0
22    ],
23    [
24      1.0,
25      0.0,
26      0.0
27    ],
28    [
29      0.5,
30      -1.0,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      2
39    ],
40    [
41      3,
42      4,
43      5
44    ]
45  ],
46  "metadata": {
47    "id": "Me673",
48    "schema_version": 0,
49    "defect_class": "near_coincident_vertex",
50    "title": "mergeCoincidentEdges EDGE_DUPLICATION_BOUNDARY: two boundary edges (c0,c1) and (d0,d1) at identical coordinates form a stitchable seam; vtxEdgeCompare selects canonical (Branch 4)",
51    "assertions": [
52      {
53        "kind": "edge_shared_by_n_triangles",
54        "edge": [
55          0,
56          1
57        ],
58        "n": 1
59      },
60      {
61        "kind": "edge_shared_by_n_triangles",
62        "edge": [
63          1,
64          2
65        ],
66        "n": 1
67      },
68      {
69        "kind": "edge_shared_by_n_triangles",
70        "edge": [
71          0,
72          2
73        ],
74        "n": 1
75      },
76      {
77        "kind": "edge_shared_by_n_triangles",
78        "edge": [
79          3,
80          4
81        ],
82        "n": 1
83      },
84      {
85        "kind": "edge_shared_by_n_triangles",
86        "edge": [
87          4,
88          5
89        ],
90        "n": 1
91      },
92      {
93        "kind": "edge_shared_by_n_triangles",
94        "edge": [
95          3,
96          5
97        ],
98        "n": 1
99      },
100      {
101        "kind": "vertex_pair_distance_lt",
102        "pair": [
103          0,
104          3
105        ],
106        "lt": 1e-09
107      },
108      {
109        "kind": "vertex_pair_no_shared_triangle",
110        "pair": [
111          0,
112          3
113        ]
114      },
115      {
116        "kind": "vertex_pair_distance_lt",
117        "pair": [
118          1,
119          4
120        ],
121        "lt": 1e-09
122      },
123      {
124        "kind": "vertex_pair_no_shared_triangle",
125        "pair": [
126          1,
127          4
128        ]
129      },
130      {
131        "kind": "edge_pair_coincident",
132        "edge_a": [
133          0,
134          1
135        ],
136        "edge_b": [
137          3,
138          4
139        ],
140        "eps": 1e-09
141      },
142      {
143        "kind": "euler_characteristic",
144        "v": 6,
145        "e": 6,
146        "f": 2,
147        "chi": 2
148      }
149    ]
150  }
151}