mesh-examples/12-14-mesh/Me326.mesh.json
Sources
- CGAL PMP `triangulate_hole_polyline.with_third_points` Branch 7 (*cdt2_path_conditional*: `if (use_cdt) { triangulate_hole_polyline_with_cdt(…, max_squared_distance)
- if (success) return out
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Three "hat" triangles surround a triangular interior hole [v0,v1,v2]. Each hat triangle (t0=(v0,v3,v1), t1=(v1,v4,v2), t2=(v2,v5,v0)) covers one boundary edge of the hole; the inner edges v0-v1, v1-v2, v0-v2 are each incident on exactly 1 triangle. With use_cdt=true, CGAL computes max_squared_distance from the bounding box diagonal and calls triangulate_hole_polyline_with_cdt; on success it returns early without reaching the DT3/cubic fallback. Branch 7 fires when the if(use_cdt) condition is entered.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,0.866,0), v3=(-0.3,-0.3,0), v4=(1.3,-0.3,0), v5=(0.5,1.2,0); 3 hat triangles; inner edges n=1; hole_boundary [v0,v1,v2]; outer hat edges n=1; euler v=6 e=9 f=3 chi=0.
Expected kernel behavior
Branch 7 fires; max_squared_distance from bbox; CDT fills triangular hole; returns early.
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 1.0, 10 0.0, 11 0.0 12 ], 13 [ 14 0.5, 15 0.866, 16 0.0 17 ], 18 [ 19 -0.3, 20 -0.3, 21 0.0 22 ], 23 [ 24 1.3, 25 -0.3, 26 0.0 27 ], 28 [ 29 0.5, 30 1.2, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 3, 38 1 39 ], 40 [ 41 1, 42 4, 43 2 44 ], 45 [ 46 2, 47 5, 48 0 49 ] 50 ], 51 "metadata": { 52 "id": "Me326", 53 "schema_version": 0, 54 "defect_class": "hole_in_hull", 55 "title": "with_third_points_cdt2_path_conditional: CDT path fills planar triangular hole with all boundary edges present (Branch 7)", 56 "assertions": [ 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 0, 61 1 62 ], 63 "n": 1 64 }, 65 { 66 "kind": "edge_shared_by_n_triangles", 67 "edge": [ 68 1, 69 2 70 ], 71 "n": 1 72 }, 73 { 74 "kind": "edge_shared_by_n_triangles", 75 "edge": [ 76 0, 77 2 78 ], 79 "n": 1 80 }, 81 { 82 "kind": "hole_boundary", 83 "loop": [ 84 0, 85 1, 86 2 87 ] 88 }, 89 { 90 "kind": "edge_shared_by_n_triangles", 91 "edge": [ 92 0, 93 3 94 ], 95 "n": 1 96 }, 97 { 98 "kind": "edge_shared_by_n_triangles", 99 "edge": [ 100 1, 101 3 102 ], 103 "n": 1 104 }, 105 { 106 "kind": "edge_shared_by_n_triangles", 107 "edge": [ 108 1, 109 4 110 ], 111 "n": 1 112 }, 113 { 114 "kind": "edge_shared_by_n_triangles", 115 "edge": [ 116 2, 117 4 118 ], 119 "n": 1 120 }, 121 { 122 "kind": "edge_shared_by_n_triangles", 123 "edge": [ 124 2, 125 5 126 ], 127 "n": 1 128 }, 129 { 130 "kind": "edge_shared_by_n_triangles", 131 "edge": [ 132 0, 133 5 134 ], 135 "n": 1 136 }, 137 { 138 "kind": "euler_characteristic", 139 "v": 6, 140 "e": 9, 141 "f": 3, 142 "chi": 0 143 } 144 ] 145 } 146}