Me611 — is_cap_triangle_face cap_scalar_product: near-180-degree cap vertex v2=(5,0.05,0) above base; scalar-product cap-detection Branch 2 fires

§12.14 mesh defects (sub-class: cap-triangle / scalar-product)

topology

Sources

Description

A single near-180° cap triangle (v0, v1, v2): v0=(0,0,0), v1=(10,0,0), v2=(5,0.05,0). The cap vertex v2 sits just 0.05 above the midpoint of the base edge, giving angle ≈ 179.7° at v2. The scalar product of the short edge vectors from v2 fires the !neg_sp cap-detection condition at line 471. The triangle has aspect ratio ≈ 200 and area ≈ 0.25.

Reproducer recipe

v0=(0,0,0), v1=(10,0,0), v2=(5,0.05,0); t0=(v0,v1,v2); assert_triangle_aspect_ratio_gt(t0,100.0); assert_triangle_area_lt(t0,1.0).

Expected kernel behavior

Branch 2 fires; !neg_sp is true (scalar product non-negative for the cap configuration); cap triangle identified with cap vertex near segment v0-v1.

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.05,
16      0.0
17    ]
18  ],
19  "triangles": [
20    [
21      0,
22      1,
23      2
24    ]
25  ],
26  "metadata": {
27    "id": "Me611",
28    "schema_version": 0,
29    "defect_class": "cap_triangle",
30    "title": "is_cap_triangle_face cap_scalar_product: near-180-degree cap vertex v2 at (5,0.05,0) above base (v0,v1); scalar-product cap-detection Branch 2 fires",
31    "assertions": [
32      {
33        "kind": "triangle_aspect_ratio_gt",
34        "triangle": 0,
35        "gt": 100.0
36      },
37      {
38        "kind": "triangle_area_lt",
39        "triangle": 0,
40        "lt": 1.0
41      }
42    ]
43  }
44}