mesh-examples/12-14-mesh/Me117.mesh.json
Sources
- MeshFix `Triangle.intersects` Branch 15 (*COPLANAR_TRIANGLES*: `if (o11==0 && o12==0 && o13==0)`)
- `MESH_HEAL_COVERAGE.md`.
Description
two coplanar triangles in z=0 whose 2D projections overlap with positive area. All orientation values are zero (t1's vertices all lie in t0's plane), triggering Branch 15's coplanar fallback using 9 edge-pair crossing tests and 6 point-in-triangle containment tests. The 2D SAT finds no separating axis — confirmed intersection. t0=(0,0,0),(2,0,0),(0,2,0); t1=(1,0,0),(3,0,0),(1,2,0): overlap region is the triangle between (1,0,0),(1,2,0),(2,0,0).
Reproducer recipe
t0: (0,0,0),(2,0,0),(0,2,0). t1: (1,0,0),(3,0,0),(1,2,0). Both in z=0.
Expected kernel behavior
detect coplanar 2D overlap via Branch 15; flag as self-intersection.
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 0.0, 15 2.0, 16 0.0 17 ], 18 [ 19 1.0, 20 0.0, 21 0.0 22 ], 23 [ 24 3.0, 25 0.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": "Me117", 48 "schema_version": 0, 49 "defect_class": "self_intersection_coplanar", 50 "title": "intersects_coplanar_overlap: coplanar triangles with overlapping interiors", 51 "assertions": [ 52 { 53 "kind": "triangles_self_intersect", 54 "triangles": [ 55 0, 56 1 57 ] 58 } 59 ] 60 } 61}