mesh-examples/12-14-mesh/Me279.mesh.json
Sources
- CGAL PMP `autorefine_impl::autorefine_triangle_soup` Branch 5 (sub-branch) (*on_same_edge*: shared-edge check before segments.emplace_back → skip @ line 1136)
- `MESH_HEAL_COVERAGE.md`.
Description
Two triangles sharing one full edge (v1-v2) folded along that edge like an open book. The intersection is exactly the shared edge (nbi==2, two endpoints) but on_same_edge is true so segments.emplace_back is NOT called. This is the negative complement of Me274: same case-2 path but the segment is skipped because the intersection lies on a manifold shared edge.
Reproducer recipe
t0 and t1 share edge (v1,v2) and fold at a dihedral angle; edge (v1,v2) shared by 2 triangles; assert triangles_do_not_intersect([0,1]).
Expected kernel behavior
Branch 5 sub-branch fires; on_same_edge==true; segments.emplace_back is NOT called; the shared edge needs no refinement.
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 -1.0, 6 0.0 7 ], 8 [ 9 -1.0, 10 0.0, 11 0.0 12 ], 13 [ 14 1.0, 15 0.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.0, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 3, 32 1, 33 2 34 ] 35 ], 36 "metadata": { 37 "id": "Me279", 38 "schema_version": 0, 39 "defect_class": "autorefine_shared_edge_skip", 40 "title": "autorefine_triangle_soup segment branch on_same_edge skip: shared edge \u2192 no new segment", 41 "assertions": [ 42 { 43 "kind": "edge_shared_by_n_triangles", 44 "edge": [ 45 1, 46 2 47 ], 48 "n": 2 49 }, 50 { 51 "kind": "edge_shared_by_n_triangles", 52 "edge": [ 53 0, 54 1 55 ], 56 "n": 1 57 }, 58 { 59 "kind": "edge_shared_by_n_triangles", 60 "edge": [ 61 0, 62 2 63 ], 64 "n": 1 65 }, 66 { 67 "kind": "edge_shared_by_n_triangles", 68 "edge": [ 69 1, 70 3 71 ], 72 "n": 1 73 }, 74 { 75 "kind": "edge_shared_by_n_triangles", 76 "edge": [ 77 2, 78 3 79 ], 80 "n": 1 81 }, 82 { 83 "kind": "triangles_do_not_intersect", 84 "triangles": [ 85 0, 86 1 87 ] 88 } 89 ] 90 } 91}