Sphere and plane intersection
Plane:
Ax + By + Cz + D = 0
Sphere:
(x - xs)2 + (y - ys)2 + (z - zs)2 = R2
Note: the intersection of a plane and a sphere always forms a circle in the direction
of the normal vector to the plane, and an ellipse on the projections on the x, y, z axes.
|
The vector normal to the plane
is: n = Ai + Bj + Ck this vector is in the direction of the line connecting sphere
center and the center of the circle formed by the intersection of the sphere with the plane.
This vector when passing through the center of the sphere (x s , y s , z s)
forms the parametric line equation
L={(x,y,z): xs + At , ys + Bt , zs + Ct}
In order to find the intersection circle center, we substitute the parametric line equation
into the plane equation.
A(xs + At) + B(ys + Bt) + C(zs + Ct) + D = 0
Eliminating t we get: |
|
And the intersection circle center (xc , yc , zc) is at the point:
(xc = xs + At, yc = ys + Bt, zc = zs + Ct)
Or after substituting the value of t:
The distance of intersected circle center and the sphere center is:
Intersected circle radius is:
Condition for sphere and plane intersection: | R > d |
Condition for sphere and plane tangency: | R = d |
Condition for no intersection: | R < d |
|