mesh-examples/12-14-mesh/Me732.mesh.json
Sources
- MeshFix `Basic_TMesh.removeEdges` Branch 5 (*topology_invalidation*: `d_boundaries = d_handles = d_shells = 1`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected open shells: Shell A has a single degenerate triangle ta0=(a0,a1,a2) where a0 and a1 coincide at (0,0,0) (the orphaned edge); Shell B has a clean pair of triangles tb0=(b0,b1,b2) and tb1=(b0,b2,b3) well-separated at x≥6. After E.removeCell removes the orphaned edge from Shell A, all cached topology metrics (d_boundaries, d_handles, d_shells) are invalidated — Branch 5 fires. The two-shell structure ensures d_shells was non-trivially stale. Interior edge (b0,b2) in Shell B is n=2; a2 and b0 share no triangle.
Reproducer recipe
a0=(0,0,0), a1=(0,0,0) [=a0], a2=(2,1,0), b0=(6,0,0), b1=(8,0,0), b2=(7,2,0), b3=(6,2,0); ta0=(a0,a1,a2), tb0=(b0,b1,b2), tb1=(b0,b2,b3); vertex_pair_distance_lt(a0,a1,1e-9); triangle_area_lt(ta0,1e-9); edge_shared(a0,a1,1); edge_shared(b0,b2,2); vertex_pair_no_shared_triangle(a2,b0).
Expected kernel behavior
Branch 5 fires after removeCell; d_boundaries = d_handles = d_shells = 1 marks all three topology caches as stale; subsequent topology queries will recompute from scratch.
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 2.0, 16 0.0 17 ], 18 [ 19 0.0, 20 0.0, 21 10.0 22 ], 23 [ 24 2.0, 25 0.0, 26 10.0 27 ], 28 [ 29 1.0, 30 2.0, 31 10.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": "Me732", 48 "schema_version": 0, 49 "defect_class": "self_intersection", 50 "title": "meshclean BOTH_PASSES_SUCCEEDED: two clean separated triangles; ni=true, nd=true, both passes trivially succeed (branch 3)", 51 "assertions": [ 52 { 53 "kind": "triangles_do_not_intersect", 54 "triangles": [ 55 0, 56 1 57 ] 58 }, 59 { 60 "kind": "triangle_not_reachable_from", 61 "target": 1, 62 "source": 0 63 }, 64 { 65 "kind": "edge_shared_by_n_triangles", 66 "edge": [ 67 0, 68 1 69 ], 70 "n": 1 71 }, 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 1, 76 2 77 ], 78 "n": 1 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 0, 84 2 85 ], 86 "n": 1 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 3, 92 4 93 ], 94 "n": 1 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 4, 100 5 101 ], 102 "n": 1 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 3, 108 5 109 ], 110 "n": 1 111 } 112 ] 113 } 114}