Me760 — retriangulateVT_triangle_normal_accumulation: 5-triangle fan around hub v0; normals accumulated via nor=nor+t->getNormal() for each incident triangle (Branch 1)

§12.14 mesh defects (sub-class: hole-fill / normal-accumulation)

topology

Sources

Description

A 5-triangle fan around hub v0=(1,1,0) with outer pentagon vertices v1..v5. All triangles lie in the XY plane with CCW winding → normals all point +Z. retriangulateVT walks the fan and accumulates each triangle's normal into 'nor' via Branch 1, firing once per incident triangle (5 times). Hub edges each n=2; outer rim edges each n=1. Adjacent pairs all have normal dot > 0.99. Euler: V=6, E=10, F=5, chi=1.

Reproducer recipe

v0=(1,1,0), v1=(1,0,0), v2=(2,1,0), v3=(1.5,2,0), v4=(0.5,2,0), v5=(0,1,0); t0=(v0,v1,v2), t1=(v0,v2,v3), t2=(v0,v3,v4), t3=(v0,v4,v5), t4=(v0,v5,v1); hub edges n=2; rim edges n=1; adjacent_triangles_normal_dot_gt(t0,t1,0.99)…(t3,t4,0.99); euler V=6,E=10,F=5,chi=1.

Expected kernel behavior

Branch 1 fires for each of t0..t4; nor accumulates 5 +Z normals; normalized nor = (0,0,1); TriangulateHole called with this averaged normal.

Expected validation

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1{
2  "vertices": [
3    [
4      1.0,
5      1.0,
6      0.0
7    ],
8    [
9      1.0,
10      0.0,
11      0.0
12    ],
13    [
14      2.0,
15      1.0,
16      0.0
17    ],
18    [
19      1.5,
20      2.0,
21      0.0
22    ],
23    [
24      0.5,
25      2.0,
26      0.0
27    ],
28    [
29      0.0,
30      1.0,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      2
39    ],
40    [
41      0,
42      2,
43      3
44    ],
45    [
46      0,
47      3,
48      4
49    ],
50    [
51      0,
52      4,
53      5
54    ],
55    [
56      0,
57      5,
58      1
59    ]
60  ],
61  "metadata": {
62    "id": "Me760",
63    "schema_version": 0,
64    "defect_class": "retriangulate_region_internal_vertex",
65    "title": "retriangulateVT_triangle_normal_accumulation: 5-triangle fan around hub v0; normals accumulated via nor=nor+t->getNormal() for each incident triangle (Branch 1)",
66    "assertions": [
67      {
68        "kind": "edge_shared_by_n_triangles",
69        "edge": [
70          0,
71          1
72        ],
73        "n": 2
74      },
75      {
76        "kind": "edge_shared_by_n_triangles",
77        "edge": [
78          0,
79          2
80        ],
81        "n": 2
82      },
83      {
84        "kind": "edge_shared_by_n_triangles",
85        "edge": [
86          0,
87          3
88        ],
89        "n": 2
90      },
91      {
92        "kind": "edge_shared_by_n_triangles",
93        "edge": [
94          0,
95          4
96        ],
97        "n": 2
98      },
99      {
100        "kind": "edge_shared_by_n_triangles",
101        "edge": [
102          0,
103          5
104        ],
105        "n": 2
106      },
107      {
108        "kind": "edge_shared_by_n_triangles",
109        "edge": [
110          1,
111          2
112        ],
113        "n": 1
114      },
115      {
116        "kind": "edge_shared_by_n_triangles",
117        "edge": [
118          2,
119          3
120        ],
121        "n": 1
122      },
123      {
124        "kind": "edge_shared_by_n_triangles",
125        "edge": [
126          3,
127          4
128        ],
129        "n": 1
130      },
131      {
132        "kind": "edge_shared_by_n_triangles",
133        "edge": [
134          4,
135          5
136        ],
137        "n": 1
138      },
139      {
140        "kind": "edge_shared_by_n_triangles",
141        "edge": [
142          1,
143          5
144        ],
145        "n": 1
146      },
147      {
148        "kind": "adjacent_triangles_normal_dot_gt",
149        "triangles": [
150          0,
151          1
152        ],
153        "threshold": 0.99
154      },
155      {
156        "kind": "adjacent_triangles_normal_dot_gt",
157        "triangles": [
158          1,
159          2
160        ],
161        "threshold": 0.99
162      },
163      {
164        "kind": "adjacent_triangles_normal_dot_gt",
165        "triangles": [
166          2,
167          3
168        ],
169        "threshold": 0.99
170      },
171      {
172        "kind": "adjacent_triangles_normal_dot_gt",
173        "triangles": [
174          3,
175          4
176        ],
177        "threshold": 0.99
178      },
179      {
180        "kind": "euler_characteristic",
181        "v": 6,
182        "e": 10,
183        "f": 5,
184        "chi": 1
185      }
186    ]
187  }
188}