Me264 — range_with_face_set both_on_boundary: near-zero interior edge with both endpoints on mesh border → impossible=true

§12.14 mesh defects (sub-class: degenerate_edge / range-with-face-set)

topology

Sources

Description

An open rectangular strip of 4 triangles. The near-degenerate edge (v0,v1) with v0≈v1 is interior (n=2), but both v0 and v1 are also boundary vertices (each incident on at least one border edge). Collapsing this edge would disconnect the boundary, so Branch 5 marks impossible=true and uses halfedges_around to scan the neighbourhood.

Reproducer recipe

v0=(0,0.5,0), v1=(1e-10,0.5,0), v2-v5 as boundary corners. t0=(v2,v3,v0), t1=(v3,v1,v0), t2=(v0,v1,v4), t3=(v1,v5,v4).

Expected kernel behavior

both endpoints on boundary → impossible=true; edge removal skipped.

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.5,
6      0.0
7    ],
8    [
9      1e-10,
10      0.5,
11      0.0
12    ],
13    [
14      0.0,
15      0.0,
16      0.0
17    ],
18    [
19      1.0,
20      0.0,
21      0.0
22    ],
23    [
24      0.0,
25      1.0,
26      0.0
27    ],
28    [
29      1.0,
30      1.0,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      2,
37      3,
38      0
39    ],
40    [
41      3,
42      1,
43      0
44    ],
45    [
46      0,
47      1,
48      4
49    ],
50    [
51      1,
52      5,
53      4
54    ]
55  ],
56  "metadata": {
57    "id": "Me264",
58    "schema_version": 0,
59    "defect_class": "degenerate_edge",
60    "title": "range_with_face_set both_on_boundary: near-zero interior edge with both endpoints on mesh border \u2192 impossible=true",
61    "assertions": [
62      {
63        "kind": "edge_shared_by_n_triangles",
64        "edge": [
65          0,
66          1
67        ],
68        "n": 2
69      },
70      {
71        "kind": "vertex_pair_distance_lt",
72        "pair": [
73          0,
74          1
75        ],
76        "lt": 1e-09
77      },
78      {
79        "kind": "edge_shared_by_n_triangles",
80        "edge": [
81          0,
82          2
83        ],
84        "n": 1
85      },
86      {
87        "kind": "edge_shared_by_n_triangles",
88        "edge": [
89          1,
90          5
91        ],
92        "n": 1
93      }
94    ]
95  }
96}