Me643 — holeFilling::fillSmallBoundaries SMALL_BOUNDARY_THRESHOLD: 3-edge hole; grd=3 <= nbe; added to bdrs (Branch 4)

§12.14 mesh defects (sub-class: boundary_hole / small-hole-fill)

topology

Sources

Description

A minimal triangular hole (3-edge boundary loop) — the smallest possible hole in a triangle mesh. Three outer frame triangles surround the hole, each contributing one boundary edge. The boundary count grd=3 satisfies grd<=nbe (default nbe>=3), so the starting edge is appended to bdrs for TriangulateHole processing. Branch 4 fires.

Reproducer recipe

hole boundary h0=(0,0,0), h1=(2,0,0), h2=(1,2,0); 3 frame triangles with anchor and outer vertices; all hole edges n=1; euler V=6, E=9, F=3, chi=0.

Expected kernel behavior

Branch 4 fires; grd=3 <= nbe; bdrs.appendHead(edge_h0_h1); hole queued for TriangulateHole.

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      2.0,
10      0.0,
11      0.0
12    ],
13    [
14      1.0,
15      2.0,
16      0.0
17    ],
18    [
19      -1.5,
20      1.0,
21      0.0
22    ],
23    [
24      3.5,
25      1.0,
26      0.0
27    ],
28    [
29      1.0,
30      -1.5,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      5
39    ],
40    [
41      1,
42      2,
43      4
44    ],
45    [
46      2,
47      0,
48      3
49    ]
50  ],
51  "metadata": {
52    "id": "Me643",
53    "schema_version": 0,
54    "defect_class": "boundary_hole",
55    "title": "holeFilling::fillSmallBoundaries SMALL_BOUNDARY_THRESHOLD: 3-edge triangular hole; grd=3 <= nbe; added to fill list bdrs (Branch 4)",
56    "assertions": [
57      {
58        "kind": "hole_boundary",
59        "loop": [
60          0,
61          1,
62          2
63        ]
64      },
65      {
66        "kind": "edge_shared_by_n_triangles",
67        "edge": [
68          0,
69          1
70        ],
71        "n": 1
72      },
73      {
74        "kind": "edge_shared_by_n_triangles",
75        "edge": [
76          1,
77          2
78        ],
79        "n": 1
80      },
81      {
82        "kind": "edge_shared_by_n_triangles",
83        "edge": [
84          0,
85          2
86        ],
87        "n": 1
88      },
89      {
90        "kind": "edge_shared_by_n_triangles",
91        "edge": [
92          0,
93          5
94        ],
95        "n": 1
96      },
97      {
98        "kind": "edge_shared_by_n_triangles",
99        "edge": [
100          1,
101          5
102        ],
103        "n": 1
104      },
105      {
106        "kind": "edge_shared_by_n_triangles",
107        "edge": [
108          1,
109          4
110        ],
111        "n": 1
112      },
113      {
114        "kind": "edge_shared_by_n_triangles",
115        "edge": [
116          2,
117          4
118        ],
119        "n": 1
120      },
121      {
122        "kind": "edge_shared_by_n_triangles",
123        "edge": [
124          2,
125          3
126        ],
127        "n": 1
128      },
129      {
130        "kind": "edge_shared_by_n_triangles",
131        "edge": [
132          0,
133          3
134        ],
135        "n": 1
136      },
137      {
138        "kind": "euler_characteristic",
139        "v": 6,
140        "e": 9,
141        "f": 3,
142        "chi": 0
143      }
144    ]
145  }
146}