The direction of magnetic flux lines is affected by other magnetic parts or magnets in the pin's vicinity.
If the pin stands alone, the flux lines are unlikely to retain the axial direction when they leave the 45-degree surface. They would take the shortest path, or the path of least...