mesh-examples/12-14-mesh/Me005.mesh.json
Sources
- `MESH_DEFECT_TAXONOMY.md` #15 (`self_intersection_face_pair`)
- CGAL `self_intersections`
- MeshFix `selectIntersectingTriangles`.
Description
triangle 0 lies in the XY plane and triangle 1 lies in the XZ plane; the planes intersect along the X axis and both triangles span x=0..1, so their interiors cross. Common in CSG output and scan reconstructions.
Reproducer recipe
triangle 0 = `(0,0,0), (1,1,0), (1,-1,0)`; triangle 1 = `(0,0,0), (1,0,1), (1,0,-1)`.
Expected kernel behavior
detect the geometric crossing and either split the triangles or report.
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 1.0, 10 1.0, 11 0.0 12 ], 13 [ 14 1.0, 15 -1.0, 16 0.0 17 ], 18 [ 19 1.0, 20 0.0, 21 1.0 22 ], 23 [ 24 1.0, 25 0.0, 26 -1.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 3, 38 4 39 ] 40 ], 41 "metadata": { 42 "id": "Me005", 43 "schema_version": 0, 44 "defect_class": "self_intersection_face_pair", 45 "title": "self-intersecting face pair: XY and XZ triangles crossing", 46 "assertions": [ 47 { 48 "kind": "triangles_self_intersect", 49 "triangles": [ 50 0, 51 1 52 ] 53 } 54 ] 55 } 56}