Me1096 — border face removal (open boundary): degenerate collinear triangle at open boundary, direct remove_face (Branch 13)

§12.14 mesh defects (sub-class: degeneracy/border-face-removal)

topology

Sources

Description

a 3-triangle open strip t0=(v0,v1,v2), t1=(v1,v3,v4), t2=(v1,v4,v2). A degenerate triangle t3=(v3,v5,v4) is attached at the interior edge (v3,v4) of t1; v5=(1.25,0.75,0) is the midpoint of v3=(1.5,0.5,0) and v4=(1,1,0), making t3 zero-area. The edges (v3,v5) and (v4,v5) are true boundary edges — their opposite faces are null. CGAL detects the null opposite and removes t3 via `Euler::remove_face` directly.

Reproducer recipe

strip v0=(0,0,0),v1=(1,0,0),v2=(0.5,1,0),v3=(1.5,0.5,0),v4=(1,1,0); t0–t2 clean; t3=(v3,v5,v4) with v5=(1.25,0.75,0) collinear; edge (v3,v4) n=2; (v3,v5) n=1; (v4,v5) n=1.

Expected kernel behavior

detect boundary face with null opposite across (v3,v5) or (v4,v5); invoke `Euler::remove_face` directly.

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      1.5,
20      0.5,
21      0.0
22    ],
23    [
24      1.0,
25      1.0,
26      0.0
27    ],
28    [
29      1.25,
30      0.75,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      2
39    ],
40    [
41      1,
42      3,
43      4
44    ],
45    [
46      1,
47      4,
48      2
49    ],
50    [
51      3,
52      5,
53      4
54    ]
55  ],
56  "metadata": {
57    "id": "Me1096",
58    "schema_version": 0,
59    "defect_class": "degenerate_triangle",
60    "title": "border face removal: degenerate collinear triangle on open boundary \u2014 direct remove_face",
61    "assertions": [
62      {
63        "kind": "triangle_area_lt",
64        "triangle": 3,
65        "lt": 1e-12
66      },
67      {
68        "kind": "edge_shared_by_n_triangles",
69        "edge": [
70          3,
71          4
72        ],
73        "n": 2
74      },
75      {
76        "kind": "edge_shared_by_n_triangles",
77        "edge": [
78          3,
79          5
80        ],
81        "n": 1
82      },
83      {
84        "kind": "edge_shared_by_n_triangles",
85        "edge": [
86          4,
87          5
88        ],
89        "n": 1
90      }
91    ]
92  }
93}