mesh-examples/12-14-mesh/Me396.mesh.json
Sources
- CGAL PMP `do_faces_intersect` Branch 7 (*edge-orientation-search-mode*: `if (i==0) { vh[1]=f[i]
- vh[2]=f[(i+1)%3] }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Three triangles arranged as a linear strip. t0=(v0,v1,v3) and t1=(v2,v3,v4) share vertex v3, which is at index position 0 in t1 — triggering the i==0 branch that assigns vh[1]=f[0] and vh[2]=f[1] for edge-orientation derivation. t1 and t2 similarly share v4 at index 0. All triangle pairs have non-intersecting geometries; the permutation search terminates correctly and the segment tests confirm no SI.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(2,0,0), v3=(0.5,1,0), v4=(1.5,1,0), v5=(2.5,1,0); t0=(v0,v1,v3), t1=(v2,v3,v4), t2=(v4,v5,v2); assert_triangles_do_not_intersect(0,1); assert_triangles_do_not_intersect(0,2).
Expected kernel behavior
Branch 7 (i==0 permutation) fires during shared-vertex search for (t0,t1) and (t1,t2); edge orientation correctly extracted; segment tests confirm no SI.
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 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 0.5, 20 1.0, 21 0.0 22 ], 23 [ 24 1.5, 25 1.0, 26 0.0 27 ], 28 [ 29 2.5, 30 1.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 3 39 ], 40 [ 41 2, 42 3, 43 4 44 ], 45 [ 46 4, 47 5, 48 2 49 ] 50 ], 51 "metadata": { 52 "id": "Me396", 53 "schema_version": 0, 54 "defect_class": "shared_vertex_adjacent_faces", 55 "title": "do_faces_intersect edge-orientation-search: i==0 shared-vertex permutation path; strip of 3 non-intersecting triangles (Branch 7)", 56 "assertions": [ 57 { 58 "kind": "triangles_do_not_intersect", 59 "triangles": [ 60 0, 61 1 62 ] 63 }, 64 { 65 "kind": "triangles_do_not_intersect", 66 "triangles": [ 67 0, 68 2 69 ] 70 } 71 ] 72 } 73}