mesh-examples/12-14-mesh/Me870.mesh.json
Sources
- MeshFix `Basic_TMesh.selectIntersectingTriangles` Branch 1 (*Selected-vs-full-mesh*: `if (isSelection) { selT = ...
- selV = ...
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Four triangles total: two pre-selected crossing triangles (t0 in XY plane, t1 in XZ plane, sharing apex at origin) and two clean unselected triangles far away at X=10. isSelection=true causes the spatial-partition cell builder to iterate only over {t0,t1} (the selT/selV subset) rather than all four triangles. The crossing pair produces a genuine SI on the positive X half-axis. The unselected pair is spatially disjoint (bounding boxes X=10..12 vs X=0..2).
Reproducer recipe
v0=(0,0,0) shared apex; v1=(2,1,0), v2=(2,-1,0) for t0 (XY plane); v3=(2,0,1), v4=(2,0,-1) for t1 (XZ plane); t0=(v0,v1,v2), t1=(v0,v3,v4) → assert_triangles_self_intersect(t0,t1); clean pair t2=(v5,v6,v7) at X=10, t3=(v8,v9,v10) at X=10 → assert_triangles_do_not_intersect(t2,t3).
Expected kernel behavior
Branch 1 fires; isSelection=true restricts cell population to selT={t0,t1} and selV={v0..v4}; spatial scan never visits t2/t3; SI is detected only within the selection.
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 1.0, 11 0.0 12 ], 13 [ 14 2.0, 15 -1.0, 16 0.0 17 ], 18 [ 19 2.0, 20 0.0, 21 1.0 22 ], 23 [ 24 2.0, 25 0.0, 26 -1.0 27 ], 28 [ 29 10.0, 30 0.0, 31 0.0 32 ], 33 [ 34 12.0, 35 1.0, 36 0.0 37 ], 38 [ 39 12.0, 40 -1.0, 41 0.0 42 ], 43 [ 44 10.0, 45 3.0, 46 0.0 47 ], 48 [ 49 12.0, 50 4.0, 51 0.0 52 ], 53 [ 54 12.0, 55 2.0, 56 0.0 57 ] 58 ], 59 "triangles": [ 60 [ 61 0, 62 1, 63 2 64 ], 65 [ 66 0, 67 3, 68 4 69 ], 70 [ 71 5, 72 6, 73 7 74 ], 75 [ 76 8, 77 9, 78 10 79 ] 80 ], 81 "metadata": { 82 "id": "Me870", 83 "schema_version": 0, 84 "defect_class": "self_intersection_face_pair", 85 "title": "selectIntersectingTriangles selected-vs-full-mesh: isSelection restricts spatial scan to pre-selected intersecting pair (Branch 1)", 86 "assertions": [ 87 { 88 "kind": "triangles_self_intersect", 89 "triangles": [ 90 0, 91 1 92 ] 93 }, 94 { 95 "kind": "triangles_do_not_intersect", 96 "triangles": [ 97 2, 98 3 99 ] 100 } 101 ] 102 } 103}