Me541 — checkAndRepair::removeDegenerateTriangles CAP_GEOMETRY_OV2: second cap vertex ov2 also on inner segment (two adjacent T-junction caps both trigger splitEdge)

§12.14 mesh defects (sub-class: degeneracy/cap-geometry)

topology

Sources

Description

Outer triangle t0 has cap edge (v0,v1). Four sub-triangles subdivide that edge via two T-junction inner vertices: v3=(2,0,0) and v4=(4,0,0) both strictly between v0=(0,0,0) and v1=(6,0,0). v3 is ov1 (Branch 1) and v4 is ov2 (Branch 2); both pointInInnerSegment checks fire.

Reproducer recipe

v0=(0,0,0), v1=(6,0,0), v2=(3,1,0), v3=(2,0,0), v4=(4,0,0) [both on v0-v1]; t0=(v0,v1,v2), t1=(v0,v3,v2), t2=(v3,v4,v2), t3=(v4,v1,v2); assert_vertex_on_edge both v3 and v4; edge_shared(v2,v3,2), edge_shared(v2,v4,2).

Expected kernel behavior

Branch 2 fires after Branch 1; both ov1 and ov2 are queued for splitEdge; both T-junction caps processed in order.

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      6.0,
10      0.0,
11      0.0
12    ],
13    [
14      3.0,
15      1.0,
16      0.0
17    ],
18    [
19      2.0,
20      0.0,
21      0.0
22    ],
23    [
24      4.0,
25      0.0,
26      0.0
27    ]
28  ],
29  "triangles": [
30    [
31      0,
32      1,
33      2
34    ],
35    [
36      0,
37      3,
38      2
39    ],
40    [
41      3,
42      4,
43      2
44    ],
45    [
46      4,
47      1,
48      2
49    ]
50  ],
51  "metadata": {
52    "id": "Me541",
53    "schema_version": 0,
54    "defect_class": "degenerate_triangle_cap_geometry_ov2",
55    "title": "checkAndRepair::removeDegenerateTriangles CAP_GEOMETRY_OV2: second cap vertex ov2 also on inner segment (two adjacent T-junction caps both trigger splitEdge)",
56    "assertions": [
57      {
58        "kind": "vertex_on_edge",
59        "vertex": 3,
60        "edge": [
61          0,
62          1
63        ]
64      },
65      {
66        "kind": "vertex_on_edge",
67        "vertex": 4,
68        "edge": [
69          0,
70          1
71        ]
72      },
73      {
74        "kind": "triangle_area_lt",
75        "triangle": 0,
76        "lt": 4.0
77      },
78      {
79        "kind": "triangle_area_lt",
80        "triangle": 1,
81        "lt": 2.0
82      },
83      {
84        "kind": "triangle_area_lt",
85        "triangle": 2,
86        "lt": 2.0
87      },
88      {
89        "kind": "triangle_area_lt",
90        "triangle": 3,
91        "lt": 2.0
92      },
93      {
94        "kind": "edge_shared_by_n_triangles",
95        "edge": [
96          2,
97          3
98        ],
99        "n": 2
100      },
101      {
102        "kind": "edge_shared_by_n_triangles",
103        "edge": [
104          2,
105          4
106        ],
107        "n": 2
108      }
109    ]
110  }
111}