Me612 — is_cap_triangle_face handle_triplet slot 0: cap vertex v0=(5,0.05,0) at halfedge source p; angle approx 179.7 degrees; Branch 3 fires

§12.14 mesh defects (sub-class: cap-triangle / triplet-slot-0)

topology

Sources

Description

A near-180° cap triangle stored as (v_cap, v_left, v_right) = ((5,0.05,0), (0,0,0), (10,0,0)). When traversed from the halfedge whose source is v_cap, p = v_cap is identified at slot 0. The cap vertex (angle approx 179.7°) is at p, so handle_triplet(p, q, r, 0) fires immediately. Aspect ratio approx 200; area approx 0.25.

Reproducer recipe

v_cap=(5,0.05,0), v_left=(0,0,0), v_right=(10,0,0); t0=(v_cap,v_left,v_right); assert_triangle_aspect_ratio_gt(t0,100.0); assert_triangle_area_lt(t0,1.0).

Expected kernel behavior

Branch 3 fires; handle_triplet(p,q,r,0) detects cap vertex at slot 0 (p = v_cap); slot 1 and 2 are never tried.

Expected validation

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1{
2  "vertices": [
3    [
4      5.0,
5      0.05,
6      0.0
7    ],
8    [
9      0.0,
10      0.0,
11      0.0
12    ],
13    [
14      10.0,
15      0.0,
16      0.0
17    ]
18  ],
19  "triangles": [
20    [
21      0,
22      1,
23      2
24    ]
25  ],
26  "metadata": {
27    "id": "Me612",
28    "schema_version": 0,
29    "defect_class": "cap_triangle",
30    "title": "is_cap_triangle_face handle_triplet slot 0: cap vertex v0=(5,0.05,0) at halfedge source; angle\u2248179.7\u00b0 at p; Branch 3 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}