mesh-examples/12-14-mesh/Me272.mesh.json
Sources
- CGAL PMP `autorefine_impl::autorefine_triangle_soup` Branch 3 (*switch(nbi)*: `switch(nbi)` dispatches intersection count @ line 1127)
- `MESH_HEAL_COVERAGE.md`.
Description
Two triangles sharing exactly one vertex (v2 == v3 by coordinate). Their intersection is a single point so the intersection-point count nbi == 1. Branch 3 is the switch-dispatch entry: case 1 is taken (add_point<1> and add_point<2>). This fixture establishes the count-dispatch pattern for the minimal single-point touch.
Reproducer recipe
t0=(v0,v1,v2) and t1=(v3,v4,v5) with v2==v3 at (0.5,1,0); assert vertex_pair_distance_lt([2,3], 1e-12); assert triangles_do_not_intersect([0,1]).
Expected kernel behavior
Branch 3 fires; switch(nbi=1) routes to case 1; add_point<1> and add_point<2> add the shared vertex to each triangle's insertion list.
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 0.5, 15 1.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 1.0, 30 2.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 3, 42 4, 43 5 44 ] 45 ], 46 "metadata": { 47 "id": "Me272", 48 "schema_version": 0, 49 "defect_class": "autorefine_single_point_touch", 50 "title": "autorefine_triangle_soup intersection-point-count switch: nbi=1 vertex touch", 51 "assertions": [ 52 { 53 "kind": "vertex_pair_distance_lt", 54 "pair": [ 55 2, 56 3 57 ], 58 "lt": 1e-12 59 }, 60 { 61 "kind": "triangles_do_not_intersect", 62 "triangles": [ 63 0, 64 1 65 ] 66 } 67 ] 68 } 69}