Me130 — removeIfRedundant_not_double_flat: apex vertex has non-planar 3D fan, removal blocked

§12.14 mesh defects (sub-class: redundant-vertex removal / not-flat)

topology

Sources

Description

Pyramid apex vertex v4 sits at (0.5,0.5,1) above a square base. Its four incident triangles form a non-planar 3D fan. The vertex is neither DoubleFlat nor Flat, so removeIfRedundant immediately returns false at Branch 1 — the vertex is non-redundant.

Reproducer recipe

base v0=(0,0,0), v1=(1,0,0), v2=(1,1,0), v3=(0,1,0); apex v4=(0.5,0.5,1). Pyramid faces: t0=(v0,v1,v4), t1=(v1,v2,v4), t2=(v2,v3,v4), t3=(v3,v0,v4).

Expected kernel behavior

removeIfRedundant returns false; apex is not removed.

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      1.0,
10      0.0,
11      0.0
12    ],
13    [
14      1.0,
15      1.0,
16      0.0
17    ],
18    [
19      0.0,
20      1.0,
21      0.0
22    ],
23    [
24      0.5,
25      0.5,
26      1.0
27    ]
28  ],
29  "triangles": [
30    [
31      0,
32      1,
33      4
34    ],
35    [
36      1,
37      2,
38      4
39    ],
40    [
41      2,
42      3,
43      4
44    ],
45    [
46      3,
47      0,
48      4
49    ]
50  ],
51  "metadata": {
52    "id": "Me130",
53    "schema_version": 0,
54    "defect_class": "redundant_vertex_removal_blocked",
55    "title": "removeIfRedundant_not_double_flat: apex vertex has non-planar 3D fan, removal blocked",
56    "assertions": [
57      {
58        "kind": "edge_shared_by_n_triangles",
59        "edge": [
60          0,
61          4
62        ],
63        "n": 2
64      },
65      {
66        "kind": "edge_shared_by_n_triangles",
67        "edge": [
68          1,
69          4
70        ],
71        "n": 2
72      },
73      {
74        "kind": "edge_shared_by_n_triangles",
75        "edge": [
76          2,
77          4
78        ],
79        "n": 2
80      },
81      {
82        "kind": "edge_shared_by_n_triangles",
83        "edge": [
84          3,
85          4
86        ],
87        "n": 2
88      }
89    ]
90  }
91}