[surface model] take phi cut into account in torus safety calculation
This MR takes into account the phi cut in the safety calculation of the torus. If a point is outside the phi range, the torus will be ignored since the surfaces at the cut will be closer and define the safety.