Me1178 — triangulate_hole.main compile_time_feature_disable CDT2: CGAL_HOLE_FILLING_DO_NOT_USE_CDT2 sets use_cdt=false; quad hole boundary (Branch 2)

§12.14 mesh defects (sub-class: boundary_hole / triangulate-hole-no-cdt2)

spec-violation

Sources

Description

A quadrilateral hole bordered by four hat-triangles. Branch 2 fires at compile time when CGAL_HOLE_FILLING_DO_NOT_USE_CDT2 is defined; use_cdt is forced to false, bypassing the 2D CDT shortcut. The planarity check (Branch 3) is skipped, routing directly to DT3 or cubic. V=8, E=12, F=4, chi=0.

Reproducer recipe

Hole corners q0=(0,0,0), q1=(2,0,0), q2=(2,2,0), q3=(0,2,0); hat outer o0=(1,-1,0), o1=(3,1,0), o2=(1,3,0), o3=(-1,1,0); four hat tris; hole edges n=1; hole_boundary [q0,q1,q2,q3]; euler V=8,E=12,F=4,chi=0.

Expected kernel behavior

Branch 2 fires; CGAL_HOLE_FILLING_DO_NOT_USE_CDT2 forces use_cdt=false; CDT2 path bypassed; DT3 or cubic used for hole filling.

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      2.0,
15      2.0,
16      0.0
17    ],
18    [
19      0.0,
20      2.0,
21      0.0
22    ],
23    [
24      1.0,
25      -1.0,
26      0.0
27    ],
28    [
29      3.0,
30      1.0,
31      0.0
32    ],
33    [
34      1.0,
35      3.0,
36      0.0
37    ],
38    [
39      -1.0,
40      1.0,
41      0.0
42    ]
43  ],
44  "triangles": [
45    [
46      0,
47      4,
48      1
49    ],
50    [
51      1,
52      5,
53      2
54    ],
55    [
56      2,
57      6,
58      3
59    ],
60    [
61      3,
62      7,
63      0
64    ]
65  ],
66  "metadata": {
67    "id": "Me1178",
68    "schema_version": 0,
69    "defect_class": "boundary_hole",
70    "title": "triangulate_hole.main compile_time_feature_disable CDT2: CGAL_HOLE_FILLING_DO_NOT_USE_CDT2 sets use_cdt=false; quad hole boundary (Branch 2)",
71    "assertions": [
72      {
73        "kind": "edge_shared_by_n_triangles",
74        "edge": [
75          0,
76          1
77        ],
78        "n": 1
79      },
80      {
81        "kind": "edge_shared_by_n_triangles",
82        "edge": [
83          1,
84          2
85        ],
86        "n": 1
87      },
88      {
89        "kind": "edge_shared_by_n_triangles",
90        "edge": [
91          2,
92          3
93        ],
94        "n": 1
95      },
96      {
97        "kind": "edge_shared_by_n_triangles",
98        "edge": [
99          0,
100          3
101        ],
102        "n": 1
103      },
104      {
105        "kind": "hole_boundary",
106        "loop": [
107          0,
108          1,
109          2,
110          3
111        ]
112      },
113      {
114        "kind": "edge_shared_by_n_triangles",
115        "edge": [
116          0,
117          4
118        ],
119        "n": 1
120      },
121      {
122        "kind": "edge_shared_by_n_triangles",
123        "edge": [
124          1,
125          4
126        ],
127        "n": 1
128      },
129      {
130        "kind": "edge_shared_by_n_triangles",
131        "edge": [
132          1,
133          5
134        ],
135        "n": 1
136      },
137      {
138        "kind": "edge_shared_by_n_triangles",
139        "edge": [
140          2,
141          5
142        ],
143        "n": 1
144      },
145      {
146        "kind": "edge_shared_by_n_triangles",
147        "edge": [
148          2,
149          6
150        ],
151        "n": 1
152      },
153      {
154        "kind": "edge_shared_by_n_triangles",
155        "edge": [
156          3,
157          6
158        ],
159        "n": 1
160      },
161      {
162        "kind": "edge_shared_by_n_triangles",
163        "edge": [
164          3,
165          7
166        ],
167        "n": 1
168      },
169      {
170        "kind": "edge_shared_by_n_triangles",
171        "edge": [
172          0,
173          7
174        ],
175        "n": 1
176      },
177      {
178        "kind": "euler_characteristic",
179        "v": 8,
180        "e": 12,
181        "f": 4,
182        "chi": 0
183      }
184    ]
185  }
186}