mesh-examples/12-14-mesh/Me393.mesh.json
Sources
- CGAL PMP `do_faces_intersect` Branch 4 (*shared-vertex-presence-detection*: `hv[i] == gv[j] → segment-triangle tests`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two triangles meeting at exactly one vertex v0=(0,0,0) with no shared edge. t0 is in the first quadrant (v1=(2,0,0), v2=(0,2,0)) and t1 is in the third quadrant (v3=(-2,0,0), v4=(0,-2,0)), so their interiors are completely disjoint. Branch 4 detects the shared vertex (hv[i]==gv[j]) and routes to segment-triangle tests; the result is no intersection.
Reproducer recipe
v0=(0,0,0) shared; v1=(2,0,0), v2=(0,2,0); v3=(-2,0,0), v4=(0,-2,0); t0=(v0,v1,v2), t1=(v0,v3,v4); assert_vertex_pair_no_shared_triangle(v1,v3); assert_triangles_do_not_intersect(0,1).
Expected kernel behavior
Branch 4 detects shared vertex; segment tests confirm no SI; 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 0.0, 15 2.0, 16 0.0 17 ], 18 [ 19 -2.0, 20 0.0, 21 0.0 22 ], 23 [ 24 0.0, 25 -2.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 3, 38 4 39 ] 40 ], 41 "metadata": { 42 "id": "Me393", 43 "schema_version": 0, 44 "defect_class": "shared_vertex_adjacent_faces", 45 "title": "do_faces_intersect shared-vertex-only: one shared vertex, no shared edge, no geometric SI (Branch 4)", 46 "assertions": [ 47 { 48 "kind": "vertex_pair_no_shared_triangle", 49 "pair": [ 50 1, 51 3 52 ] 53 }, 54 { 55 "kind": "triangles_do_not_intersect", 56 "triangles": [ 57 0, 58 1 59 ] 60 } 61 ] 62 } 63}