VolumeRendering
Volume Slicing
← Tetrahedra Slicing Cases | ● | 3D Vector Header →
Calculation of the intersection point of a plane with a line segment:
The line segment is given by the two end points P0 and P1. The plane is given by the pivot point O and the normal n. The normal is said to have unit length.
d0=n⋅(P0−O)
d1=n⋅(P1−O)
d0>0 und d1<0 oder d0<0 und d1>0:
w=d0d0−d1
For w∈[0,1] the interpoled intersection point is on the line segment
P01=(1−w)P0+wP1
else the point is outside.