Me742 — TriangulateHole_L439_angle_computation_failure: 4-vertex collinear hole boundary; interior angles at h1,h2 are 180 deg; gang stays DBL_MAX; return 0 (Branch 3)

§12.14 mesh defects (sub-class: hole-filling / degenerate-collinear-hole)

topology

Sources

Description

Four collinear hole-boundary vertices h0=(0,0,0), h1=(1,0,0), h2=(2,0,0), h3=(3,0,0) all on the X-axis form a closed loop h0→h1→h2→h3→h0. A top fan (3 triangles sharing apex fa=(1.5,2,0)) and one bottom bridge triangle (apex fb=(1.5,-1,0)) frame the hole. The internal angles at h1 and h2 are 180° (collinear), so no valid triangulation vertex exists. gang stays at DBL_MAX → Branch 3 fires, vertices are unmarked, created triangles unlinked, and 0 is returned.

Reproducer recipe

h0=(0,0,0), h1=(1,0,0), h2=(2,0,0), h3=(3,0,0), fa=(1.5,2,0), fb=(1.5,-1,0); top fan t0=(h0,h1,fa), t1=(h1,h2,fa), t2=(h2,h3,fa); bridge t3=(h3,h0,fb); interior (h1,fa) and (h2,fa) n=2; hole loop boundary edges n=1; assert_hole_boundary([h0,h1,h2,h3]); euler V=6,E=10,F=4,chi=0.

Expected kernel behavior

Branch 3 fires; gang==DBL_MAX; hole vertices unmarked; newly linked triangles unlinked; function returns 0.

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      2.0,
15      0.0,
16      0.0
17    ],
18    [
19      3.0,
20      0.0,
21      0.0
22    ],
23    [
24      1.5,
25      2.0,
26      0.0
27    ],
28    [
29      1.5,
30      -1.0,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      4
39    ],
40    [
41      1,
42      2,
43      4
44    ],
45    [
46      2,
47      3,
48      4
49    ],
50    [
51      3,
52      0,
53      5
54    ]
55  ],
56  "metadata": {
57    "id": "Me742",
58    "schema_version": 0,
59    "defect_class": "hole_in_hull",
60    "title": "TriangulateHole_L439_angle_computation_failure: 4-vertex collinear hole boundary; interior angles at h1,h2 are 180 deg; gang stays DBL_MAX; return 0 (Branch 3)",
61    "assertions": [
62      {
63        "kind": "edge_shared_by_n_triangles",
64        "edge": [
65          1,
66          4
67        ],
68        "n": 2
69      },
70      {
71        "kind": "edge_shared_by_n_triangles",
72        "edge": [
73          2,
74          4
75        ],
76        "n": 2
77      },
78      {
79        "kind": "edge_shared_by_n_triangles",
80        "edge": [
81          0,
82          1
83        ],
84        "n": 1
85      },
86      {
87        "kind": "edge_shared_by_n_triangles",
88        "edge": [
89          1,
90          2
91        ],
92        "n": 1
93      },
94      {
95        "kind": "edge_shared_by_n_triangles",
96        "edge": [
97          2,
98          3
99        ],
100        "n": 1
101      },
102      {
103        "kind": "edge_shared_by_n_triangles",
104        "edge": [
105          0,
106          3
107        ],
108        "n": 1
109      },
110      {
111        "kind": "edge_shared_by_n_triangles",
112        "edge": [
113          0,
114          4
115        ],
116        "n": 1
117      },
118      {
119        "kind": "edge_shared_by_n_triangles",
120        "edge": [
121          3,
122          4
123        ],
124        "n": 1
125      },
126      {
127        "kind": "edge_shared_by_n_triangles",
128        "edge": [
129          0,
130          5
131        ],
132        "n": 1
133      },
134      {
135        "kind": "edge_shared_by_n_triangles",
136        "edge": [
137          3,
138          5
139        ],
140        "n": 1
141      },
142      {
143        "kind": "hole_boundary",
144        "loop": [
145          0,
146          1,
147          2,
148          3
149        ]
150      },
151      {
152        "kind": "euler_characteristic",
153        "v": 6,
154        "e": 10,
155        "f": 4,
156        "chi": 0
157      }
158    ]
159  }
160}