mesh-examples/12-14-mesh/Me871.mesh.json
Sources
- MeshFix `Basic_TMesh.selectIntersectingTriangles` Branch 2 (*Cell-saturation threshold*: `if (n_cells > DI_MAX_NUMBER_OF_CELLS || tris_per_cell > DI_MAX_TRIS_PER_CELL) { subdivide }`)
- `MESH_HEAL_COVERAGE.md`.
Description
15 flat radial triangles all sharing the origin as apex, with outer vertices packed in a 0.1-radius circle in the XY plane. All 15 triangles' bounding boxes heavily overlap in the same tiny spatial region, saturating a single partition cell above the per-cell triangle density threshold. One oblique crossing triangle (sharing apex and outer[0], rising in Z to v_up=(0.05,0,0.1)) intersects the flat fan. The dense bounding-box overlap forces the cell-saturation branch, triggering subdivision rather than direct pair testing.
Reproducer recipe
apex=(0,0,0); 15 outer vertices at radius 0.1 evenly spaced in XY; v_up=(0.05,0,0.1); 15 flat radial triangles (apex,outer[i],outer[i+1 mod 15]) + 1 crossing triangle (apex,outer[0],v_up); assert_triangles_self_intersect(tris[0],t_cross); assert_triangles_do_not_intersect(tris[1],tris[2]).
Expected kernel behavior
Branch 2 fires; the dense cluster's cell is detected as saturated (tris_per_cell > DI_MAX_TRIS_PER_CELL or n_cells ceiling hit); cell is subdivided at midpoint rather than used directly; SI between tris[0] and t_cross is ultimately detected after subdivision.
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 0.1, 10 0.0, 11 0.0 12 ], 13 [ 14 0.0913545457642601, 15 0.040673664307580015, 16 0.0 17 ], 18 [ 19 0.06691306063588583, 20 0.07431448254773942, 21 0.0 22 ], 23 [ 24 0.030901699437494747, 25 0.09510565162951536, 26 0.0 27 ], 28 [ 29 -0.010452846326765334, 30 0.09945218953682734, 31 0.0 32 ], 33 [ 34 -0.04999999999999999, 35 0.08660254037844388, 36 0.0 37 ], 38 [ 39 -0.08090169943749474, 40 0.05877852522924733, 41 0.0 42 ], 43 [ 44 -0.09781476007338058, 45 0.02079116908177593, 46 0.0 47 ], 48 [ 49 -0.09781476007338058, 50 -0.020791169081775907, 51 0.0 52 ], 53 [ 54 -0.08090169943749476, 55 -0.05877852522924731, 56 0.0 57 ], 58 [ 59 -0.050000000000000044, 60 -0.08660254037844384, 61 0.0 62 ], 63 [ 64 -0.010452846326765424, 65 -0.09945218953682733, 66 0.0 67 ], 68 [ 69 0.030901699437494726, 70 -0.09510565162951537, 71 0.0 72 ], 73 [ 74 0.06691306063588585, 75 -0.07431448254773941, 76 0.0 77 ], 78 [ 79 0.0913545457642601, 80 -0.040673664307580015, 81 0.0 82 ], 83 [ 84 0.05, 85 0.0, 86 0.1 87 ] 88 ], 89 "triangles": [ 90 [ 91 0, 92 1, 93 2 94 ], 95 [ 96 0, 97 2, 98 3 99 ], 100 [ 101 0, 102 3, 103 4 104 ], 105 [ 106 0, 107 4, 108 5 109 ], 110 [ 111 0, 112 5, 113 6 114 ], 115 [ 116 0, 117 6, 118 7 119 ], 120 [ 121 0, 122 7, 123 8 124 ], 125 [ 126 0, 127 8, 128 9 129 ], 130 [ 131 0, 132 9, 133 10 134 ], 135 [ 136 0, 137 10, 138 11 139 ], 140 [ 141 0, 142 11, 143 12 144 ], 145 [ 146 0, 147 12, 148 13 149 ], 150 [ 151 0, 152 13, 153 14 154 ], 155 [ 156 0, 157 14, 158 15 159 ], 160 [ 161 0, 162 15, 163 1 164 ], 165 [ 166 0, 167 1, 168 16 169 ] 170 ], 171 "metadata": { 172 "id": "Me871", 173 "schema_version": 0, 174 "defect_class": "self_intersection_face_pair", 175 "title": "selectIntersectingTriangles cell-saturation: 15-triangle dense cluster forces DI_MAX_TRIS_PER_CELL subdivision; embedded SI pair (Branch 2)", 176 "assertions": [ 177 { 178 "kind": "triangles_self_intersect", 179 "triangles": [ 180 0, 181 15 182 ] 183 }, 184 { 185 "kind": "triangles_do_not_intersect", 186 "triangles": [ 187 1, 188 2 189 ] 190 } 191 ] 192 } 193}