mesh-examples/12-14-mesh/Me118.mesh.json
Sources
- MeshFix `Triangle.intersects` Branch 16 (*PROPER_INTERSECTION_3D*: `else return (segmentIntersectsTriangle(…) || …)`)
- `MESH_HEAL_COVERAGE.md`.
Description
t0 lies in the XZ plane (y=0) and t1 lies in the XY plane (z=0), both sharing base edge (v0,v1) along the X axis from −1 to +1. The free vertices (v2=(0,0,2) and v3=(0,2,0)) are strictly off each other's plane with mixed orientation signs. Branch 16 fires the six segment-triangle tests; the shared base edge satisfies at least one test confirming proper intersection.
Reproducer recipe
v0=(−1,0,0), v1=(1,0,0), v2=(0,0,2), v3=(0,2,0). t0=(v0,v1,v2) [XZ], t1=(v0,v1,v3) [XY].
Expected kernel behavior
detect non-coplanar proper 3D intersection via Branch 16 segment tests.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 -1.0, 5 0.0, 6 0.0 7 ], 8 [ 9 1.0, 10 0.0, 11 0.0 12 ], 13 [ 14 0.0, 15 2.0, 16 0.0 17 ], 18 [ 19 0.0, 20 0.0, 21 2.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 0, 32 1, 33 3 34 ] 35 ], 36 "metadata": { 37 "id": "Me118", 38 "schema_version": 0, 39 "defect_class": "self_intersection_face_pair", 40 "title": "intersects_proper_3d: XY-plane and XZ-plane triangles intersect along shared base edge", 41 "assertions": [ 42 { 43 "kind": "edge_shared_by_n_triangles", 44 "edge": [ 45 0, 46 1 47 ], 48 "n": 2 49 }, 50 { 51 "kind": "triangles_self_intersect", 52 "triangles": [ 53 0, 54 1 55 ] 56 } 57 ] 58 } 59}