Me640 — holeFilling::fillSmallBoundaries SELECTION_PRESENT: pre-selected triangles constrain hole filling (Branch 1)

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

topology

Sources

Description

A mesh with two components: a selected triangular patch (three triangles surrounding inner vertex sc) plus an open-boundary region with a triangular hole. Branch 1 fires because at least one triangle is IS_VISITED; the surrounding vertices of selected triangles are flagged (bit 6) to constrain the fill to the unselected region.

Reproducer recipe

selected patch: ts0-ts2 fan around sc=(1,0.7,0); hole region: 4 frame triangles (th0-th3) with triangular gap at boundary loop [hc0,h1,hc1]. All inner selected patch edges n=2; hole boundary edges n=1.

Expected kernel behavior

Branch 1 fires; IS_VISITED triangles found; surrounding vertex flags set to constrain fill boundary.

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.0,
20      0.7,
21      0.0
22    ],
23    [
24      5.0,
25      0.0,
26      0.0
27    ],
28    [
29      7.0,
30      0.0,
31      0.0
32    ],
33    [
34      8.0,
35      2.0,
36      0.0
37    ],
38    [
39      4.0,
40      2.0,
41      0.0
42    ],
43    [
44      6.0,
45      0.5,
46      0.0
47    ],
48    [
49      7.0,
50      1.5,
51      0.0
52    ],
53    [
54      5.0,
55      1.5,
56      0.0
57    ]
58  ],
59  "triangles": [
60    [
61      0,
62      1,
63      3
64    ],
65    [
66      1,
67      2,
68      3
69    ],
70    [
71      2,
72      0,
73      3
74    ],
75    [
76      4,
77      5,
78      8
79    ],
80    [
81      5,
82      6,
83      9
84    ],
85    [
86      6,
87      7,
88      10
89    ],
90    [
91      7,
92      4,
93      10
94    ],
95    [
96      4,
97      8,
98      10
99    ],
100    [
101      8,
102      5,
103      9
104    ],
105    [
106      9,
107      6,
108      10
109    ]
110  ],
111  "metadata": {
112    "id": "Me640",
113    "schema_version": 0,
114    "defect_class": "boundary_hole",
115    "title": "holeFilling::fillSmallBoundaries SELECTION_PRESENT: IS_VISITED triangles mark vertices, constraining fill to unselected region (Branch 1)",
116    "assertions": [
117      {
118        "kind": "edge_shared_by_n_triangles",
119        "edge": [
120          0,
121          3
122        ],
123        "n": 2
124      },
125      {
126        "kind": "edge_shared_by_n_triangles",
127        "edge": [
128          1,
129          3
130        ],
131        "n": 2
132      },
133      {
134        "kind": "edge_shared_by_n_triangles",
135        "edge": [
136          2,
137          3
138        ],
139        "n": 2
140      },
141      {
142        "kind": "hole_boundary",
143        "loop": [
144          8,
145          9,
146          10
147        ]
148      },
149      {
150        "kind": "edge_shared_by_n_triangles",
151        "edge": [
152          8,
153          9
154        ],
155        "n": 1
156      },
157      {
158        "kind": "edge_shared_by_n_triangles",
159        "edge": [
160          9,
161          10
162        ],
163        "n": 1
164      },
165      {
166        "kind": "edge_shared_by_n_triangles",
167        "edge": [
168          8,
169          10
170        ],
171        "n": 1
172      }
173    ]
174  }
175}