Me327 — with_third_points_threshold_override: auto bbox threshold too small for wide flat hole; user override needed (Branch 8)

§12.14 mesh defects (sub-class: holeFilling / triangulate_hole_polyline / with_third_points / threshold-override)

spec-violation

Sources

Description

A wide flat triangle v0=(0,0,0), v1=(10,0,0), v2=(5,0.2,0) — width 10, height 0.2. The bbox height is 0.2 so default_squared_distance = (0.2/4)^2 = 0.0025. The hole diameter squared is ~100, which vastly exceeds the auto threshold — CDT would reject all candidates. By passing threshold_distance >= 10, the user overrides the default and CDT succeeds. Branch 8 fires when threshold_distance >= 0.

Reproducer recipe

v0=(0,0,0), v1=(10,0,0), v2=(5,0.2,0); t0=(v0,v1,v2); all edges n=1; hole_boundary [v0,v1,v2]; triangle_aspect_ratio_gt t0 > 10; euler v=3 e=3 f=1 chi=1.

Expected kernel behavior

Branch 8 fires; user threshold squared and used; CDT distance filter uses provided value instead of bbox heuristic.

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      10.0,
10      0.0,
11      0.0
12    ],
13    [
14      5.0,
15      0.2,
16      0.0
17    ]
18  ],
19  "triangles": [
20    [
21      0,
22      1,
23      2
24    ]
25  ],
26  "metadata": {
27    "id": "Me327",
28    "schema_version": 0,
29    "defect_class": "hole_in_hull",
30    "title": "with_third_points_threshold_override: auto bbox threshold too small for wide flat hole; user override needed (Branch 8)",
31    "assertions": [
32      {
33        "kind": "edge_shared_by_n_triangles",
34        "edge": [
35          0,
36          1
37        ],
38        "n": 1
39      },
40      {
41        "kind": "edge_shared_by_n_triangles",
42        "edge": [
43          1,
44          2
45        ],
46        "n": 1
47      },
48      {
49        "kind": "edge_shared_by_n_triangles",
50        "edge": [
51          0,
52          2
53        ],
54        "n": 1
55      },
56      {
57        "kind": "hole_boundary",
58        "loop": [
59          0,
60          1,
61          2
62        ]
63      },
64      {
65        "kind": "triangle_aspect_ratio_gt",
66        "triangle": 0,
67        "gt": 10.0
68      },
69      {
70        "kind": "euler_characteristic",
71        "v": 3,
72        "e": 3,
73        "f": 1,
74        "chi": 1
75      }
76    ]
77  }
78}