added edge intersection between line and triangle, and bounds