Me323 — with_third_points_visitor_optional: Default_visitor substituted when visitor param absent (Branch 4)

§12.14 mesh defects (sub-class: holeFilling / triangulate_hole_polyline / with_third_points / visitor-parameter-optional)

spec-violation

Sources

Description

A 5-triangle fan around hub v5=(0,0,0) with outer pentagon vertices v0-v4. The fan has a pentagonal hole [v0..v4] as its open outer boundary. When no visitor is provided, CGAL substitutes Default_visitor (no-op) via choose_parameter; the visitor is then wrapped into Is_valid_compose for triangle filtering.

Reproducer recipe

v0-v4 at unit-circle pentagon; v5=(0,0,0) hub; 5 fan triangles; hub spokes n=2; outer edges n=1; hole_boundary [v0,v1,v2,v3,v4]; euler v=6 e=10 f=5 chi=1.

Expected kernel behavior

Branch 4 fires; Default_visitor substituted; Is_valid_compose wraps it with Is_not_degenerate_triangle.

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      0.0,
6      0.0
7    ],
8    [
9      0.30901699437494745,
10      0.9510565162951535,
11      0.0
12    ],
13    [
14      -0.8090169943749473,
15      0.5877852522924732,
16      0.0
17    ],
18    [
19      -0.8090169943749475,
20      -0.587785252292473,
21      0.0
22    ],
23    [
24      0.30901699437494723,
25      -0.9510565162951536,
26      0.0
27    ],
28    [
29      0.0,
30      0.0,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      5
39    ],
40    [
41      1,
42      2,
43      5
44    ],
45    [
46      2,
47      3,
48      5
49    ],
50    [
51      3,
52      4,
53      5
54    ],
55    [
56      4,
57      0,
58      5
59    ]
60  ],
61  "metadata": {
62    "id": "Me323",
63    "schema_version": 0,
64    "defect_class": "hole_in_hull",
65    "title": "with_third_points_visitor_optional: Default_visitor substituted when visitor param absent (Branch 4)",
66    "assertions": [
67      {
68        "kind": "edge_shared_by_n_triangles",
69        "edge": [
70          0,
71          5
72        ],
73        "n": 2
74      },
75      {
76        "kind": "edge_shared_by_n_triangles",
77        "edge": [
78          1,
79          5
80        ],
81        "n": 2
82      },
83      {
84        "kind": "edge_shared_by_n_triangles",
85        "edge": [
86          2,
87          5
88        ],
89        "n": 2
90      },
91      {
92        "kind": "edge_shared_by_n_triangles",
93        "edge": [
94          3,
95          5
96        ],
97        "n": 2
98      },
99      {
100        "kind": "edge_shared_by_n_triangles",
101        "edge": [
102          4,
103          5
104        ],
105        "n": 2
106      },
107      {
108        "kind": "edge_shared_by_n_triangles",
109        "edge": [
110          0,
111          1
112        ],
113        "n": 1
114      },
115      {
116        "kind": "edge_shared_by_n_triangles",
117        "edge": [
118          1,
119          2
120        ],
121        "n": 1
122      },
123      {
124        "kind": "edge_shared_by_n_triangles",
125        "edge": [
126          2,
127          3
128        ],
129        "n": 1
130      },
131      {
132        "kind": "edge_shared_by_n_triangles",
133        "edge": [
134          3,
135          4
136        ],
137        "n": 1
138      },
139      {
140        "kind": "edge_shared_by_n_triangles",
141        "edge": [
142          0,
143          4
144        ],
145        "n": 1
146      },
147      {
148        "kind": "hole_boundary",
149        "loop": [
150          0,
151          1,
152          2,
153          3,
154          4
155        ]
156      },
157      {
158        "kind": "euler_characteristic",
159        "v": 6,
160        "e": 10,
161        "f": 5,
162        "chi": 1
163      }
164    ]
165  }
166}