Added precise intersection for triangles and lines.