Me278 — autorefine_triangle_soup dedup duplicate-point: coincident insertion points → id_map (Branch 9)

§12.14 mesh defects (sub-class: autorefine_dedup_duplicate_point / id-map-collapse)

spec-violation

Sources

Description

Three triangles where t1 and t2 each cross t0 such that both independently contribute the same 3D intersection point (v0=(0,0,0) on t0's boundary). After collection the sorted intersection-point list contains a geometric duplicate. Branch 9 detects adjacent equal entries and maps the second id to the first via id_map, preventing double-insertion.

Reproducer recipe

t0 horizontal panel; t1 and t2 each touch t0's boundary at the same vertex (0,0,0); assert vertex_on_edge(v5, [0,1]); assert vertex_pair_distance_lt([5,8], 1e-12).

Expected kernel behavior

Branch 9 fires; points[indices[i]]==points[indices[i+1]] true for the duplicate; second id redirected to first via id_map; only one refinement point inserted.

Expected validation

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1{
2  "vertices": [
3    [
4      -2.0,
5      0.0,
6      0.0
7    ],
8    [
9      2.0,
10      0.0,
11      0.0
12    ],
13    [
14      0.0,
15      2.0,
16      0.0
17    ],
18    [
19      -1.0,
20      0.0,
21      -1.0
22    ],
23    [
24      -1.0,
25      0.0,
26      1.0
27    ],
28    [
29      0.0,
30      0.0,
31      0.0
32    ],
33    [
34      0.5,
35      1.0,
36      1.0
37    ],
38    [
39      0.5,
40      1.0,
41      -1.0
42    ],
43    [
44      0.0,
45      0.0,
46      0.0
47    ]
48  ],
49  "triangles": [
50    [
51      0,
52      1,
53      2
54    ],
55    [
56      3,
57      4,
58      5
59    ],
60    [
61      6,
62      7,
63      8
64    ]
65  ],
66  "metadata": {
67    "id": "Me278",
68    "schema_version": 0,
69    "defect_class": "autorefine_dedup_duplicate_point",
70    "title": "autorefine_triangle_soup dedup duplicate-point: coincident insertion points \u2192 id_map",
71    "assertions": [
72      {
73        "kind": "triangles_self_intersect",
74        "triangles": [
75          0,
76          1
77        ]
78      },
79      {
80        "kind": "triangles_self_intersect",
81        "triangles": [
82          0,
83          2
84        ]
85      },
86      {
87        "kind": "vertex_pair_distance_lt",
88        "pair": [
89          5,
90          8
91        ],
92        "lt": 1e-12
93      },
94      {
95        "kind": "vertex_on_edge",
96        "vertex": 5,
97        "edge": [
98          0,
99          1
100        ]
101      }
102    ]
103  }
104}