Me741 — TriangulateHole_L439_single_vertex_hole: 3-edge boundary loop; nextEdge and prevEdge both boundary; single-vertex hole cannot be triangulated; return 0 (Branch 2)

§12.14 mesh defects (sub-class: hole-filling / single-vertex-hole)

topology

Sources

Description

A single open equilateral triangle t0=(v0,v1,v2) whose all three edges are boundary (n=1). The hole loop v0→v1→v2→v0 has exactly 3 edges, so for seed edge e=(v0,v1): nextEdge(e)=(v1,v2) is boundary and prevEdge(e)=(v2,v0) is boundary. Branch 2 detects this degenerate single-vertex hole and returns 0. A second isolated triangle t1=(v3,v4,v5) provides non-trivial mesh context.

Reproducer recipe

v0=(0,0,0), v1=(2,0,0), v2=(1,1.732,0); t0=(v0,v1,v2); all edges n=1; assert_hole_boundary([v0,v1,v2]).

Expected kernel behavior

Branch 2 fires; for any seed edge e in the 3-edge loop, both nextEdge(e) and prevEdge(e) are boundary; returns 0 without triangulating.

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      2.0,
10      0.0,
11      0.0
12    ],
13    [
14      1.0,
15      1.732,
16      0.0
17    ],
18    [
19      4.0,
20      0.0,
21      0.0
22    ],
23    [
24      6.0,
25      0.0,
26      0.0
27    ],
28    [
29      5.0,
30      1.732,
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": "Me741",
48    "schema_version": 0,
49    "defect_class": "hole_in_hull",
50    "title": "TriangulateHole_L439_single_vertex_hole: 3-edge boundary loop; nextEdge and prevEdge both boundary; single-vertex hole cannot be triangulated; return 0 (Branch 2)",
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": "hole_boundary",
102        "loop": [
103          0,
104          1,
105          2
106        ]
107      }
108    ]
109  }
110}