mesh-examples/12-14-mesh/Me1181.mesh.json
Sources
- CGAL PMP `triangulate_hole.main` Branch 5 (*algorithm_fallback_strategy*: `internal::triangulate_hole_polygon_mesh(pm, h, out, use_dt3, use_cdt, ...)` @ line 225)
- `MESH_HEAL_COVERAGE.md`.
Description
A non-planar quadrilateral hole — q3 is lifted to z=1 while the other three corners are in z=0. The planarity check measures max_squared_distance > 0, failing the CDT2 threshold. Branch 5 fires when triangulate_hole delegates to internal::triangulate_hole_polygon_mesh with use_dt3=true, use_cdt=false. The non-planar geometry ensures the 3D-DT fallback path is taken. 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=(1,1,1); hat outer o0=(1,-1,0), o1=(3,1,0), o2=(1.5,3,0), o3=(-1,0.5,0.5); four hat tris; non-planar hole; hole_boundary [q0,q1,q2,q3]; euler V=8,E=12,F=4,chi=0.
Expected kernel behavior
Branch 5 fires; non-planar boundary fails CDT2 planarity gate; internal::triangulate_hole_polygon_mesh called with use_dt3=true, use_cdt=false; DT3 fills the non-planar hole.
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 1.0, 20 1.0, 21 1.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.5, 35 3.0, 36 0.0 37 ], 38 [ 39 -1.0, 40 0.5, 41 0.5 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": "Me1181", 68 "schema_version": 0, 69 "defect_class": "boundary_hole", 70 "title": "triangulate_hole.main algorithm_fallback_strategy: non-planar hole triggers DT3 fallback; delegation to internal with use_dt3/use_cdt flags (Branch 5)", 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}