mesh-examples/12-14-mesh/Me852.mesh.json
Sources
- CGAL PMP `PMP.does_bound_a_volume` Branch 3 (*self_intersection*: `if(PMP::does_self_intersect(tmesh, np)) return false
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Closed 8-triangle manifold (6 vertices, 12 edges, chi=2) containing two crossing triangle fans: t0=(v0,v2,v3) lies in the XY plane (z=0), t1=(v0,v4,v5) lies in the XZ plane (y=0). They share only vertex v0=(0,0,0) but their interiors overlap along the positive X half-axis from (0,0,0) to (1,0,0) — a proper geometric self-intersection. Four cap triangles t4=(v0,v2,v4), t5=(v1,v4,v2), t6=(v0,v5,v3), t7=(v1,v3,v5) and right mirrors t2=(v1,v3,v2), t3=(v1,v5,v4) complete the closure. All 12 edges are shared by exactly 2 triangles. is_closed passes, orientation is consistent, but does_self_intersect fires for the (t0,t1) pair → Branch 3 returns false.
Reproducer recipe
v0=(0,0,0),v1=(2,0,0),v2=(1,1,0),v3=(1,-1,0),v4=(1,0,1),v5=(1,0,-1); 8 triangles; 12 edges each n=2; assert_triangles_self_intersect(0,1); euler V=6,E=12,F=8,chi=2.
Expected kernel behavior
Branch 3 fires; is_closed and orientation checks pass; does_self_intersect detects the (t0,t1) interior overlap along the X-axis; does_bound_a_volume returns false.
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 1.0, 15 1.0, 16 0.0 17 ], 18 [ 19 1.0, 20 -1.0, 21 0.0 22 ], 23 [ 24 1.0, 25 0.0, 26 1.0 27 ], 28 [ 29 1.0, 30 0.0, 31 -1.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 2, 38 3 39 ], 40 [ 41 0, 42 4, 43 5 44 ], 45 [ 46 1, 47 3, 48 2 49 ], 50 [ 51 1, 52 5, 53 4 54 ], 55 [ 56 0, 57 2, 58 4 59 ], 60 [ 61 1, 62 4, 63 2 64 ], 65 [ 66 0, 67 5, 68 3 69 ], 70 [ 71 1, 72 3, 73 5 74 ] 75 ], 76 "metadata": { 77 "id": "Me852", 78 "schema_version": 0, 79 "defect_class": "self_intersection", 80 "title": "does_bound_a_volume self_intersection: XY/XZ crossing fans in closed 8-tri manifold; interior overlap along X-axis; does_self_intersect true (Branch 3)", 81 "assertions": [ 82 { 83 "kind": "edge_shared_by_n_triangles", 84 "edge": [ 85 2, 86 3 87 ], 88 "n": 2 89 }, 90 { 91 "kind": "edge_shared_by_n_triangles", 92 "edge": [ 93 4, 94 5 95 ], 96 "n": 2 97 }, 98 { 99 "kind": "edge_shared_by_n_triangles", 100 "edge": [ 101 0, 102 2 103 ], 104 "n": 2 105 }, 106 { 107 "kind": "edge_shared_by_n_triangles", 108 "edge": [ 109 0, 110 4 111 ], 112 "n": 2 113 }, 114 { 115 "kind": "edge_shared_by_n_triangles", 116 "edge": [ 117 2, 118 4 119 ], 120 "n": 2 121 }, 122 { 123 "kind": "edge_shared_by_n_triangles", 124 "edge": [ 125 1, 126 4 127 ], 128 "n": 2 129 }, 130 { 131 "kind": "edge_shared_by_n_triangles", 132 "edge": [ 133 1, 134 2 135 ], 136 "n": 2 137 }, 138 { 139 "kind": "edge_shared_by_n_triangles", 140 "edge": [ 141 0, 142 5 143 ], 144 "n": 2 145 }, 146 { 147 "kind": "edge_shared_by_n_triangles", 148 "edge": [ 149 0, 150 3 151 ], 152 "n": 2 153 }, 154 { 155 "kind": "edge_shared_by_n_triangles", 156 "edge": [ 157 3, 158 5 159 ], 160 "n": 2 161 }, 162 { 163 "kind": "edge_shared_by_n_triangles", 164 "edge": [ 165 1, 166 3 167 ], 168 "n": 2 169 }, 170 { 171 "kind": "edge_shared_by_n_triangles", 172 "edge": [ 173 1, 174 5 175 ], 176 "n": 2 177 }, 178 { 179 "kind": "triangles_self_intersect", 180 "triangles": [ 181 0, 182 1 183 ] 184 }, 185 { 186 "kind": "euler_characteristic", 187 "v": 6, 188 "e": 12, 189 "f": 8, 190 "chi": 2 191 } 192 ] 193 } 194}