Torus-plane intersection
The plane can be positioned in 3D space using the parameters of its normal vector (horizontal direction), (vertical direction) and (distance from the origin. The torus parameters are (major radius) and (minor radius).
More information and details at www.lucamoroni.it