Me712 — Basic_TMesh.removeVertices vertex_removal: V.removeCell+delete fires for each of 2 isolated vertices v3,v4 (Branch 3)

§12.14 mesh defects (sub-class: isolated_vertex / Basic_TMesh.removeVertices)

topology

Sources

Description

Single triangle (v0,v1,v2) plus two isolated vertices v3=(3,3,0) and v4=(4,4,0). removeVertices finds both with e0==NULL, calls V.removeCell and delete for each. The removal step executes twice, exercising the vertex_removal branch.

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0); t0=(v0,v1,v2); boundary edges n=1; isolated_vertex(v3); isolated_vertex(v4).

Expected kernel behavior

Branch 3 fires twice; V.removeCell unlinks each isolated vertex from the list; delete frees the memory; traversal continues via returned pointer n.

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      0.5,
15      1.0,
16      0.0
17    ],
18    [
19      3.0,
20      3.0,
21      0.0
22    ],
23    [
24      4.0,
25      4.0,
26      0.0
27    ]
28  ],
29  "triangles": [
30    [
31      0,
32      1,
33      2
34    ]
35  ],
36  "metadata": {
37    "id": "Me712",
38    "schema_version": 0,
39    "defect_class": "isolated_vertex",
40    "title": "Basic_TMesh.removeVertices vertex_removal: V.removeCell+delete fires for each of 2 isolated vertices v3,v4 (Branch 3)",
41    "assertions": [
42      {
43        "kind": "edge_shared_by_n_triangles",
44        "edge": [
45          0,
46          1
47        ],
48        "n": 1
49      },
50      {
51        "kind": "edge_shared_by_n_triangles",
52        "edge": [
53          1,
54          2
55        ],
56        "n": 1
57      },
58      {
59        "kind": "edge_shared_by_n_triangles",
60        "edge": [
61          0,
62          2
63        ],
64        "n": 1
65      },
66      {
67        "kind": "isolated_vertex",
68        "vertex": 3
69      },
70      {
71        "kind": "isolated_vertex",
72        "vertex": 4
73      }
74    ]
75  }
76}