raycasting intersection implementation
delete temporary file