mesh-examples/12-14-mesh/Me1165.mesh.json
Sources
- CGAL PMP `triangulate_and_refine_hole.main` Branch 5 (*density_control_parameterization*: `refine(mesh, patch_facets.begin(), patch_facets.end(), std::back_inserter(patch_facets), vertex_out, density_control_factor(choose_parameter(...)))
- ` @ line 404)
- `MESH_HEAL_COVERAGE.md`.
Description
A triangular hole bordered by three hat-triangles. Branch 5 fires when density_control_factor is forwarded from the outer function parameters to refine(). The factor controls how aggressively Steiner vertices are inserted to improve aspect ratios. V=6, E=9, F=3, chi=0.
Reproducer recipe
Equilateral hole corners s0=(0,0,0), s1=(3,0,0), s2=(1.5,2.6,0); hat outer s3=(1.5,-1.5,0), s4=(4.5,1,0), s5=(-1.5,1,0); t0=(s0,s3,s1), t1=(s1,s4,s2), t2=(s2,s5,s0); hole edges n=1; hole_boundary [s0,s1,s2]; euler V=6,E=9,F=3,chi=0.
Expected kernel behavior
Branch 5 fires; density_control_factor parameter resolved and forwarded to refine(); Steiner vertex insertion density controlled by the factor.
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 3.0, 10 0.0, 11 0.0 12 ], 13 [ 14 1.5, 15 2.6, 16 0.0 17 ], 18 [ 19 1.5, 20 -1.5, 21 0.0 22 ], 23 [ 24 4.5, 25 1.0, 26 0.0 27 ], 28 [ 29 -1.5, 30 1.0, 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": "Me1165", 53 "schema_version": 0, 54 "defect_class": "boundary_hole", 55 "title": "triangulate_and_refine_hole.main density_control_parameterization: density_control_factor forwarded to refine(); triangular hole; Steiner insertion controlled (Branch 5)", 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": "edge_shared_by_n_triangles", 83 "edge": [ 84 0, 85 3 86 ], 87 "n": 1 88 }, 89 { 90 "kind": "edge_shared_by_n_triangles", 91 "edge": [ 92 1, 93 3 94 ], 95 "n": 1 96 }, 97 { 98 "kind": "edge_shared_by_n_triangles", 99 "edge": [ 100 1, 101 4 102 ], 103 "n": 1 104 }, 105 { 106 "kind": "edge_shared_by_n_triangles", 107 "edge": [ 108 2, 109 4 110 ], 111 "n": 1 112 }, 113 { 114 "kind": "edge_shared_by_n_triangles", 115 "edge": [ 116 2, 117 5 118 ], 119 "n": 1 120 }, 121 { 122 "kind": "edge_shared_by_n_triangles", 123 "edge": [ 124 0, 125 5 126 ], 127 "n": 1 128 }, 129 { 130 "kind": "hole_boundary", 131 "loop": [ 132 0, 133 1, 134 2 135 ] 136 }, 137 { 138 "kind": "euler_characteristic", 139 "v": 6, 140 "e": 9, 141 "f": 3, 142 "chi": 0 143 } 144 ] 145 } 146}