Me820 — does_polygon_soup_self_intersect_duplicate_point_presence: coincident v0==v3 at (0,0,0); merge_duplicate_points fires before SI check (Branch 1)

§12.14 mesh defects (sub-class: polygon-soup-self-intersection / duplicate-point-presence)

topology

Sources

Description

Two triangles in a flat XY soup where vertex v3=(0,0,0) is a second copy of v0=(0,0,0) with a distinct index. The merge step collapses v3 to v0 before any SI check — Branch 1 fires whenever the de-duplication does real work. The fixture records the spatial coincidence (distance < 1e-9) and the absence of a shared triangle for the pair, confirming they are identical coordinates but topologically separate entries.

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(0,1,0), v3=(0,0,0) [=v0]; t0=(v0,v1,v2), t1=(v3,v2,v1); assert_vertex_pair_distance_lt(0,3,1e-9); assert_vertex_pair_no_shared_triangle(0,3).

Expected kernel behavior

Branch 1 fires; merge_duplicate_points_in_polygon_soup remaps v3→v0; de-duplicated soup has 3 unique points; SI check proceeds on merged soup.

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.0,
15      1.0,
16      0.0
17    ],
18    [
19      0.0,
20      0.0,
21      0.0
22    ]
23  ],
24  "triangles": [
25    [
26      0,
27      1,
28      2
29    ],
30    [
31      3,
32      2,
33      1
34    ]
35  ],
36  "metadata": {
37    "id": "Me820",
38    "schema_version": 0,
39    "defect_class": "near_coincident_vertex",
40    "title": "does_polygon_soup_self_intersect duplicate_point_presence: v0==v3 at (0,0,0); merge_duplicate_points fires before SI check (Branch 1)",
41    "assertions": [
42      {
43        "kind": "vertex_pair_distance_lt",
44        "pair": [
45          0,
46          3
47        ],
48        "lt": 1e-09
49      },
50      {
51        "kind": "vertex_pair_no_shared_triangle",
52        "pair": [
53          0,
54          3
55        ]
56      }
57    ]
58  }
59}