Me305 — retriangulateSelectedRegion_boundary_edge_extraction: boundary edge e = ms->head() (Branch 6)

§12.14 mesh defects (sub-class: retriangulateSelectedRegion / boundary-edge-extraction)

topology

Sources

Description

Quadrilateral hole (v0,v1,v2,v3) bounded by 4 frame triangles. The first element of the region topology list `ms` is the boundary edge (v0,v1) which serves as the starting edge for `TriangulateHole`. All 4 hole-boundary edges are n=1; hole_boundary assertion confirms the loop.

Reproducer recipe

v0=(0,0,0), v1=(3,0,0), v2=(3,3,0), v3=(0,3,0); vo0..vo3 as outer apices; 4 frame triangles; assert hole_boundary=[v0,v1,v2,v3]; all boundary edges n=1.

Expected kernel behavior

Branch 6 extracts `e = ms->head()->data`; e is (v0,v1); passed to TriangulateHole as the starting boundary edge.

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      3.0,
10      0.0,
11      0.0
12    ],
13    [
14      3.0,
15      3.0,
16      0.0
17    ],
18    [
19      0.0,
20      3.0,
21      0.0
22    ],
23    [
24      1.5,
25      -2.0,
26      0.0
27    ],
28    [
29      5.0,
30      1.5,
31      0.0
32    ],
33    [
34      1.5,
35      5.0,
36      0.0
37    ],
38    [
39      -2.0,
40      1.5,
41      0.0
42    ]
43  ],
44  "triangles": [
45    [
46      0,
47      1,
48      4
49    ],
50    [
51      1,
52      2,
53      5
54    ],
55    [
56      2,
57      3,
58      6
59    ],
60    [
61      3,
62      0,
63      7
64    ]
65  ],
66  "metadata": {
67    "id": "Me305",
68    "schema_version": 0,
69    "defect_class": "retriangulate_region_boundary_edge",
70    "title": "retriangulateSelectedRegion_boundary_edge_extraction: boundary edge e = ms->head() (Branch 6)",
71    "assertions": [
72      {
73        "kind": "hole_boundary",
74        "loop": [
75          0,
76          1,
77          2,
78          3
79        ]
80      },
81      {
82        "kind": "edge_shared_by_n_triangles",
83        "edge": [
84          0,
85          1
86        ],
87        "n": 1
88      },
89      {
90        "kind": "edge_shared_by_n_triangles",
91        "edge": [
92          1,
93          2
94        ],
95        "n": 1
96      },
97      {
98        "kind": "edge_shared_by_n_triangles",
99        "edge": [
100          2,
101          3
102        ],
103        "n": 1
104      },
105      {
106        "kind": "edge_shared_by_n_triangles",
107        "edge": [
108          0,
109          3
110        ],
111        "n": 1
112      }
113    ]
114  }
115}