inspect elements - reading mesh, computing intersections and writing them into a file