Me325 — with_third_points_cost_function_strategy: Weight_min_max_dihedral_and_area scores needle triangle poorly (Branch 6)

§12.14 mesh defects (sub-class: holeFilling / triangulate_hole_polyline / with_third_points / cost-function-strategy)

units

Sources

Description

A needle/sliver triangle v0=(0,0,0), v1=(100,0,0), v2=(50,0.01,0) — extremely long base (100 units) and tiny height (0.01 units), producing aspect ratio ~10000. Weight_min_max_dihedral_and_area assigns high cost to such triangles; Weight_calculator wraps is_valid to score and compare candidate triangulations, steering the algorithm away from sliver triangles. Branch 6 fires when weight_calculator is constructed.

Reproducer recipe

v0=(0,0,0), v1=(100,0,0), v2=(50,0.01,0); t0=(v0,v1,v2); edges n=1; triangle_aspect_ratio_gt t0 > 100; euler v=3 e=3 f=1 chi=1.

Expected kernel behavior

Branch 6 fires on construction; Weight_min_max_dihedral_and_area assigns high cost; algorithm avoids sliver configurations.

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      100.0,
10      0.0,
11      0.0
12    ],
13    [
14      50.0,
15      0.01,
16      0.0
17    ]
18  ],
19  "triangles": [
20    [
21      0,
22      1,
23      2
24    ]
25  ],
26  "metadata": {
27    "id": "Me325",
28    "schema_version": 0,
29    "defect_class": "degenerate_triangle",
30    "title": "with_third_points_cost_function_strategy: Weight_min_max_dihedral_and_area scores needle triangle poorly (Branch 6)",
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": "triangle_aspect_ratio_gt",
58        "triangle": 0,
59        "gt": 100.0
60      },
61      {
62        "kind": "euler_characteristic",
63        "v": 3,
64        "e": 3,
65        "f": 1,
66        "chi": 1
67      }
68    ]
69  }
70}